Skip to content

Commit

Permalink
Merge pull request #16 from Therena/Bugfix-15
Browse files Browse the repository at this point in the history
Fix for bug 15 Latest release update to VS2019, reset all ConEmu settings and throws an error everytime
  • Loading branch information
Therena authored Aug 19, 2020
2 parents afb9189 + a7716ae commit 55ea23a
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 5 deletions.
2 changes: 1 addition & 1 deletion ConEmuIntegration/ConEmuProduct/ProductEnvironment.cs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public void OpenConEmuToolWindow()

if (IsConEmuToolWindowVisible(windowFrame) == false)
{
window.ConEmuControl.RunConEmu();
window.RunConEmu();
}
}
catch (Exception error)
Expand Down
17 changes: 14 additions & 3 deletions ConEmuIntegration/ToolWindow/ConEmuWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,25 @@ namespace ConEmuIntegration.ToolWindow
[Guid("F4D34FFE-6D41-47F1-BD2C-7897995974AB")]
public class ConEmuWindow : ToolWindowPane
{
public ConEmuWindowControl ConEmuControl { get; } = new ConEmuWindowControl();
private ConEmuWindowControl m_ConEmuControl;

public ConEmuWindow() : base(null)
{
this.Caption = ProductEnvironment.Instance.GetWindowCaption();

ConEmuControl.ConEmuClosed += ConEmuClosed;
this.Content = ConEmuControl;
m_ConEmuControl = new ConEmuWindowControl();
m_ConEmuControl.ConEmuClosed += ConEmuClosed;
this.Content = m_ConEmuControl;
}

public bool RunConEmu()
{
if (null == m_ConEmuControl)
{
return false;
}

return m_ConEmuControl.RunConEmu();
}

private void ConEmuClosed(object sender, EventArgs e)
Expand Down
2 changes: 1 addition & 1 deletion ConEmuIntegration/source.extension.vsixmanifest
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<PackageManifest Version="2.0.0" xmlns="http://schemas.microsoft.com/developer/vsx-schema/2011" xmlns:d="http://schemas.microsoft.com/developer/vsx-schema-design/2011">
<Metadata>
<Identity Id="D643A537-A9F4-43A6-9374-2C452B46300E" Version="2.2019.0.4" Language="en-US" Publisher="David Roller" />
<Identity Id="D643A537-A9F4-43A6-9374-2C452B46300E" Version="2.2019.0.5" Language="en-US" Publisher="David Roller" />
<DisplayName>ConEmu Integration 2019</DisplayName>
<Description xml:space="preserve">Integrate the console emulator ConEmu in Visual Studio</Description>
<License>Resources\LICENSE</License>
Expand Down

0 comments on commit 55ea23a

Please sign in to comment.