diff options
Diffstat (limited to 'src/main/java/org/javacs/lsp/LSP.java')
-rw-r--r-- | src/main/java/org/javacs/lsp/LSP.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/org/javacs/lsp/LSP.java b/src/main/java/org/javacs/lsp/LSP.java index a9c2cbd..eede0d3 100644 --- a/src/main/java/org/javacs/lsp/LSP.java +++ b/src/main/java/org/javacs/lsp/LSP.java @@ -140,10 +140,10 @@ public class LSP { } @Override - public void registerCapability(String id, JsonElement options) { + public void registerCapability(String method, JsonElement options) { var params = new RegistrationParams(); params.id = UUID.randomUUID().toString(); - params.id = id; + params.method = method; params.registerOptions = options; notifyClient(send, "client/registerCapability", params); |