diff options
Diffstat (limited to 'editors/code/package.json')
-rw-r--r-- | editors/code/package.json | 317 |
1 files changed, 19 insertions, 298 deletions
diff --git a/editors/code/package.json b/editors/code/package.json index f75fafeb9..7d809a2d3 100644 --- a/editors/code/package.json +++ b/editors/code/package.json | |||
@@ -16,47 +16,29 @@ | |||
16 | "vscode": "^1.41.0" | 16 | "vscode": "^1.41.0" |
17 | }, | 17 | }, |
18 | "scripts": { | 18 | "scripts": { |
19 | "vscode:prepublish": "npm run compile", | 19 | "vscode:prepublish": "rollup -c", |
20 | "package": "vsce package", | 20 | "package": "vsce package", |
21 | "compile": "rollup -c && shx cp src/utils/terminateProcess.sh bundle/terminateProcess.sh", | ||
22 | "watch": "tsc -watch -p ./", | 21 | "watch": "tsc -watch -p ./", |
23 | "fix": "prettier **/*.{json,ts} --write && tslint --project . --fix", | 22 | "fmt": "tsfmt -r && tslint -c tslint.json 'src/**/*.ts' --fix" |
24 | "lint": "tslint --project .", | ||
25 | "prettier": "prettier **/*.{json,ts}", | ||
26 | "test": "tsc -p . && node ./out/test/runTest.js", | ||
27 | "travis": "npm run compile && npm run test && npm run lint && npm run prettier -- --write && git diff --exit-code" | ||
28 | }, | ||
29 | "prettier": { | ||
30 | "singleQuote": true, | ||
31 | "tabWidth": 4, | ||
32 | "trailingComma": "all" | ||
33 | }, | 23 | }, |
34 | "dependencies": { | 24 | "dependencies": { |
35 | "lookpath": "^1.0.4", | 25 | "jsonc-parser": "^2.1.0", |
36 | "seedrandom": "^3.0.5", | 26 | "seedrandom": "^3.0.5", |
37 | "vscode-languageclient": "^6.0.0-next.9" | 27 | "vscode-languageclient": "^6.0.0-next.9" |
38 | }, | 28 | }, |
39 | "devDependencies": { | 29 | "devDependencies": { |
40 | "@types/glob": "^7.1.1", | 30 | "@rollup/plugin-commonjs": "^11.0.0", |
41 | "@types/mocha": "^5.2.7", | 31 | "@rollup/plugin-node-resolve": "^6.0.0", |
32 | "@rollup/plugin-typescript": "^2.0.1", | ||
42 | "@types/node": "^12.12.21", | 33 | "@types/node": "^12.12.21", |
43 | "@types/seedrandom": "^2.4.28", | 34 | "@types/seedrandom": "^2.4.28", |
44 | "@types/vscode": "^1.41.0", | 35 | "@types/vscode": "^1.41.0", |
45 | "glob": "^7.1.6", | 36 | "rollup": "^1.27.14", |
46 | "mocha": "^6.2.2", | 37 | "tslib": "^1.10.0", |
47 | "prettier": "^1.19.1", | ||
48 | "rollup": "^1.27.13", | ||
49 | "rollup-plugin-commonjs": "^10.1.0", | ||
50 | "rollup-plugin-node-resolve": "^5.2.0", | ||
51 | "rollup-plugin-sourcemaps": "^0.4.2", | ||
52 | "rollup-plugin-typescript": "^1.0.1", | ||
53 | "shx": "^0.3.1", | ||
54 | "tslint": "^5.20.1", | 38 | "tslint": "^5.20.1", |
55 | "tslint-config-prettier": "^1.18.0", | ||
56 | "tslint-plugin-prettier": "^2.0.1", | ||
57 | "typescript": "^3.7.3", | 39 | "typescript": "^3.7.3", |
58 | "vsce": "^1.71.0", | 40 | "typescript-formatter": "^7.2.2", |
59 | "vscode-test": "^1.3.0" | 41 | "vsce": "^1.71.0" |
60 | }, | 42 | }, |
61 | "activationEvents": [ | 43 | "activationEvents": [ |
62 | "onLanguage:rust", | 44 | "onLanguage:rust", |
@@ -64,7 +46,7 @@ | |||
64 | "onCommand:rust-analyzer.collectGarbage", | 46 | "onCommand:rust-analyzer.collectGarbage", |
65 | "workspaceContains:**/Cargo.toml" | 47 | "workspaceContains:**/Cargo.toml" |
66 | ], | 48 | ], |
67 | "main": "./bundle/extension", | 49 | "main": "./out/main", |
68 | "contributes": { | 50 | "contributes": { |
69 | "taskDefinitions": [ | 51 | "taskDefinitions": [ |
70 | { | 52 | { |
@@ -133,16 +115,6 @@ | |||
133 | "command": "rust-analyzer.reload", | 115 | "command": "rust-analyzer.reload", |
134 | "title": "Restart server", | 116 | "title": "Restart server", |
135 | "category": "Rust Analyzer" | 117 | "category": "Rust Analyzer" |
136 | }, | ||
137 | { | ||
138 | "command": "rust-analyzer.startCargoWatch", | ||
139 | "title": "Start Cargo Watch", | ||
140 | "category": "Rust Analyzer" | ||
141 | }, | ||
142 | { | ||
143 | "command": "rust-analyzer.stopCargoWatch", | ||
144 | "title": "Stop Cargo Watch", | ||
145 | "category": "Rust Analyzer" | ||
146 | } | 118 | } |
147 | ], | 119 | ], |
148 | "keybindings": [ | 120 | "keybindings": [ |
@@ -198,21 +170,6 @@ | |||
198 | "default": "ra_lsp_server", | 170 | "default": "ra_lsp_server", |
199 | "description": "Path to ra_lsp_server executable" | 171 | "description": "Path to ra_lsp_server executable" |
200 | }, | 172 | }, |
201 | "rust-analyzer.enableCargoWatchOnStartup": { | ||
202 | "type": "string", | ||
203 | "default": "ask", | ||
204 | "enum": [ | ||
205 | "ask", | ||
206 | "enabled", | ||
207 | "disabled" | ||
208 | ], | ||
209 | "enumDescriptions": [ | ||
210 | "Asks each time whether to run `cargo watch`", | ||
211 | "`cargo watch` is always started", | ||
212 | "Don't start `cargo watch`" | ||
213 | ], | ||
214 | "description": "Whether to run `cargo watch` on startup" | ||
215 | }, | ||
216 | "rust-analyzer.excludeGlobs": { | 173 | "rust-analyzer.excludeGlobs": { |
217 | "type": "array", | 174 | "type": "array", |
218 | "default": [], | 175 | "default": [], |
@@ -223,21 +180,21 @@ | |||
223 | "default": true, | 180 | "default": true, |
224 | "description": "client provided file watching instead of notify watching." | 181 | "description": "client provided file watching instead of notify watching." |
225 | }, | 182 | }, |
183 | "rust-analyzer.cargo-watch.enable": { | ||
184 | "type": "boolean", | ||
185 | "default": true, | ||
186 | "description": "Run `cargo check` for diagnostics on save" | ||
187 | }, | ||
226 | "rust-analyzer.cargo-watch.arguments": { | 188 | "rust-analyzer.cargo-watch.arguments": { |
227 | "type": "string", | 189 | "type": "array", |
228 | "description": "`cargo-watch` arguments. (e.g: `--features=\"shumway,pdf\"` will run as `cargo watch -x \"check --features=\"shumway,pdf\"\"` )", | 190 | "description": "`cargo-watch` arguments. (e.g: `--features=\"shumway,pdf\"` will run as `cargo watch -x \"check --features=\"shumway,pdf\"\"` )", |
229 | "default": "" | 191 | "default": [] |
230 | }, | 192 | }, |
231 | "rust-analyzer.cargo-watch.command": { | 193 | "rust-analyzer.cargo-watch.command": { |
232 | "type": "string", | 194 | "type": "string", |
233 | "description": "`cargo-watch` command. (e.g: `clippy` will run as `cargo watch -x clippy` )", | 195 | "description": "`cargo-watch` command. (e.g: `clippy` will run as `cargo watch -x clippy` )", |
234 | "default": "check" | 196 | "default": "check" |
235 | }, | 197 | }, |
236 | "rust-analyzer.cargo-watch.ignore": { | ||
237 | "type": "array", | ||
238 | "description": "A list of patterns for cargo-watch to ignore (will be passed as `--ignore`)", | ||
239 | "default": [] | ||
240 | }, | ||
241 | "rust-analyzer.cargo-watch.allTargets": { | 198 | "rust-analyzer.cargo-watch.allTargets": { |
242 | "type": "boolean", | 199 | "type": "boolean", |
243 | "description": "Check all targets and tests (will be passed as `--all-targets`)", | 200 | "description": "Check all targets and tests (will be passed as `--all-targets`)", |
@@ -259,17 +216,6 @@ | |||
259 | "default": "off", | 216 | "default": "off", |
260 | "description": "Trace requests to the ra_lsp_server" | 217 | "description": "Trace requests to the ra_lsp_server" |
261 | }, | 218 | }, |
262 | "rust-analyzer.trace.cargo-watch": { | ||
263 | "type": "string", | ||
264 | "scope": "window", | ||
265 | "enum": [ | ||
266 | "off", | ||
267 | "error", | ||
268 | "verbose" | ||
269 | ], | ||
270 | "default": "off", | ||
271 | "description": "Trace output of cargo-watch" | ||
272 | }, | ||
273 | "rust-analyzer.lruCapacity": { | 219 | "rust-analyzer.lruCapacity": { |
274 | "type": "number", | 220 | "type": "number", |
275 | "default": null, | 221 | "default": null, |
@@ -367,232 +313,7 @@ | |||
367 | ], | 313 | ], |
368 | "colors": [ | 314 | "colors": [ |
369 | { | 315 | { |
370 | "id": "ralsp.comment", | 316 | "id": "rust_analyzer.inlayHint", |
371 | "description": "Color for comments", | ||
372 | "defaults": { | ||
373 | "dark": "#6A9955", | ||
374 | "light": "#008000", | ||
375 | "highContrast": "#7CA668" | ||
376 | } | ||
377 | }, | ||
378 | { | ||
379 | "id": "ralsp.string", | ||
380 | "description": "Color for strings", | ||
381 | "defaults": { | ||
382 | "dark": "#CE9178", | ||
383 | "light": "#A31515", | ||
384 | "highContrast": "#CE9178" | ||
385 | } | ||
386 | }, | ||
387 | { | ||
388 | "id": "ralsp.keyword", | ||
389 | "description": "Color for keywords", | ||
390 | "defaults": { | ||
391 | "dark": "#569cd6", | ||
392 | "light": "#0000FF", | ||
393 | "highContrast": "#569CD6" | ||
394 | } | ||
395 | }, | ||
396 | { | ||
397 | "id": "ralsp.keyword.control", | ||
398 | "description": "Color for control keywords", | ||
399 | "defaults": { | ||
400 | "dark": "#C586C0", | ||
401 | "light": "#AF00DB", | ||
402 | "highContrast": "#C586C0" | ||
403 | } | ||
404 | }, | ||
405 | { | ||
406 | "id": "ralsp.keyword.unsafe", | ||
407 | "description": "Color for unsafe", | ||
408 | "defaults": { | ||
409 | "dark": "#FF3030", | ||
410 | "light": "#FF1010", | ||
411 | "highContrast": "#FF1010" | ||
412 | } | ||
413 | }, | ||
414 | { | ||
415 | "id": "ralsp.function", | ||
416 | "description": "Color for functions", | ||
417 | "defaults": { | ||
418 | "dark": "#DCDCAA", | ||
419 | "light": "#795E26", | ||
420 | "highContrast": "#DCDCAA" | ||
421 | } | ||
422 | }, | ||
423 | { | ||
424 | "id": "ralsp.parameter", | ||
425 | "description": "Color for parameters", | ||
426 | "defaults": { | ||
427 | "dark": "#9CDCFE", | ||
428 | "light": "#001080", | ||
429 | "highContrast": "#9CDCFE" | ||
430 | } | ||
431 | }, | ||
432 | { | ||
433 | "id": "ralsp.builtin", | ||
434 | "description": "Color for builtins", | ||
435 | "defaults": { | ||
436 | "dark": "#DD6718", | ||
437 | "light": "#DD6718", | ||
438 | "highContrast": "#DD6718" | ||
439 | } | ||
440 | }, | ||
441 | { | ||
442 | "id": "ralsp.text", | ||
443 | "description": "Color for text", | ||
444 | "defaults": { | ||
445 | "dark": "#D4D4D4", | ||
446 | "light": "#000000", | ||
447 | "highContrast": "#FFFFFF" | ||
448 | } | ||
449 | }, | ||
450 | { | ||
451 | "id": "ralsp.attribute", | ||
452 | "description": "Color for attributes", | ||
453 | "defaults": { | ||
454 | "dark": "#9FE9BF", | ||
455 | "light": "#1F4B1F", | ||
456 | "highContrast": "#108010" | ||
457 | } | ||
458 | }, | ||
459 | { | ||
460 | "id": "ralsp.literal", | ||
461 | "description": "Color for literals", | ||
462 | "defaults": { | ||
463 | "dark": "#BECEA8", | ||
464 | "light": "#09885A", | ||
465 | "highContrast": "#B5CEA8" | ||
466 | } | ||
467 | }, | ||
468 | { | ||
469 | "id": "ralsp.literal.numeric", | ||
470 | "description": "Color for numeric literals", | ||
471 | "defaults": { | ||
472 | "dark": "#BECEA8", | ||
473 | "light": "#09885A", | ||
474 | "highContrast": "#B5CEA8" | ||
475 | } | ||
476 | }, | ||
477 | { | ||
478 | "id": "ralsp.literal.char", | ||
479 | "description": "Color for character literals", | ||
480 | "defaults": { | ||
481 | "dark": "#BECEA8", | ||
482 | "light": "#09885A", | ||
483 | "highContrast": "#B5CEA8" | ||
484 | } | ||
485 | }, | ||
486 | { | ||
487 | "id": "ralsp.literal.byte", | ||
488 | "description": "Color for byte literals", | ||
489 | "defaults": { | ||
490 | "dark": "#BECEA8", | ||
491 | "light": "#09885A", | ||
492 | "highContrast": "#B5CEA8" | ||
493 | } | ||
494 | }, | ||
495 | { | ||
496 | "id": "ralsp.macro", | ||
497 | "description": "Color for macros", | ||
498 | "defaults": { | ||
499 | "dark": "#BFEBBF", | ||
500 | "light": "#DD6718", | ||
501 | "highContrast": "#ED7718" | ||
502 | } | ||
503 | }, | ||
504 | { | ||
505 | "id": "ralsp.constant", | ||
506 | "description": "Color for constants", | ||
507 | "defaults": { | ||
508 | "dark": "#569cd6", | ||
509 | "light": "#267cb6", | ||
510 | "highContrast": "#569cd6" | ||
511 | } | ||
512 | }, | ||
513 | { | ||
514 | "id": "ralsp.type", | ||
515 | "description": "Color for other types (traits, aliases..)", | ||
516 | "defaults": { | ||
517 | "dark": "#4EC9B0", | ||
518 | "light": "#267F99", | ||
519 | "highContrast": "#4EC9B0" | ||
520 | } | ||
521 | }, | ||
522 | { | ||
523 | "id": "ralsp.type.builtin", | ||
524 | "description": "Color for built-in types (&str, bool, u16, u32)", | ||
525 | "defaults": { | ||
526 | "dark": "#4EC9B0", | ||
527 | "light": "#267F99", | ||
528 | "highContrast": "#4EC9B0" | ||
529 | } | ||
530 | }, | ||
531 | { | ||
532 | "id": "ralsp.type.lifetime", | ||
533 | "description": "Color for lifetimes parameters", | ||
534 | "defaults": { | ||
535 | "dark": "#4EC9B0", | ||
536 | "light": "#267F99", | ||
537 | "highContrast": "#4EC9B0" | ||
538 | } | ||
539 | }, | ||
540 | { | ||
541 | "id": "ralsp.type.self", | ||
542 | "description": "Color for `Self` param type", | ||
543 | "defaults": { | ||
544 | "dark": "#4EC9B0", | ||
545 | "light": "#267F99", | ||
546 | "highContrast": "#4EC9B0" | ||
547 | } | ||
548 | }, | ||
549 | { | ||
550 | "id": "ralsp.type.param", | ||
551 | "description": "Color for type parameters", | ||
552 | "defaults": { | ||
553 | "dark": "#4EC9B0", | ||
554 | "light": "#267F99", | ||
555 | "highContrast": "#4EC9B0" | ||
556 | } | ||
557 | }, | ||
558 | { | ||
559 | "id": "ralsp.field", | ||
560 | "description": "Color for fields", | ||
561 | "defaults": { | ||
562 | "dark": "#4EC9B0", | ||
563 | "light": "#267F99", | ||
564 | "highContrast": "#4EC9B0" | ||
565 | } | ||
566 | }, | ||
567 | { | ||
568 | "id": "ralsp.variable", | ||
569 | "description": "Color for variables", | ||
570 | "defaults": { | ||
571 | "dark": "#4EC9B0", | ||
572 | "light": "#267F99", | ||
573 | "highContrast": "#4EC9B0" | ||
574 | } | ||
575 | }, | ||
576 | { | ||
577 | "id": "ralsp.variable.mut", | ||
578 | "description": "Color for mutable variables", | ||
579 | "defaults": { | ||
580 | "dark": "#4EC9B0", | ||
581 | "light": "#267F99", | ||
582 | "highContrast": "#4EC9B0" | ||
583 | } | ||
584 | }, | ||
585 | { | ||
586 | "id": "ralsp.module", | ||
587 | "description": "Color for modules", | ||
588 | "defaults": { | ||
589 | "dark": "#D4D4D4", | ||
590 | "light": "#000000", | ||
591 | "highContrast": "#FFFFFF" | ||
592 | } | ||
593 | }, | ||
594 | { | ||
595 | "id": "ralsp.inlayHint", | ||
596 | "description": "Color for inlay hints", | 317 | "description": "Color for inlay hints", |
597 | "defaults": { | 318 | "defaults": { |
598 | "dark": "#A0A0A0F0", | 319 | "dark": "#A0A0A0F0", |