|
1 | 1 | [ |
2 | 2 | { |
3 | | - "type": "object", |
4 | | - "title": "Reason configuration", |
| 3 | + "title": "OCaml Platform", |
5 | 4 | "properties": { |
6 | | - "reason.codelens.unicode": { |
7 | | - "type": "boolean", |
8 | | - "default": true, |
9 | | - "description": "Enable the use of unicode symbols in codelens.", |
10 | | - "scope": 3 |
11 | | - }, |
12 | | - "reason.codelens.enabled": { |
13 | | - "type": "boolean", |
14 | | - "default": false, |
15 | | - "description": "Specifies whether the code lens is shown.", |
16 | | - "scope": 3 |
17 | | - }, |
18 | | - "reason.debounce.linter": { |
19 | | - "oneOf": [ |
20 | | - { |
21 | | - "type": "integer" |
22 | | - }, |
23 | | - { |
24 | | - "enum": [ |
25 | | - "Infinity" |
26 | | - ] |
27 | | - } |
28 | | - ], |
29 | | - "default": 500, |
30 | | - "description": "How long to idle (in milliseconds) after keypresses before refreshing linter diagnostics. Smaller values refresh diagnostics more quickly.", |
31 | | - "scope": 3 |
32 | | - }, |
33 | | - "reason.diagnostics.tools": { |
34 | | - "type": "array", |
35 | | - "items": { |
36 | | - "enum": [ |
37 | | - "merlin", |
38 | | - "bsb" |
39 | | - ] |
40 | | - }, |
41 | | - "default": [ |
42 | | - "merlin" |
43 | | - ], |
44 | | - "maxItems": 2, |
45 | | - "uniqueItems": true, |
46 | | - "description": "Specifies which tool or tools will be used to get diagnostics. If you choose both \"merlin\" and \"bsb\", merlin will be used while editing and bsb when saving.", |
| 5 | + "ocaml.sandbox": { |
| 6 | + "type": "object", |
| 7 | + "default": null, |
| 8 | + "description": "Determines where to find the sandbox for a given project", |
47 | 9 | "scope": 3 |
48 | 10 | }, |
49 | | - "reason.format.width": { |
| 11 | + "ocaml.server.extraEnv": { |
50 | 12 | "type": [ |
51 | | - "number", |
52 | | - null |
| 13 | + "null", |
| 14 | + "object" |
53 | 15 | ], |
54 | 16 | "default": null, |
55 | | - "description": "Set the width of lines when formatting code with refmt", |
| 17 | + "markdownDescription": "Extra environment variables that will be passed to OCaml LSP executable. Useful for debugging purposes mostly.", |
56 | 18 | "scope": 3 |
57 | 19 | }, |
58 | | - "reason.path.bsb": { |
59 | | - "type": "string", |
60 | | - "default": "./node_modules/bs-platform/lib/bsb.exe", |
61 | | - "description": "The path to the `bsb` binary.", |
| 20 | + "ocaml.dune.autoDetect": { |
| 21 | + "type": "boolean", |
| 22 | + "default": true, |
| 23 | + "description": "Controls whether dune tasks should be automatically detected.", |
62 | 24 | "scope": 3 |
63 | 25 | }, |
64 | | - "reason.path.ocamlfind": { |
| 26 | + "ocaml.trace.server": { |
| 27 | + "description": "Controls the logging output of the language server. Valid settings are `off`, `messages`, or `verbose`.", |
65 | 28 | "type": "string", |
66 | | - "default": "ocamlfind", |
67 | | - "description": "The path to the `ocamlfind` binary.", |
| 29 | + "enum": [ |
| 30 | + "off", |
| 31 | + "messages", |
| 32 | + "verbose" |
| 33 | + ], |
| 34 | + "default": "off", |
68 | 35 | "scope": 3 |
69 | 36 | }, |
70 | | - "reason.path.esy": { |
71 | | - "type": "string", |
72 | | - "default": "esy", |
73 | | - "description": "The path to the `esy` binary.", |
| 37 | + "ocaml.useOcamlEnv": { |
| 38 | + "type": "boolean", |
| 39 | + "default": true, |
| 40 | + "description": "Controls whether to use ocaml-env for opam commands from OCaml for Windows.", |
74 | 41 | "scope": 3 |
75 | 42 | }, |
76 | | - "reason.path.env": { |
77 | | - "type": "string", |
78 | | - "default": "env", |
79 | | - "description": "The path to the `env` command which prints the language server environment for debugging editor issues.", |
| 43 | + "ocaml.terminal.shell.linux": { |
| 44 | + "description": "The path of the shell that the sandbox terminal uses on Linux", |
| 45 | + "type": [ |
| 46 | + "string", |
| 47 | + "null" |
| 48 | + ], |
| 49 | + "default": null, |
80 | 50 | "scope": 3 |
81 | 51 | }, |
82 | | - "reason.path.ocamlmerlin": { |
83 | | - "type": "string", |
84 | | - "default": "ocamlmerlin", |
85 | | - "description": "The path to the `ocamlmerlin` binary.", |
| 52 | + "ocaml.terminal.shell.osx": { |
| 53 | + "description": "The path of the shell that the sandbox terminal uses on macOS", |
| 54 | + "type": [ |
| 55 | + "string", |
| 56 | + "null" |
| 57 | + ], |
| 58 | + "default": null, |
86 | 59 | "scope": 3 |
87 | 60 | }, |
88 | | - "reason.path.ocpindent": { |
89 | | - "type": "string", |
90 | | - "default": "ocp-indent", |
91 | | - "description": "The path to the `ocp-indent` binary.", |
| 61 | + "ocaml.terminal.shell.windows": { |
| 62 | + "description": "The path of the shell that the sandbox terminal uses on Windows", |
| 63 | + "type": [ |
| 64 | + "string", |
| 65 | + "null" |
| 66 | + ], |
| 67 | + "default": null, |
92 | 68 | "scope": 3 |
93 | 69 | }, |
94 | | - "reason.path.opam": { |
95 | | - "type": "string", |
96 | | - "default": "opam", |
97 | | - "description": "The path to the `opam` binary.", |
| 70 | + "ocaml.terminal.shellArgs.linux": { |
| 71 | + "description": "The command line arguments that the sandbox terminal uses on Linux", |
| 72 | + "type": [ |
| 73 | + "array", |
| 74 | + "null" |
| 75 | + ], |
| 76 | + "items": "string", |
| 77 | + "default": null, |
98 | 78 | "scope": 3 |
99 | 79 | }, |
100 | | - "reason.path.rebuild": { |
101 | | - "type": "string", |
102 | | - "default": "rebuild", |
103 | | - "description": "The path to the `rebuild` binary.", |
| 80 | + "ocaml.terminal.shellArgs.osx": { |
| 81 | + "description": "The command line arguments that the sandbox terminal uses on macOS", |
| 82 | + "type": [ |
| 83 | + "array", |
| 84 | + "null" |
| 85 | + ], |
| 86 | + "items": "string", |
| 87 | + "default": null, |
104 | 88 | "scope": 3 |
105 | 89 | }, |
106 | | - "reason.path.refmt": { |
107 | | - "type": "string", |
108 | | - "default": "refmt", |
109 | | - "description": "The path to the `refmt` binary.", |
| 90 | + "ocaml.terminal.shellArgs.windows": { |
| 91 | + "description": "The command line arguments that the sandbox terminal uses on Window", |
| 92 | + "type": [ |
| 93 | + "array", |
| 94 | + "null" |
| 95 | + ], |
| 96 | + "items": "string", |
| 97 | + "default": null, |
110 | 98 | "scope": 3 |
111 | 99 | }, |
112 | | - "reason.path.refmterr": { |
113 | | - "type": "string", |
114 | | - "default": "refmterr", |
115 | | - "description": "The path to the `refmterr` binary.", |
| 100 | + "ocaml.repl.path": { |
| 101 | + "description": "The path of the REPL that the extension uses", |
| 102 | + "type": [ |
| 103 | + "string", |
| 104 | + "null" |
| 105 | + ], |
| 106 | + "default": null, |
116 | 107 | "scope": 3 |
117 | 108 | }, |
118 | | - "reason.path.rtop": { |
119 | | - "type": "string", |
120 | | - "default": "rtop", |
121 | | - "description": "The path to the `rtop` binary.", |
| 109 | + "ocaml.repl.args": { |
| 110 | + "description": "The REPL arguments that the extension uses", |
| 111 | + "type": [ |
| 112 | + "array", |
| 113 | + "null" |
| 114 | + ], |
| 115 | + "items": "string", |
| 116 | + "default": null, |
122 | 117 | "scope": 3 |
123 | 118 | }, |
124 | | - "reason.server.languages": { |
125 | | - "type": "array", |
126 | | - "items": { |
127 | | - "enum": [ |
128 | | - "ocaml", |
129 | | - "reason" |
130 | | - ] |
131 | | - }, |
132 | | - "default": [ |
133 | | - "ocaml", |
134 | | - "reason" |
135 | | - ], |
136 | | - "maxItems": 2, |
137 | | - "uniqueItems": true, |
138 | | - "description": "The list of languages enable support for in the language server.", |
| 119 | + "ocaml.repl.useUtop": { |
| 120 | + "type": "boolean", |
| 121 | + "default": true, |
| 122 | + "description": "Controls whether to use Utop for the REPL if it is installed in the current switch.", |
139 | 123 | "scope": 3 |
140 | 124 | } |
141 | 125 | } |
|
0 commit comments