Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix deadlock caused by commands invoked in string expansion during activation #1532

Merged
merged 2 commits into from
Nov 9, 2020

Conversation

xisui-MSFT
Copy link
Collaborator

Fix deadlock caused by commands invoked in string expansion during activation.

If there is an extension depending on CMakeTools, providing a command "foo.getString". When there's an entry in settings.json asking to execute this command with {command:foo.getString}, there will be a deadlock: this extension waits for CMakeTools to activate, and CMakeTools waits for this extension to activate.

So register the task provider asynchronously.

@bobbrow bobbrow merged commit 67b6033 into microsoft:develop Nov 9, 2020
@bobbrow bobbrow added this to the 1.5.2 milestone Nov 12, 2020
@github-actions github-actions bot locked and limited conversation to collaborators Jan 29, 2022
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.

3 participants