|
16 | 16 | "engines": { |
17 | 17 | "vscode": "^1.21.0" |
18 | 18 | }, |
19 | | - "categories": ["Formatters", "Programming Languages", "Linters", "Snippets"], |
20 | | - "keywords": ["ocaml", "reason", "bucklescript", "reasonml", "merlin"], |
| 19 | + "categories": [ |
| 20 | + "Formatters", |
| 21 | + "Programming Languages", |
| 22 | + "Linters", |
| 23 | + "Snippets" |
| 24 | + ], |
| 25 | + "keywords": [ |
| 26 | + "ocaml", |
| 27 | + "reason", |
| 28 | + "bucklescript", |
| 29 | + "reasonml", |
| 30 | + "merlin" |
| 31 | + ], |
21 | 32 | "icon": "assets/logo.png", |
22 | | - "activationEvents": ["onLanguage:ocaml", "onLanguage:reason"], |
| 33 | + "activationEvents": [ |
| 34 | + "onLanguage:ocaml", |
| 35 | + "onLanguage:reason" |
| 36 | + ], |
23 | 37 | "main": "./out/src/extension", |
24 | 38 | "contributes": { |
25 | 39 | "configuration": { |
|
42 | 56 | "type": "integer" |
43 | 57 | }, |
44 | 58 | { |
45 | | - "enum": ["Infinity"] |
| 59 | + "enum": [ |
| 60 | + "Infinity" |
| 61 | + ] |
46 | 62 | } |
47 | 63 | ], |
48 | 64 | "default": 500, |
49 | | - "description": |
50 | | - "How long to idle (in milliseconds) after keypresses before refreshing linter diagnostics. Smaller values refresh diagnostics more quickly." |
| 65 | + "description": "How long to idle (in milliseconds) after keypresses before refreshing linter diagnostics. Smaller values refresh diagnostics more quickly." |
51 | 66 | }, |
52 | 67 | "reason.diagnostics.tools": { |
53 | 68 | "type": "array", |
54 | 69 | "items": { |
55 | | - "enum": ["merlin", "bsb"] |
| 70 | + "enum": [ |
| 71 | + "merlin", |
| 72 | + "bsb" |
| 73 | + ] |
56 | 74 | }, |
57 | | - "default": ["merlin"], |
| 75 | + "default": [ |
| 76 | + "merlin" |
| 77 | + ], |
58 | 78 | "maxItems": 2, |
59 | 79 | "uniqueItems": true, |
60 | | - "description": |
61 | | - "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." |
| 80 | + "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." |
62 | 81 | }, |
63 | 82 | "reason.format.width": { |
64 | | - "type": ["number", null], |
| 83 | + "type": [ |
| 84 | + "number", |
| 85 | + null |
| 86 | + ], |
65 | 87 | "default": null, |
66 | 88 | "description": "Set the width of lines when formatting code with refmt" |
67 | 89 | }, |
|
83 | 105 | "reason.path.env": { |
84 | 106 | "type": "string", |
85 | 107 | "default": "env", |
86 | | - "description": |
87 | | - "The path to the `env` command which prints the language server environment for debugging editor issues." |
| 108 | + "description": "The path to the `env` command which prints the language server environment for debugging editor issues." |
88 | 109 | }, |
89 | 110 | "reason.path.ocamlformat": { |
90 | 111 | "type": "string", |
|
129 | 150 | "reason.server.languages": { |
130 | 151 | "type": "array", |
131 | 152 | "items": { |
132 | | - "enum": ["ocaml", "reason"] |
| 153 | + "enum": [ |
| 154 | + "ocaml", |
| 155 | + "reason" |
| 156 | + ] |
133 | 157 | }, |
134 | | - "default": ["ocaml", "reason"], |
| 158 | + "default": [ |
| 159 | + "ocaml", |
| 160 | + "reason" |
| 161 | + ], |
135 | 162 | "maxItems": 2, |
136 | 163 | "uniqueItems": true, |
137 | 164 | "description": "The list of languages enable support for in the language server." |
|
192 | 219 | { |
193 | 220 | "scopeName": "markdown.reason.codeblock", |
194 | 221 | "path": "./syntaxes/reason-markdown-codeblock.json", |
195 | | - "injectTo": ["text.html.markdown"], |
| 222 | + "injectTo": [ |
| 223 | + "text.html.markdown" |
| 224 | + ], |
196 | 225 | "embeddedLanguages": { |
197 | 226 | "meta.embedded.block.reason": "reason" |
198 | 227 | } |
199 | 228 | }, |
200 | 229 | { |
201 | 230 | "scopeName": "markdown.ocaml.codeblock", |
202 | 231 | "path": "./syntaxes/ocaml-markdown-codeblock.json", |
203 | | - "injectTo": ["text.html.markdown"], |
| 232 | + "injectTo": [ |
| 233 | + "text.html.markdown" |
| 234 | + ], |
204 | 235 | "embeddedLanguages": { |
205 | 236 | "meta.embedded.block.ocaml": "ocaml" |
206 | 237 | } |
|
209 | 240 | "languages": [ |
210 | 241 | { |
211 | 242 | "id": "ocaml", |
212 | | - "aliases": ["OCaml"], |
213 | | - "extensions": [".ml", ".mli"], |
| 243 | + "aliases": [ |
| 244 | + "OCaml" |
| 245 | + ], |
| 246 | + "extensions": [ |
| 247 | + ".ml", |
| 248 | + ".mli" |
| 249 | + ], |
214 | 250 | "configuration": "./ocaml.configuration.json" |
215 | 251 | }, |
216 | 252 | { |
|
221 | 257 | }, |
222 | 258 | { |
223 | 259 | "id": "ocaml.merlin", |
224 | | - "aliases": ["Merlin"], |
225 | | - "extensions": ["merlin"] |
| 260 | + "aliases": [ |
| 261 | + "Merlin" |
| 262 | + ], |
| 263 | + "extensions": [ |
| 264 | + "merlin" |
| 265 | + ] |
226 | 266 | }, |
227 | 267 | { |
228 | 268 | "id": "ocaml.ocamlbuild", |
229 | | - "aliases": ["OCamlbuild"], |
230 | | - "extensions": ["_tags"] |
| 269 | + "aliases": [ |
| 270 | + "OCamlbuild" |
| 271 | + ], |
| 272 | + "extensions": [ |
| 273 | + "_tags" |
| 274 | + ] |
231 | 275 | }, |
232 | 276 | { |
233 | 277 | "id": "ocaml.opam", |
234 | | - "aliases": ["OPAM"], |
235 | | - "extensions": ["opam"] |
| 278 | + "aliases": [ |
| 279 | + "OPAM" |
| 280 | + ], |
| 281 | + "extensions": [ |
| 282 | + "opam" |
| 283 | + ] |
236 | 284 | }, |
237 | 285 | { |
238 | 286 | "id": "reason", |
239 | | - "aliases": ["Reason"], |
240 | | - "extensions": [".re", ".rei"], |
| 287 | + "aliases": [ |
| 288 | + "Reason" |
| 289 | + ], |
| 290 | + "extensions": [ |
| 291 | + ".re", |
| 292 | + ".rei" |
| 293 | + ], |
241 | 294 | "configuration": "./reason.configuration.json" |
242 | 295 | }, |
243 | 296 | { |
|
259 | 312 | "problemMatchers": [ |
260 | 313 | { |
261 | 314 | "name": "ocamlc", |
262 | | - |
263 | | - "fileLocation": ["relative", "${workspaceFolder}"], |
| 315 | + "fileLocation": [ |
| 316 | + "relative", |
| 317 | + "${workspaceFolder}" |
| 318 | + ], |
264 | 319 | "pattern": [ |
265 | 320 | { |
266 | | - "regexp": |
267 | | - "^\\s*\\bFile\\b\\s*\"(.*)\",\\s*\\bline\\b\\s*(\\d+),\\s*\\bcharacters\\b\\s*(\\d+)-(\\d+)\\s*:\\s*$", |
| 321 | + "regexp": "^\\s*\\bFile\\b\\s*\"(.*)\",\\s*\\bline\\b\\s*(\\d+),\\s*\\bcharacters\\b\\s*(\\d+)-(\\d+)\\s*:\\s*$", |
268 | 322 | "file": 1, |
269 | 323 | "line": 2, |
270 | 324 | "column": 3, |
271 | 325 | "endColumn": 4 |
272 | 326 | }, |
273 | 327 | { |
274 | | - "regexp": |
275 | | - "^(?:\\s*\\bParse\\b\\s*)?\\s*\\b([Ee]rror|Warning)\\b\\s*(?:\\(\\s*\\bwarning\\b\\s*(\\d+)\\))?\\s*:\\s*(.*)$", |
| 328 | + "regexp": "^(?:\\s*\\bParse\\b\\s*)?\\s*\\b([Ee]rror|Warning)\\b\\s*(?:\\(\\s*\\bwarning\\b\\s*(\\d+)\\))?\\s*:\\s*(.*)$", |
276 | 329 | "severity": 1, |
277 | 330 | "code": 2, |
278 | 331 | "message": 3 |
|
293 | 346 | "@types/lodash.flatmap": "^4.5.3", |
294 | 347 | "@types/node": "9.6.2", |
295 | 348 | "@types/pegjs": "0.10.0", |
| 349 | + "@types/uuid": "^3.4.4", |
296 | 350 | "prettier": "1.11.1", |
297 | 351 | "tslint": "5.9.1", |
298 | 352 | "typescript": "2.8.1", |
|
301 | 355 | "dependencies": { |
302 | 356 | "lodash.flatmap": "^4.5.0", |
303 | 357 | "pegjs": "0.10.0", |
| 358 | + "uuid": "^3.3.2", |
304 | 359 | "vscode-jsonrpc": "3.6.0", |
305 | 360 | "vscode-languageclient": "4.0.1", |
306 | 361 | "vscode-languageserver": "4.0.0", |
|
0 commit comments