Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit43adc0d

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 parent69f28e0 commit43adc0d

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

‎Readme.md‎

Lines changed: 3 additions & 5 deletions
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‎

Lines changed: 1 addition & 1 deletion
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)

[8]ページ先頭

©2009-2025 Movatter.jp