aboutsummaryrefslogtreecommitdiff
path: root/editors/code/package.json
diff options
context:
space:
mode:
Diffstat (limited to 'editors/code/package.json')
-rw-r--r--editors/code/package.json128
1 files changed, 102 insertions, 26 deletions
diff --git a/editors/code/package.json b/editors/code/package.json
index d30673791..78f647baa 100644
--- a/editors/code/package.json
+++ b/editors/code/package.json
@@ -33,22 +33,21 @@
33 "fix": " tsfmt -r && eslint -c .eslintrc.js --ext ts ./src --fix" 33 "fix": " tsfmt -r && eslint -c .eslintrc.js --ext ts ./src --fix"
34 }, 34 },
35 "dependencies": { 35 "dependencies": {
36 "jsonc-parser": "^2.2.1",
37 "node-fetch": "^2.6.0", 36 "node-fetch": "^2.6.0",
38 "vscode-languageclient": "7.0.0-next.1" 37 "vscode-languageclient": "7.0.0-next.1"
39 }, 38 },
40 "devDependencies": { 39 "devDependencies": {
41 "@rollup/plugin-commonjs": "^11.1.0", 40 "@rollup/plugin-commonjs": "^11.1.0",
42 "@rollup/plugin-node-resolve": "^7.1.3", 41 "@rollup/plugin-node-resolve": "^7.1.3",
43 "@types/node": "^12.12.37", 42 "@types/node": "^12.12.39",
44 "@types/node-fetch": "^2.5.6", 43 "@types/node-fetch": "^2.5.7",
45 "@types/vscode": "^1.44.0", 44 "@types/vscode": "^1.44.0",
46 "@typescript-eslint/eslint-plugin": "^2.29.0", 45 "@typescript-eslint/eslint-plugin": "^2.33.0",
47 "@typescript-eslint/parser": "^2.29.0", 46 "@typescript-eslint/parser": "^2.33.0",
48 "eslint": "^6.8.0", 47 "eslint": "^6.8.0",
49 "rollup": "^2.7.1", 48 "rollup": "^2.10.0",
50 "tslib": "^1.11.1", 49 "tslib": "^1.12.0",
51 "typescript": "^3.8.3", 50 "typescript": "^3.9.2",
52 "typescript-formatter": "^7.2.2", 51 "typescript-formatter": "^7.2.2",
53 "vsce": "^1.75.0" 52 "vsce": "^1.75.0"
54 }, 53 },
@@ -122,6 +121,16 @@
122 "category": "Rust Analyzer" 121 "category": "Rust Analyzer"
123 }, 122 },
124 { 123 {
124 "command": "rust-analyzer.debug",
125 "title": "Debug",
126 "category": "Rust Analyzer"
127 },
128 {
129 "command": "rust-analyzer.newDebugConfig",
130 "title": "Generate launch configuration",
131 "category": "Rust Analyzer"
132 },
133 {
125 "command": "rust-analyzer.analyzerStatus", 134 "command": "rust-analyzer.analyzerStatus",
126 "title": "Status", 135 "title": "Status",
127 "category": "Rust Analyzer" 136 "category": "Rust Analyzer"
@@ -205,11 +214,6 @@
205 "default": [], 214 "default": [],
206 "description": "Paths to exclude from analysis." 215 "description": "Paths to exclude from analysis."
207 }, 216 },
208 "rust-analyzer.notifications.workspaceLoaded": {
209 "type": "boolean",
210 "default": true,
211 "markdownDescription": "Whether to show `workspace loaded` message."
212 },
213 "rust-analyzer.notifications.cargoTomlNotFound": { 217 "rust-analyzer.notifications.cargoTomlNotFound": {
214 "type": "boolean", 218 "type": "boolean",
215 "default": true, 219 "default": true,
@@ -238,6 +242,14 @@
238 "default": false, 242 "default": false,
239 "markdownDescription": "Run `cargo check` on startup to get the correct value for package OUT_DIRs" 243 "markdownDescription": "Run `cargo check` on startup to get the correct value for package OUT_DIRs"
240 }, 244 },
245 "rust-analyzer.cargo.target": {
246 "type": [
247 "null",
248 "string"
249 ],
250 "default": null,
251 "description": "Specify the compilation target"
252 },
241 "rust-analyzer.rustfmt.extraArgs": { 253 "rust-analyzer.rustfmt.extraArgs": {
242 "type": "array", 254 "type": "array",
243 "items": { 255 "items": {
@@ -286,27 +298,37 @@
286 "minItems": 1 298 "minItems": 1
287 }, 299 },
288 "default": null, 300 "default": null,
289 "markdownDescription": "Advanced option, fully override the command rust-analyzer uses for checking. The command should include `--message=format=json` or similar option." 301 "markdownDescription": "Advanced option, fully override the command rust-analyzer uses for checking. The command should include `--message-format=json` or similar option."
290 }, 302 },
291 "rust-analyzer.checkOnSave.allTargets": { 303 "rust-analyzer.checkOnSave.allTargets": {
292 "type": "boolean", 304 "type": "boolean",
293 "default": true, 305 "default": true,
294 "markdownDescription": "Check all targets and tests (will be passed as `--all-targets`)" 306 "markdownDescription": "Check all targets and tests (will be passed as `--all-targets`)"
295 }, 307 },
308 "rust-analyzer.checkOnSave.allFeatures": {
309 "type": "boolean",
310 "default": true,
311 "markdownDescription": "Check with all features (will be passed as `--all-features`)"
312 },
313 "rust-analyzer.inlayHints.enable": {
314 "type": "boolean",
315 "default": true,
316 "description": "Whether to show inlay hints"
317 },
296 "rust-analyzer.inlayHints.typeHints": { 318 "rust-analyzer.inlayHints.typeHints": {
297 "type": "boolean", 319 "type": "boolean",
298 "default": true, 320 "default": true,
299 "description": "Whether to show inlay type hints" 321 "description": "Whether to show inlay type hints for variables."
300 }, 322 },
301 "rust-analyzer.inlayHints.chainingHints": { 323 "rust-analyzer.inlayHints.chainingHints": {
302 "type": "boolean", 324 "type": "boolean",
303 "default": true, 325 "default": true,
304 "description": "Whether to show inlay type hints for method chains" 326 "description": "Whether to show inlay type hints for method chains."
305 }, 327 },
306 "rust-analyzer.inlayHints.parameterHints": { 328 "rust-analyzer.inlayHints.parameterHints": {
307 "type": "boolean", 329 "type": "boolean",
308 "default": true, 330 "default": true,
309 "description": "Whether to show function parameter name inlay hints at the call site" 331 "description": "Whether to show function parameter name inlay hints at the call site."
310 }, 332 },
311 "rust-analyzer.inlayHints.maxLength": { 333 "rust-analyzer.inlayHints.maxLength": {
312 "type": [ 334 "type": [
@@ -398,7 +420,7 @@
398 "ms-vscode.cpptools" 420 "ms-vscode.cpptools"
399 ], 421 ],
400 "default": "auto", 422 "default": "auto",
401 "description": "Preffered debug engine.", 423 "description": "Preferred debug engine.",
402 "markdownEnumDescriptions": [ 424 "markdownEnumDescriptions": [
403 "First try to use [CodeLLDB](https://marketplace.visualstudio.com/items?itemName=vadimcn.vscode-lldb), if it's not installed try to use [MS C++ tools](https://marketplace.visualstudio.com/items?itemName=ms-vscode.cpptools).", 425 "First try to use [CodeLLDB](https://marketplace.visualstudio.com/items?itemName=vadimcn.vscode-lldb), if it's not installed try to use [MS C++ tools](https://marketplace.visualstudio.com/items?itemName=ms-vscode.cpptools).",
404 "Use [CodeLLDB](https://marketplace.visualstudio.com/items?itemName=vadimcn.vscode-lldb)", 426 "Use [CodeLLDB](https://marketplace.visualstudio.com/items?itemName=vadimcn.vscode-lldb)",
@@ -411,6 +433,36 @@
411 "default": { 433 "default": {
412 "/rustc/<id>": "${env:USERPROFILE}/.rustup/toolchains/<toolchain-id>/lib/rustlib/src/rust" 434 "/rustc/<id>": "${env:USERPROFILE}/.rustup/toolchains/<toolchain-id>/lib/rustlib/src/rust"
413 } 435 }
436 },
437 "rust-analyzer.debug.openDebugPane": {
438 "description": "Whether to open up the Debug Pane on debugging start.",
439 "type": "boolean",
440 "default": false
441 },
442 "rust-analyzer.debug.engineSettings": {
443 "type": "object",
444 "default": {},
445 "description": "Optional settings passed to the debug engine. Example:\n{ \"lldb\": { \"terminal\":\"external\"} }"
446 },
447 "rust-analyzer.lens.enable": {
448 "description": "Whether to show CodeLens in Rust files.",
449 "type": "boolean",
450 "default": true
451 },
452 "rust-analyzer.lens.run": {
453 "markdownDescription": "Whether to show Run lens. Only applies when `#rust-analyzer.lens.enable#` is set.",
454 "type": "boolean",
455 "default": true
456 },
457 "rust-analyzer.lens.debug": {
458 "markdownDescription": "Whether to show Debug lens. Only applies when `#rust-analyzer.lens.enable#` is set.",
459 "type": "boolean",
460 "default": true
461 },
462 "rust-analyzer.lens.implementations": {
463 "markdownDescription": "Whether to show Implementations lens. Only applies when `#rust-analyzer.lens.enable#` is set.",
464 "type": "boolean",
465 "default": true
414 } 466 }
415 } 467 }
416 }, 468 },
@@ -457,6 +509,11 @@
457 ], 509 ],
458 "grammars": [ 510 "grammars": [
459 { 511 {
512 "language": "rust",
513 "scopeName": "source.rust",
514 "path": "rust.tmGrammar.json"
515 },
516 {
460 "language": "ra_syntax_tree", 517 "language": "ra_syntax_tree",
461 "scopeName": "source.ra_syntax_tree", 518 "scopeName": "source.ra_syntax_tree",
462 "path": "ra_syntax_tree.tmGrammar.json" 519 "path": "ra_syntax_tree.tmGrammar.json"
@@ -539,6 +596,10 @@
539 { 596 {
540 "id": "unresolvedReference", 597 "id": "unresolvedReference",
541 "description": "Style for names which can not be resolved due to compilation errors" 598 "description": "Style for names which can not be resolved due to compilation errors"
599 },
600 {
601 "id": "formatSpecifier",
602 "description": "Style for {} placeholders in format strings"
542 } 603 }
543 ], 604 ],
544 "semanticTokenModifiers": [ 605 "semanticTokenModifiers": [
@@ -563,26 +624,41 @@
563 { 624 {
564 "language": "rust", 625 "language": "rust",
565 "scopes": { 626 "scopes": {
627 "macro": [
628 "entity.name.function.macro.rust"
629 ],
566 "attribute": [ 630 "attribute": [
567 "meta.attribute" 631 "meta.attribute.rust"
568 ], 632 ],
569 "builtinType": [ 633 "builtinType": [
570 "support.type.primitive" 634 "support.type.primitive.rust"
571 ], 635 ],
572 "lifetime": [ 636 "lifetime": [
573 "entity.name.lifetime.rust" 637 "storage.modifier.lifetime.rust"
574 ], 638 ],
575 "typeAlias": [ 639 "typeAlias": [
576 "entity.name.typeAlias" 640 "entity.name.type.typeAlias.rust"
577 ], 641 ],
578 "union": [ 642 "union": [
579 "entity.name.union" 643 "entity.name.type.union.rust"
644 ],
645 "struct": [
646 "entity.name.type.struct.rust"
647 ],
648 "keyword": [
649 "keyword.other.rust"
580 ], 650 ],
581 "keyword.unsafe": [ 651 "keyword.controlFlow": [
582 "keyword.other.unsafe" 652 "keyword.control.rust"
583 ], 653 ],
584 "variable.constant": [ 654 "variable.constant": [
585 "entity.name.constant" 655 "variable.other.constant.rust"
656 ],
657 "formatSpecifier": [
658 "punctuation.section.embedded.rust"
659 ],
660 "*.mutable": [
661 "markup.underline"
586 ] 662 ]
587 } 663 }
588 } 664 }