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 b2d6d6b commit b25f4cdCopy full SHA for b25f4cd
src/Lsp/LanguageServer.cs
@@ -1,4 +1,4 @@
1
-using System;
+using System;
2
using System.Collections.Concurrent;
3
using System.Collections.Generic;
4
using System.IO;
@@ -213,6 +213,9 @@ private async Task DynamicallyRegisterHandlers()
213
registrations.Add(handler.Registration);
214
}
215
216
+ if (registrations.Count == 0)
217
+ return; // No dynamic registrations supported by client.
218
+
219
var @params = new RegistrationParams() { Registrations = registrations };
220
221
await this.RegisterCapability(@params);
@@ -260,4 +263,4 @@ public void Dispose()
260
263
261
264
public IDictionary<string, JToken> Experimental { get; } = new Dictionary<string, JToken>();
262
265
-}
266
+}
0 commit comments