Skip to content

Commit 7172a13

Browse files
committed
Document how to configure lsp settings.
1 parent 322204f commit 7172a13

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,25 @@ After opening a ReScript file, open Cmd + Shift + P nav and find
3333
And to see the language server logs, open Cmd + Shift + P nav and find
3434

3535
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)