Skip to content

Commit dfa3490

Browse files
committed
Move setting up in README
1 parent 7172a13 commit dfa3490

File tree

1 file changed

+22
-22
lines changed

1 file changed

+22
-22
lines changed

README.md

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,28 @@ This extension plugs in the following projects:
77
- [tree-sitter-rescript](https://github.com/rescript-lang/tree-sitter-rescript) parser
88
- [@rescript/language-server](https://github.com/rescript-lang/rescript-vscode) LSP
99

10+
## Settings
11+
12+
```json
13+
"lsp": {
14+
"rescript-language-server": {
15+
"initialization_options": {
16+
"extensionConfiguration": {
17+
"askToStartBuild": false
18+
}
19+
},
20+
"settings": {
21+
"version": "1.71.0-next-441959d.0"
22+
}
23+
}
24+
},
25+
```
26+
27+
`initialization_options` are passed to the language server when it is started. They can be used to configure the language server. See [extensionConfiguration](https://github.com/rescript-lang/rescript-vscode/blob/441959d1feeaaffc1a589687758b1fbe1f649e72/server/src/config.ts#L5-L29)
28+
29+
`settings` are specific to the Zed extension.
30+
With `version` you can point to a specific npm version of the [@rescript/language-server](https://www.npmjs.com/package/@rescript/language-server?activeTab=versions).
31+
1032
## Developing
1133

1234
Zed and it's support for extensions is being actively developed. The current workflow that can be used to build this extension locally and install it into Zed is:
@@ -33,25 +55,3 @@ After opening a ReScript file, open Cmd + Shift + P nav and find
3355
And to see the language server logs, open Cmd + Shift + P nav and find
3456

3557
debug: open language server logs
36-
37-
## Settings
38-
39-
```json
40-
"lsp": {
41-
"rescript-language-server": {
42-
"initialization_options": {
43-
"extensionConfiguration": {
44-
"askToStartBuild": false
45-
}
46-
},
47-
"settings": {
48-
"version": "1.71.0-next-441959d.0"
49-
}
50-
}
51-
},
52-
```
53-
54-
`initialization_options` are passed to the language server when it is started. They can be used to configure the language server. See [extensionConfiguration](https://github.com/rescript-lang/rescript-vscode/blob/441959d1feeaaffc1a589687758b1fbe1f649e72/server/src/config.ts#L5-L29)
55-
56-
`settings` are specific to the Zed extension.
57-
With `version` you can point to a specific npm version of the [@rescript/language-server](https://www.npmjs.com/package/@rescript/language-server?activeTab=versions).

0 commit comments

Comments
 (0)