We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d676f59 + 996fe81 commit 4be57a9Copy full SHA for 4be57a9
1 file changed
server/SampleServer/App.cs
@@ -8,6 +8,7 @@
8
using System;
9
using System.Collections.Generic;
10
using System.IO;
11
+using System.Threading.Tasks;
12
13
namespace SampleServer
14
{
@@ -145,5 +146,13 @@ protected override Result<CompletionItem, ResponseError> ResolveCompletionItem(C
145
146
}
147
return Result<CompletionItem, ResponseError>.Success(@params);
148
149
+
150
+ protected override VoidResult<ResponseError> Shutdown()
151
+ {
152
+ Logger.Instance.Log("Language Server is about to shutdown.");
153
+ // WORKAROUND: Language Server does not receive an exit notification.
154
+ Task.Delay(1000).ContinueWith(_ => Environment.Exit(0));
155
+ return VoidResult<ResponseError>.Success();
156
+ }
157
158
0 commit comments