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.json151
1 files changed, 133 insertions, 18 deletions
diff --git a/editors/code/package.json b/editors/code/package.json
index 78f647baa..30ab7ba4a 100644
--- a/editors/code/package.json
+++ b/editors/code/package.json
@@ -21,7 +21,7 @@
21 "Programming Languages" 21 "Programming Languages"
22 ], 22 ],
23 "engines": { 23 "engines": {
24 "vscode": "^1.44.0" 24 "vscode": "^1.44.1"
25 }, 25 },
26 "enableProposedApi": true, 26 "enableProposedApi": true,
27 "scripts": { 27 "scripts": {
@@ -29,27 +29,34 @@
29 "package": "vsce package -o rust-analyzer.vsix", 29 "package": "vsce package -o rust-analyzer.vsix",
30 "build": "tsc", 30 "build": "tsc",
31 "watch": "tsc --watch", 31 "watch": "tsc --watch",
32 "lint": "tsfmt --verify && eslint -c .eslintrc.js --ext ts ./src", 32 "lint": "tsfmt --verify && eslint -c .eslintrc.js --ext ts ./src ./tests",
33 "fix": " tsfmt -r && eslint -c .eslintrc.js --ext ts ./src --fix" 33 "fix": " tsfmt -r && eslint -c .eslintrc.js --ext ts ./src ./tests --fix",
34 "pretest": "npm run build",
35 "test": "node ./out/tests/runTests.js"
34 }, 36 },
35 "dependencies": { 37 "dependencies": {
36 "node-fetch": "^2.6.0", 38 "node-fetch": "^2.6.0",
37 "vscode-languageclient": "7.0.0-next.1" 39 "vscode-languageclient": "7.0.0-next.1"
38 }, 40 },
39 "devDependencies": { 41 "devDependencies": {
40 "@rollup/plugin-commonjs": "^11.1.0", 42 "@rollup/plugin-commonjs": "^12.0.0",
41 "@rollup/plugin-node-resolve": "^7.1.3", 43 "@rollup/plugin-node-resolve": "^8.0.0",
42 "@types/node": "^12.12.39", 44 "@types/glob": "^7.1.1",
45 "@types/mocha": "^7.0.2",
46 "@types/node": "^14.0.5",
43 "@types/node-fetch": "^2.5.7", 47 "@types/node-fetch": "^2.5.7",
44 "@types/vscode": "^1.44.0", 48 "@types/vscode": "^1.44.1",
45 "@typescript-eslint/eslint-plugin": "^2.33.0", 49 "@typescript-eslint/eslint-plugin": "^3.0.0",
46 "@typescript-eslint/parser": "^2.33.0", 50 "@typescript-eslint/parser": "^3.0.0",
47 "eslint": "^6.8.0", 51 "eslint": "^7.0.0",
48 "rollup": "^2.10.0", 52 "glob": "^7.1.6",
49 "tslib": "^1.12.0", 53 "mocha": "^7.1.2",
50 "typescript": "^3.9.2", 54 "rollup": "^2.10.7",
55 "tslib": "^2.0.0",
56 "typescript": "^3.9.3",
51 "typescript-formatter": "^7.2.2", 57 "typescript-formatter": "^7.2.2",
52 "vsce": "^1.75.0" 58 "vsce": "^1.75.0",
59 "vscode-test": "^1.3.0"
53 }, 60 },
54 "activationEvents": [ 61 "activationEvents": [
55 "onLanguage:rust", 62 "onLanguage:rust",
@@ -57,7 +64,7 @@
57 "onCommand:rust-analyzer.collectGarbage", 64 "onCommand:rust-analyzer.collectGarbage",
58 "workspaceContains:**/Cargo.toml" 65 "workspaceContains:**/Cargo.toml"
59 ], 66 ],
60 "main": "./out/main", 67 "main": "./out/src/main",
61 "contributes": { 68 "contributes": {
62 "taskDefinitions": [ 69 "taskDefinitions": [
63 { 70 {
@@ -159,6 +166,11 @@
159 "command": "rust-analyzer.serverVersion", 166 "command": "rust-analyzer.serverVersion",
160 "title": "Show RA Version", 167 "title": "Show RA Version",
161 "category": "Rust Analyzer" 168 "category": "Rust Analyzer"
169 },
170 {
171 "command": "rust-analyzer.toggleInlayHints",
172 "title": "Toggle inlay hints",
173 "category": "Rust Analyzer"
162 } 174 }
163 ], 175 ],
164 "keybindings": [ 176 "keybindings": [
@@ -226,7 +238,7 @@
226 }, 238 },
227 "rust-analyzer.cargo.allFeatures": { 239 "rust-analyzer.cargo.allFeatures": {
228 "type": "boolean", 240 "type": "boolean",
229 "default": true, 241 "default": false,
230 "description": "Activate all available features" 242 "description": "Activate all available features"
231 }, 243 },
232 "rust-analyzer.cargo.features": { 244 "rust-analyzer.cargo.features": {
@@ -307,7 +319,7 @@
307 }, 319 },
308 "rust-analyzer.checkOnSave.allFeatures": { 320 "rust-analyzer.checkOnSave.allFeatures": {
309 "type": "boolean", 321 "type": "boolean",
310 "default": true, 322 "default": false,
311 "markdownDescription": "Check with all features (will be passed as `--all-features`)" 323 "markdownDescription": "Check with all features (will be passed as `--all-features`)"
312 }, 324 },
313 "rust-analyzer.inlayHints.enable": { 325 "rust-analyzer.inlayHints.enable": {
@@ -463,6 +475,25 @@
463 "markdownDescription": "Whether to show Implementations lens. Only applies when `#rust-analyzer.lens.enable#` is set.", 475 "markdownDescription": "Whether to show Implementations lens. Only applies when `#rust-analyzer.lens.enable#` is set.",
464 "type": "boolean", 476 "type": "boolean",
465 "default": true 477 "default": true
478 },
479 "rust-analyzer.linkedProjects": {
480 "markdownDescription": [
481 "Disable project auto-discovery in favor of explicitly specified set of projects.",
482 "Elements must be paths pointing to Cargo.toml, rust-project.json, or JSON objects in rust-project.json format"
483 ],
484 "type": "array",
485 "items": {
486 "type": [
487 "string",
488 "object"
489 ]
490 },
491 "default": null
492 },
493 "rust-analyzer.withSysroot": {
494 "markdownDescription": "Internal config for debugging, disables loading of sysroot crates",
495 "type": "boolean",
496 "default": true
466 } 497 }
467 } 498 }
468 }, 499 },
@@ -575,6 +606,11 @@
575 "description": "Style for attributes" 606 "description": "Style for attributes"
576 }, 607 },
577 { 608 {
609 "id": "boolean",
610 "description": "Style for boolean literals",
611 "superType": "keyword"
612 },
613 {
578 "id": "builtinType", 614 "id": "builtinType",
579 "description": "Style for builtin types", 615 "description": "Style for builtin types",
580 "superType": "type" 616 "superType": "type"
@@ -584,6 +620,11 @@
584 "description": "Style for lifetimes" 620 "description": "Style for lifetimes"
585 }, 621 },
586 { 622 {
623 "id": "selfKeyword",
624 "description": "Style for the self keyword",
625 "superType": "keyword"
626 },
627 {
587 "id": "typeAlias", 628 "id": "typeAlias",
588 "description": "Style for type aliases", 629 "description": "Style for type aliases",
589 "superType": "type" 630 "superType": "type"
@@ -604,6 +645,10 @@
604 ], 645 ],
605 "semanticTokenModifiers": [ 646 "semanticTokenModifiers": [
606 { 647 {
648 "id": "attribute",
649 "description": "Style for elements within attributes"
650 },
651 {
607 "id": "constant", 652 "id": "constant",
608 "description": "Style for compile-time constants" 653 "description": "Style for compile-time constants"
609 }, 654 },
@@ -630,6 +675,12 @@
630 "attribute": [ 675 "attribute": [
631 "meta.attribute.rust" 676 "meta.attribute.rust"
632 ], 677 ],
678 "function.attribute": [
679 "entity.name.function.attribute.rust"
680 ],
681 "boolean": [
682 "constant.language.boolean.rust"
683 ],
633 "builtinType": [ 684 "builtinType": [
634 "support.type.primitive.rust" 685 "support.type.primitive.rust"
635 ], 686 ],
@@ -662,6 +713,70 @@
662 ] 713 ]
663 } 714 }
664 } 715 }
665 ] 716 ],
717 "menus": {
718 "commandPalette": [
719 {
720 "command": "rust-analyzer.syntaxTree",
721 "when": "inRustProject"
722 },
723 {
724 "command": "rust-analyzer.expandMacro",
725 "when": "inRustProject"
726 },
727 {
728 "command": "rust-analyzer.matchingBrace",
729 "when": "inRustProject"
730 },
731 {
732 "command": "rust-analyzer.parentModule",
733 "when": "inRustProject"
734 },
735 {
736 "command": "rust-analyzer.joinLines",
737 "when": "inRustProject"
738 },
739 {
740 "command": "rust-analyzer.run",
741 "when": "inRustProject"
742 },
743 {
744 "command": "rust-analyzer.debug",
745 "when": "inRustProject"
746 },
747 {
748 "command": "rust-analyzer.newDebugConfig",
749 "when": "inRustProject"
750 },
751 {
752 "command": "rust-analyzer.analyzerStatus",
753 "when": "inRustProject"
754 },
755 {
756 "command": "rust-analyzer.collectGarbage",
757 "when": "inRustProject"
758 },
759 {
760 "command": "rust-analyzer.reload",
761 "when": "inRustProject"
762 },
763 {
764 "command": "rust-analyzer.onEnter",
765 "when": "inRustProject"
766 },
767 {
768 "command": "rust-analyzer.ssr",
769 "when": "inRustProject"
770 },
771 {
772 "command": "rust-analyzer.serverVersion",
773 "when": "inRustProject"
774 },
775 {
776 "command": "rust-analyzer.toggleInlayHints",
777 "when": "inRustProject"
778 }
779 ]
780 }
666 } 781 }
667} 782}