Skip to content

Commit 43adc0d

Browse files
ManasJayanthjaredly
authored andcommitted
Make client/registerCapability a request (#353)
From the spec > Register Capability > The client/registerCapability request is sent from the server to the client to register for a new capability on the client side. Updated Readme.md too!
1 parent 69f28e0 commit 43adc0d

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

Readme.md

+3-5
Original file line numberDiff line numberDiff line change
@@ -72,13 +72,11 @@ And you're done!
7272

7373
1. Download the `your-platform.zip` file from the [latest release](https://github.com/jaredly/reason-language-server/releases), unzip it, and put the `reason-language-server.exe` file somewhere.
7474
2. Assuming you're using [lsp-mode](https://github.com/emacs-lsp/lsp-mode/), add the following to your config file:
75-
```
75+
```lisp
7676
(lsp-register-client
77-
(make-lsp-client :new-connection (lsp-stdio-connection "/absolute/path/to/reason-language-server.exe")
77+
(make-lsp-client :new-connection (lsp-stdio-connection "/absolute/path/to/reason-language-server.exe")
7878
:major-modes '(reason-mode)
79-
:notification-handlers (ht ("client/registerCapability" 'ignore))
80-
:priority 1
81-
:server-id 'reason-ls))
79+
:server-id 'ocaml-ls))
8280
```
8381

8482
### Atom

src/lsp/Main.re

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ let getInitialState = (params) => {
5252
Log.log("Hello - from " ++ Sys.executable_name);
5353
Log.log("Previous log location: " ++ Log.initial_dest);
5454

55-
Rpc.sendNotification(
55+
Rpc.sendRequest(
5656
Log.log,
5757
stdout,
5858
"client/registerCapability",

0 commit comments

Comments
 (0)