Skip to content

Remove wait for out of process start from OnLoadedAsync as it has not…#46219

Merged
dibarbet merged 1 commit intodotnet:masterfrom
dibarbet:move_activation
Jul 22, 2020
Merged

Remove wait for out of process start from OnLoadedAsync as it has not…#46219
dibarbet merged 1 commit intodotnet:masterfrom
dibarbet:move_activation

Conversation

@dibarbet
Copy link
Member

… cancellation token. The wait will instead occur in ActivateAsync with cancellation

Fixes - https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1148393

ILanguageClient.OnLoadedAsync does not have a cancellation token. So if VS is trying to shutdown while OnLoadedAsync is waiting for the OOP to start, then it will hang. So moving the wait here to ActivateAsync instead. This should have no functional impact on loading as ActivateAsync is called on completion OnLoadedAsync,but has a cancellation token.

… cancellation token. The wait will instead occur in ActivateAsync with cancellation
@dibarbet dibarbet requested a review from genlu July 22, 2020 17:53
@dibarbet dibarbet requested a review from a team as a code owner July 22, 2020 17:53
@dibarbet dibarbet merged commit 6cac70f into dotnet:master Jul 22, 2020
@ghost ghost added this to the Next milestone Jul 22, 2020
@dibarbet dibarbet deleted the move_activation branch July 22, 2020 20:45
@RikkiGibson RikkiGibson modified the milestones: Next, 16.8.P2 Aug 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants