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.
1 parent 68680df commit 71ef7e4Copy full SHA for 71ef7e4
src/Client/LanguageClient.cs
@@ -420,10 +420,20 @@ private void RegisterCapabilities(ClientCapabilities capabilities)
420
}
421
422
public async Task Shutdown()
423
+ {
424
+ await Shutdown(CancellationToken.None);
425
+ }
426
+
427
+ public async Task Shutdown(CancellationToken token)
428
{
429
if (_connection.IsOpen)
430
- await this.RequestShutdown().ConfigureAwait(false);
431
+ try
432
433
+ await this.RequestShutdown(token).ConfigureAwait(false);
434
435
+ catch (TaskCanceledException) { }
436
437
this.SendExit();
438
439
0 commit comments