Skip to content

Commit 7273840

Browse files
committed
Ensure we cancel on project unload
1 parent b63e443 commit 7273840

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Microsoft.VisualStudio.ProjectSystem.Managed/ProjectSystem/LanguageServices/LanguageServiceHost.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,9 @@ protected override async Task InitializeCoreAsync(CancellationToken cancellation
106106
return;
107107
}
108108

109+
// Ensure we also cancel on project unload
110+
cancellationToken = _tasksService.LinkUnload(cancellationToken);
111+
109112
// We have one "workspace" per "slice".
110113
//
111114
// - A "workspace" models the project state that Roslyn needs for a specific configuration.

0 commit comments

Comments
 (0)