We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ab431e8 + 2855dc2 commit c8ff575Copy full SHA for c8ff575
src/LanguageServer/Microsoft.CommonLanguageServerProtocol.Framework/AbstractLanguageServer.cs
@@ -65,6 +65,9 @@ protected AbstractLanguageServer(
65
_jsonRpc = jsonRpc;
66
TypeRefResolver = typeRefResolver ?? TypeRef.DefaultResolver.Instance;
67
68
+ // We have no need to continue running LSP requests after the connection is closed.
69
+ _jsonRpc.CancelLocallyInvokedMethodsWhenConnectionIsClosed = true;
70
+
71
_jsonRpc.AddLocalRpcTarget(this);
72
_jsonRpc.Disconnected += JsonRpc_Disconnected;
73
_lspServices = new Lazy<ILspServices>(() => ConstructLspServices());
0 commit comments