Skip to content

Commit

Permalink
Loading in background
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanKert committed Apr 6, 2019
1 parent b0166af commit f4ae645
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/BuildVision/Core/BuildVisionPackage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,13 @@ public sealed class BuildVisionPackage : AsyncPackage
private IVsSolutionBuildManager2 _solutionBuildManager;
private IVsSolutionBuildManager5 _solutionBuildManager4;
private IBuildInformationProvider _buildInformationProvider;
private uint _updateSolutionEventsCookie;
private uint _updateSolutionEvents4Cookie;
private SolutionBuildEvents _solutionBuildEvents;
private ISolutionProvider _solutionProvider;
private Window _activeProjectContext;


public ControlSettings ControlSettings { get; set; }

public BuildVisionPackage()
Expand Down Expand Up @@ -128,7 +130,7 @@ private void SolutionEvents_Opened()
_buildInformationProvider.ResetBuildInformationModel();

_solutionBuildEvents = new SolutionBuildEvents(_solutionProvider, _buildInformationProvider);
_solutionBuildManager.AdviseUpdateSolutionEvents(_solutionBuildEvents, out _updateSolutionEvents4Cookie);
_solutionBuildManager.AdviseUpdateSolutionEvents(_solutionBuildEvents, out _updateSolutionEventsCookie);
_solutionBuildManager4.AdviseUpdateSolutionEvents4(_solutionBuildEvents, out _updateSolutionEvents4Cookie);
}

Expand All @@ -140,7 +142,7 @@ private void SolutionEvents_AfterClosing()
_buildInformationProvider.ResetCurrentProjects();
_buildInformationProvider.ResetBuildInformationModel();

_solutionBuildManager.UnadviseUpdateSolutionEvents(_updateSolutionEvents4Cookie);
_solutionBuildManager.UnadviseUpdateSolutionEvents(_updateSolutionEventsCookie);
_solutionBuildManager4.UnadviseUpdateSolutionEvents4(_updateSolutionEvents4Cookie);
}

Expand Down

0 comments on commit f4ae645

Please sign in to comment.