Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Call MenuCommandService.AddCommand on Main thread - #1522

Merged
jcansdale merged 1 commit into
masterfrom
fixes/1520-VS2017-deadlock
Mar 6, 2018
Merged

Call MenuCommandService.AddCommand on Main thread#1522
jcansdale merged 1 commit into
masterfrom
fixes/1520-VS2017-deadlock

Conversation

@jcansdale

@jcansdale jcansdale commented Mar 6, 2018

Copy link
Copy Markdown
Collaborator

We now use the following attribute on GitHubPackage:

    [ProvideAutoLoad(Guids.UIContext_Git, PackageAutoLoadFlags.BackgroundLoad)]

It appears the PackageAutoLoadFlags.BackgroundLoad flag is only honored on Visual Studio 2017. This caused the menu initialization to only execute on a background thread when using Visual Studio 2017. This would cause a deadlock. 😭

Fixes #1520

Calling on background thread can cause deadlock.
@jcansdale
jcansdale merged commit 4638bfb into master Mar 6, 2018
@jcansdale
jcansdale deleted the fixes/1520-VS2017-deadlock branch March 6, 2018 15:18
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants