Skip to content

Commit ef508a9

Browse files
committed
Simplify the workaround
1 parent 82f1d76 commit ef508a9

File tree

1 file changed

+12
-15
lines changed

1 file changed

+12
-15
lines changed

README.md

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -9,23 +9,20 @@ This extension plugs in the following projects:
99

1010
## IMPORTANT
1111

12-
Starting from ReScript language server v1.64.0, the internal file watcher (chokidar) was removed ([PR #1096](https://github.com/rescript-lang/rescript-vscode/pull/1096)). The LSP server now expects the editor to watch for file changes and notify the server via the standard LSP `workspace/didChangeWatchedFiles` mechanism.
12+
Because of a temporary issue [#12](https://github.com/humaans/rescript-zed/issues/12), you should add this to your zed settings.json to make sure the editor sees up to date compilation results:
1313

14-
**Recommended workaround** Since this is not currently implemented in this extension it is recommended to pin rescript-language-server to 1.62.0, which is the last version that includes the built-in chokidar file watcher:
15-
16-
```json
17-
{
18-
"lsp": {
19-
"rescript-language-server": {
20-
"settings": {
21-
"version": "1.62.0"
22-
}
23-
}
24-
}
25-
}
2614
```
27-
28-
We're tracking this issue in [#12](https://github.com/humaans/rescript-zed/issues/12).
15+
"lsp": {
16+
"rescript-language-server": {
17+
"initialization_options": {
18+
"extensionConfiguration": {
19+
"incrementalTypechecking": {
20+
"enable": "true",
21+
},
22+
},
23+
},
24+
},
25+
}
2926
3027
## Settings
3128

0 commit comments

Comments
 (0)