Skip to content
This repository was archived by the owner on Apr 14, 2022. It is now read-only.

Commit 4c31169

Browse files
author
MikhailArkhipov
committed
PR
1 parent 3ae2ad8 commit 4c31169

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/LanguageServer/Impl/LanguageServer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ public CancellationToken Start(IServiceContainer services, JsonRpc rpc) {
8080
.Add(() => _server.OnApplyWorkspaceEdit -= OnApplyWorkspaceEdit)
8181
.Add(() => _server.OnRegisterCapability -= OnRegisterCapability)
8282
.Add(() => _server.OnUnregisterCapability -= OnUnregisterCapability)
83+
.Add(() => _shutdownCts.Cancel())
8384
.Add(_prioritizer)
8485
.Add(_analysisProgressReporter)
8586
.Add(() => _pathsWatcher?.Dispose());
@@ -88,7 +89,6 @@ public CancellationToken Start(IServiceContainer services, JsonRpc rpc) {
8889
}
8990

9091
public void Dispose() {
91-
_shutdownCts.Cancel();
9292
_disposables.TryDispose();
9393
_server.Dispose();
9494
}

0 commit comments

Comments
 (0)