Skip to content

Commit

Permalink
Auto load after solution opened
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanKert committed Apr 6, 2019
1 parent 7b7d4a7 commit dcde1ae
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/BuildVision/Core/BuildVisionPackage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
namespace BuildVision.Core
{
[PackageRegistration(UseManagedResourcesOnly = true, AllowsBackgroundLoading = true)]
[ProvideAutoLoad(UIContextGuids80.SolutionExists)] // This will lead to a warning on startup
//[ProvideAutoLoad(UIContextGuids80.SolutionExists, flags: PackageAutoLoadFlags.BackgroundLoad)] // This will lead to a warning on startup
[ProvideAutoLoad(VSConstants.UICONTEXT.SolutionOpening_string, PackageAutoLoadFlags.BackgroundLoad)]
[ProvideMenuResource("Menus.ctmenu", 1)]
[ProvideToolWindow(typeof(BuildVisionPane))]
[Guid(PackageGuids.GuidBuildVisionPackageString)]
Expand Down Expand Up @@ -75,7 +76,7 @@ private void Current_DispatcherUnhandledException(object sender, DispatcherUnhan
protected override async Task InitializeAsync(CancellationToken cancellationToken, IProgress<ServiceProgressData> progress)
{
await base.InitializeAsync(cancellationToken, progress);

await JoinableTaskFactory.SwitchToMainThreadAsync(DisposalToken);
await ShowToolWindowCommand.InitializeAsync(this);

Expand Down

0 comments on commit dcde1ae

Please sign in to comment.