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.json171
1 files changed, 148 insertions, 23 deletions
diff --git a/editors/code/package.json b/editors/code/package.json
index 75dbafc05..aac4ba94f 100644
--- a/editors/code/package.json
+++ b/editors/code/package.json
@@ -39,29 +39,30 @@
39 "vscode-languageclient": "7.0.0-next.1" 39 "vscode-languageclient": "7.0.0-next.1"
40 }, 40 },
41 "devDependencies": { 41 "devDependencies": {
42 "@rollup/plugin-commonjs": "^12.0.0", 42 "@rollup/plugin-commonjs": "^13.0.0",
43 "@rollup/plugin-node-resolve": "^8.0.0", 43 "@rollup/plugin-node-resolve": "^8.1.0",
44 "@types/glob": "^7.1.1", 44 "@types/glob": "^7.1.2",
45 "@types/mocha": "^7.0.2", 45 "@types/mocha": "^7.0.2",
46 "@types/node": "^14.0.5", 46 "@types/node": "~12.7.0",
47 "@types/node-fetch": "^2.5.7", 47 "@types/node-fetch": "^2.5.7",
48 "@types/vscode": "^1.44.1", 48 "@types/vscode": "^1.44.1",
49 "@typescript-eslint/eslint-plugin": "^3.0.0", 49 "@typescript-eslint/eslint-plugin": "^3.4.0",
50 "@typescript-eslint/parser": "^3.0.0", 50 "@typescript-eslint/parser": "^3.4.0",
51 "eslint": "^7.0.0", 51 "eslint": "^7.3.1",
52 "glob": "^7.1.6", 52 "glob": "^7.1.6",
53 "mocha": "^7.1.2", 53 "mocha": "^8.0.1",
54 "rollup": "^2.10.7", 54 "rollup": "^2.18.1",
55 "tslib": "^2.0.0", 55 "tslib": "^2.0.0",
56 "typescript": "^3.9.3", 56 "typescript": "^3.9.5",
57 "typescript-formatter": "^7.2.2", 57 "typescript-formatter": "^7.2.2",
58 "vsce": "^1.75.0", 58 "vsce": "^1.75.0",
59 "vscode-test": "^1.3.0" 59 "vscode-test": "^1.4.0"
60 }, 60 },
61 "activationEvents": [ 61 "activationEvents": [
62 "onLanguage:rust", 62 "onLanguage:rust",
63 "onCommand:rust-analyzer.analyzerStatus", 63 "onCommand:rust-analyzer.analyzerStatus",
64 "onCommand:rust-analyzer.collectGarbage", 64 "onCommand:rust-analyzer.memoryUsage",
65 "onCommand:rust-analyzer.reloadWorkspace",
65 "workspaceContains:**/Cargo.toml" 66 "workspaceContains:**/Cargo.toml"
66 ], 67 ],
67 "main": "./out/src/main", 68 "main": "./out/src/main",
@@ -143,8 +144,13 @@
143 "category": "Rust Analyzer" 144 "category": "Rust Analyzer"
144 }, 145 },
145 { 146 {
146 "command": "rust-analyzer.collectGarbage", 147 "command": "rust-analyzer.memoryUsage",
147 "title": "Run garbage collection", 148 "title": "Memory Usage (Clears Database)",
149 "category": "Rust Analyzer"
150 },
151 {
152 "command": "rust-analyzer.reloadWorkspace",
153 "title": "Reload workspace",
148 "category": "Rust Analyzer" 154 "category": "Rust Analyzer"
149 }, 155 },
150 { 156 {
@@ -231,6 +237,11 @@
231 "default": true, 237 "default": true,
232 "markdownDescription": "Whether to show `can't find Cargo.toml` error message" 238 "markdownDescription": "Whether to show `can't find Cargo.toml` error message"
233 }, 239 },
240 "rust-analyzer.cargo.autoreload": {
241 "type": "boolean",
242 "default": true,
243 "markdownDescription": "Automatically refresh project info via `cargo metadata` on Cargo.toml changes"
244 },
234 "rust-analyzer.cargo.noDefaultFeatures": { 245 "rust-analyzer.cargo.noDefaultFeatures": {
235 "type": "boolean", 246 "type": "boolean",
236 "default": false, 247 "default": false,
@@ -238,7 +249,7 @@
238 }, 249 },
239 "rust-analyzer.cargo.allFeatures": { 250 "rust-analyzer.cargo.allFeatures": {
240 "type": "boolean", 251 "type": "boolean",
241 "default": true, 252 "default": false,
242 "description": "Activate all available features" 253 "description": "Activate all available features"
243 }, 254 },
244 "rust-analyzer.cargo.features": { 255 "rust-analyzer.cargo.features": {
@@ -318,9 +329,60 @@
318 "markdownDescription": "Check all targets and tests (will be passed as `--all-targets`)" 329 "markdownDescription": "Check all targets and tests (will be passed as `--all-targets`)"
319 }, 330 },
320 "rust-analyzer.checkOnSave.allFeatures": { 331 "rust-analyzer.checkOnSave.allFeatures": {
321 "type": "boolean", 332 "type": [
322 "default": true, 333 "null",
323 "markdownDescription": "Check with all features (will be passed as `--all-features`)" 334 "boolean"
335 ],
336 "default": null,
337 "markdownDescription": "Check with all features (will be passed as `--all-features`). Defaults to `rust-analyzer.cargo.allFeatures`."
338 },
339 "rust-analyzer.checkOnSave.features": {
340 "type": [
341 "null",
342 "array"
343 ],
344 "items": {
345 "type": "string"
346 },
347 "default": null,
348 "description": "List of features to activate. Defaults to `rust-analyzer.cargo.features`."
349 },
350 "rust-analyzer.cargoRunner": {
351 "type": [
352 "null",
353 "string"
354 ],
355 "default": null,
356 "description": "Custom cargo runner extension ID."
357 },
358 "rust-analyzer.runnableEnv": {
359 "anyOf": [
360 {
361 "type": "null"
362 },
363 {
364 "type": "array",
365 "items": {
366 "type": "object",
367 "properties": {
368 "mask": {
369 "type": "string",
370 "description": "Runnable name mask"
371 },
372 "env": {
373 "type": "object",
374 "description": "Variables in form of { \"key\": \"value\"}"
375 }
376 }
377 }
378 },
379 {
380 "type": "object",
381 "description": "Variables in form of { \"key\": \"value\"}"
382 }
383 ],
384 "default": null,
385 "description": "Environment variables passed to the runnable launched using `Test ` or `Debug` lens or `rust-analyzer.run` command."
324 }, 386 },
325 "rust-analyzer.inlayHints.enable": { 387 "rust-analyzer.inlayHints.enable": {
326 "type": "boolean", 388 "type": "boolean",
@@ -412,7 +474,7 @@
412 "Full log" 474 "Full log"
413 ], 475 ],
414 "default": "off", 476 "default": "off",
415 "description": "Trace requests to the rust-analyzer" 477 "description": "Trace requests to the rust-analyzer (this is usually overly verbose and not recommended for regular users)"
416 }, 478 },
417 "rust-analyzer.trace.extension": { 479 "rust-analyzer.trace.extension": {
418 "description": "Enable logging of VS Code extensions itself", 480 "description": "Enable logging of VS Code extensions itself",
@@ -462,19 +524,78 @@
462 "default": true 524 "default": true
463 }, 525 },
464 "rust-analyzer.lens.run": { 526 "rust-analyzer.lens.run": {
465 "markdownDescription": "Whether to show Run lens. Only applies when `#rust-analyzer.lens.enable#` is set.", 527 "markdownDescription": "Whether to show `Run` lens. Only applies when `#rust-analyzer.lens.enable#` is set.",
466 "type": "boolean", 528 "type": "boolean",
467 "default": true 529 "default": true
468 }, 530 },
469 "rust-analyzer.lens.debug": { 531 "rust-analyzer.lens.debug": {
470 "markdownDescription": "Whether to show Debug lens. Only applies when `#rust-analyzer.lens.enable#` is set.", 532 "markdownDescription": "Whether to show `Debug` lens. Only applies when `#rust-analyzer.lens.enable#` is set.",
471 "type": "boolean", 533 "type": "boolean",
472 "default": true 534 "default": true
473 }, 535 },
474 "rust-analyzer.lens.implementations": { 536 "rust-analyzer.lens.implementations": {
475 "markdownDescription": "Whether to show Implementations lens. Only applies when `#rust-analyzer.lens.enable#` is set.", 537 "markdownDescription": "Whether to show `Implementations` lens. Only applies when `#rust-analyzer.lens.enable#` is set.",
538 "type": "boolean",
539 "default": true
540 },
541 "rust-analyzer.hoverActions.enable": {
542 "description": "Whether to show HoverActions in Rust files.",
543 "type": "boolean",
544 "default": true
545 },
546 "rust-analyzer.hoverActions.implementations": {
547 "markdownDescription": "Whether to show `Implementations` action. Only applies when `#rust-analyzer.hoverActions.enable#` is set.",
548 "type": "boolean",
549 "default": true
550 },
551 "rust-analyzer.hoverActions.run": {
552 "markdownDescription": "Whether to show `Run` action. Only applies when `#rust-analyzer.hoverActions.enable#` is set.",
553 "type": "boolean",
554 "default": true
555 },
556 "rust-analyzer.hoverActions.debug": {
557 "markdownDescription": "Whether to show `Debug` action. Only applies when `#rust-analyzer.hoverActions.enable#` is set.",
476 "type": "boolean", 558 "type": "boolean",
477 "default": true 559 "default": true
560 },
561 "rust-analyzer.hoverActions.gotoTypeDef": {
562 "markdownDescription": "Whether to show `Go to Type Definition` action. Only applies when `#rust-analyzer.hoverActions.enable#` is set.",
563 "type": "boolean",
564 "default": true
565 },
566 "rust-analyzer.linkedProjects": {
567 "markdownDescription": "Disable project auto-discovery in favor of explicitly specified set of projects. \nElements must be paths pointing to Cargo.toml, rust-project.json, or JSON objects in rust-project.json format",
568 "type": "array",
569 "items": {
570 "type": [
571 "string",
572 "object"
573 ]
574 },
575 "default": null
576 },
577 "rust-analyzer.withSysroot": {
578 "markdownDescription": "Internal config for debugging, disables loading of sysroot crates",
579 "type": "boolean",
580 "default": true
581 },
582 "rust-analyzer.diagnostics.warningsAsInfo": {
583 "type": "array",
584 "uniqueItems": true,
585 "items": {
586 "type": "string"
587 },
588 "description": "List of warnings that should be displayed with info severity.\nThe warnings will be indicated by a blue squiggly underline in code and a blue icon in the problems panel.",
589 "default": []
590 },
591 "rust-analyzer.diagnostics.warningsAsHint": {
592 "type": "array",
593 "uniqueItems": true,
594 "items": {
595 "type": "string"
596 },
597 "description": "List of warnings warnings that should be displayed with hint severity.\nThe warnings will be indicated by faded text or three dots in code and will not show up in the problems panel.",
598 "default": []
478 } 599 }
479 } 600 }
480 }, 601 },
@@ -734,7 +855,11 @@
734 "when": "inRustProject" 855 "when": "inRustProject"
735 }, 856 },
736 { 857 {
737 "command": "rust-analyzer.collectGarbage", 858 "command": "rust-analyzer.memoryUsage",
859 "when": "inRustProject"
860 },
861 {
862 "command": "rust-analyzer.reloadWorkspace",
738 "when": "inRustProject" 863 "when": "inRustProject"
739 }, 864 },
740 { 865 {