You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The ReScript Language Server support the folowing configuration.
4
+
5
+
These configurations are sent to the server on [initialization](https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#initialize)
6
+
7
+
```typescript
8
+
interfaceconfig {
9
+
/**
10
+
* Format code using builtin formatter from server
11
+
* @defaultfalse
12
+
*/
13
+
allowBuiltInFormatter:boolean;
14
+
15
+
/**
16
+
* Whether you want the extension to prompt for autostarting a ReScript build if a project is opened with no build running
17
+
* @defaulttrue
18
+
*/
19
+
askToStartBuild:boolean;
20
+
21
+
/**
22
+
* Inlay Hint config
23
+
*/
24
+
inlayHints: {
25
+
/**
26
+
* Enable Inlay Hint
27
+
* @defalt false
28
+
*/
29
+
enable:boolean;
30
+
/**
31
+
* Maximum length of character for inlay hints. Set to null to have an unlimited length. Inlay hints that exceed the maximum length will not be shown
32
+
* @defalt 25
33
+
*/
34
+
maxLength:number|null;
35
+
};
36
+
/**
37
+
* Enable CodeLens
38
+
* @defaultfalse
39
+
*/
40
+
codeLens:boolean;
41
+
/**
42
+
* Path to the directory where cross-platform ReScript binaries are. You can use it if you haven't or don't want to use the installed ReScript from node_modules in your project.
43
+
* @defaultnull
44
+
*/
45
+
binaryPath:string|null;
46
+
/**
47
+
* Path to the directory where platform-specific ReScript binaries are. You can use it if you haven't or don't want to use the installed ReScript from node_modules in your project.
0 commit comments