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.json111
1 files changed, 87 insertions, 24 deletions
diff --git a/editors/code/package.json b/editors/code/package.json
index f542a490a..1adf055d0 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 {
@@ -194,11 +200,6 @@
194 "type": "object", 200 "type": "object",
195 "title": "Rust Analyzer", 201 "title": "Rust Analyzer",
196 "properties": { 202 "properties": {
197 "rust-analyzer.diagnostics.enable": {
198 "type": "boolean",
199 "default": true,
200 "markdownDescription": "Whether to show native rust-analyzer diagnostics."
201 },
202 "rust-analyzer.lruCapacity": { 203 "rust-analyzer.lruCapacity": {
203 "type": [ 204 "type": [
204 "null", 205 "null",
@@ -231,6 +232,11 @@
231 "default": true, 232 "default": true,
232 "markdownDescription": "Whether to show `can't find Cargo.toml` error message" 233 "markdownDescription": "Whether to show `can't find Cargo.toml` error message"
233 }, 234 },
235 "rust-analyzer.cargo.autoreload": {
236 "type": "boolean",
237 "default": true,
238 "markdownDescription": "Automatically refresh project info via `cargo metadata` on Cargo.toml changes"
239 },
234 "rust-analyzer.cargo.noDefaultFeatures": { 240 "rust-analyzer.cargo.noDefaultFeatures": {
235 "type": "boolean", 241 "type": "boolean",
236 "default": false, 242 "default": false,
@@ -317,6 +323,14 @@
317 "default": true, 323 "default": true,
318 "markdownDescription": "Check all targets and tests (will be passed as `--all-targets`)" 324 "markdownDescription": "Check all targets and tests (will be passed as `--all-targets`)"
319 }, 325 },
326 "rust-analyzer.checkOnSave.noDefaultFeatures": {
327 "type": [
328 "null",
329 "boolean"
330 ],
331 "default": null,
332 "markdownDescription": "Do not activate the `default` feature"
333 },
320 "rust-analyzer.checkOnSave.allFeatures": { 334 "rust-analyzer.checkOnSave.allFeatures": {
321 "type": [ 335 "type": [
322 "null", 336 "null",
@@ -344,6 +358,35 @@
344 "default": null, 358 "default": null,
345 "description": "Custom cargo runner extension ID." 359 "description": "Custom cargo runner extension ID."
346 }, 360 },
361 "rust-analyzer.runnableEnv": {
362 "anyOf": [
363 {
364 "type": "null"
365 },
366 {
367 "type": "array",
368 "items": {
369 "type": "object",
370 "properties": {
371 "mask": {
372 "type": "string",
373 "description": "Runnable name mask"
374 },
375 "env": {
376 "type": "object",
377 "description": "Variables in form of { \"key\": \"value\"}"
378 }
379 }
380 }
381 },
382 {
383 "type": "object",
384 "description": "Variables in form of { \"key\": \"value\"}"
385 }
386 ],
387 "default": null,
388 "description": "Environment variables passed to the runnable launched using `Test ` or `Debug` lens or `rust-analyzer.run` command."
389 },
347 "rust-analyzer.inlayHints.enable": { 390 "rust-analyzer.inlayHints.enable": {
348 "type": "boolean", 391 "type": "boolean",
349 "default": true, 392 "default": true,
@@ -539,6 +582,16 @@
539 "type": "boolean", 582 "type": "boolean",
540 "default": true 583 "default": true
541 }, 584 },
585 "rust-analyzer.diagnostics.enable": {
586 "type": "boolean",
587 "default": true,
588 "markdownDescription": "Whether to show native rust-analyzer diagnostics."
589 },
590 "rust-analyzer.diagnostics.enableExperimental": {
591 "type": "boolean",
592 "default": true,
593 "markdownDescription": "Whether to show experimental rust-analyzer diagnostics that might have more false positives than usual."
594 },
542 "rust-analyzer.diagnostics.warningsAsInfo": { 595 "rust-analyzer.diagnostics.warningsAsInfo": {
543 "type": "array", 596 "type": "array",
544 "uniqueItems": true, 597 "uniqueItems": true,
@@ -554,7 +607,7 @@
554 "items": { 607 "items": {
555 "type": "string" 608 "type": "string"
556 }, 609 },
557 "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 te problems panel.", 610 "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.",
558 "default": [] 611 "default": []
559 } 612 }
560 } 613 }
@@ -615,24 +668,30 @@
615 "problemMatchers": [ 668 "problemMatchers": [
616 { 669 {
617 "name": "rustc", 670 "name": "rustc",
671 "owner": "rustc",
672 "source": "rustc",
618 "fileLocation": [ 673 "fileLocation": [
619 "relative", 674 "autoDetect",
620 "${workspaceRoot}" 675 "${workspaceRoot}"
621 ], 676 ],
622 "pattern": "$rustc" 677 "pattern": "$rustc"
623 }, 678 },
624 { 679 {
625 "name": "rustc-json", 680 "name": "rustc-json",
681 "owner": "rustc",
682 "source": "rustc",
626 "fileLocation": [ 683 "fileLocation": [
627 "relative", 684 "autoDetect",
628 "${workspaceRoot}" 685 "${workspaceRoot}"
629 ], 686 ],
630 "pattern": "$rustc-json" 687 "pattern": "$rustc-json"
631 }, 688 },
632 { 689 {
633 "name": "rustc-watch", 690 "name": "rustc-watch",
691 "owner": "rustc",
692 "source": "rustc",
634 "fileLocation": [ 693 "fileLocation": [
635 "relative", 694 "autoDetect",
636 "${workspaceRoot}" 695 "${workspaceRoot}"
637 ], 696 ],
638 "background": { 697 "background": {
@@ -815,7 +874,11 @@
815 "when": "inRustProject" 874 "when": "inRustProject"
816 }, 875 },
817 { 876 {
818 "command": "rust-analyzer.collectGarbage", 877 "command": "rust-analyzer.memoryUsage",
878 "when": "inRustProject"
879 },
880 {
881 "command": "rust-analyzer.reloadWorkspace",
819 "when": "inRustProject" 882 "when": "inRustProject"
820 }, 883 },
821 { 884 {