3 "displayName": "ra-lsp",
4 "description": "An alternative rust language server to the RLS",
8 "publisher": "matklad",
10 "url": "https://github.com/matklad/rust-analyzer/"
19 "vscode:prepublish": "npm run compile",
20 "package": "vsce package",
21 "compile": "rollup -c && shx cp src/utils/terminateProcess.sh bundle/terminateProcess.sh",
22 "watch": "tsc -watch -p ./",
23 "fix": "prettier **/*.{json,ts} --write && tslint --project . --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"
32 "trailingComma": "all"
36 "seedrandom": "^3.0.5",
37 "vscode-languageclient": "^6.0.0-next.8"
40 "@types/glob": "^7.1.1",
41 "@types/mocha": "^5.2.7",
42 "@types/node": "^10.17.6",
43 "@types/seedrandom": "^2.4.28",
44 "@types/vscode": "^1.40.0",
47 "prettier": "^1.19.1",
49 "rollup-plugin-commonjs": "^10.1.0",
50 "rollup-plugin-node-resolve": "^5.2.0",
51 "rollup-plugin-typescript": "^1.0.1",
52 "rollup-plugin-sourcemaps": "^0.4.2",
55 "tslint-config-prettier": "^1.18.0",
56 "typescript": "^3.7.3",
58 "vscode-test": "^1.2.3"
62 "onCommand:rust-analyzer.analyzerStatus",
63 "onCommand:rust-analyzer.collectGarbage",
64 "workspaceContains:**/Cargo.toml"
66 "main": "./bundle/extension",
92 "command": "rust-analyzer.syntaxTree",
93 "title": "Show Syntax Tree",
94 "category": "Rust Analyzer"
97 "command": "rust-analyzer.expandMacro",
98 "title": "Expand macro recursively",
99 "category": "Rust Analyzer"
102 "command": "rust-analyzer.matchingBrace",
103 "title": "Find matching brace",
104 "category": "Rust Analyzer"
107 "command": "rust-analyzer.parentModule",
108 "title": "Locate parent module",
109 "category": "Rust Analyzer"
112 "command": "rust-analyzer.joinLines",
113 "title": "Join lines",
114 "category": "Rust Analyzer"
117 "command": "rust-analyzer.run",
119 "category": "Rust Analyzer"
122 "command": "rust-analyzer.analyzerStatus",
124 "category": "Rust Analyzer"
127 "command": "rust-analyzer.collectGarbage",
128 "title": "Run garbage collection",
129 "category": "Rust Analyzer"
132 "command": "rust-analyzer.reload",
133 "title": "Restart server",
134 "category": "Rust Analyzer"
137 "command": "rust-analyzer.startCargoWatch",
138 "title": "Start Cargo Watch",
139 "category": "Rust Analyzer"
142 "command": "rust-analyzer.stopCargoWatch",
143 "title": "Stop Cargo Watch",
144 "category": "Rust Analyzer"
149 "command": "rust-analyzer.parentModule",
151 "when": "editorTextFocus && editorLangId == rust"
154 "command": "rust-analyzer.matchingBrace",
155 "key": "ctrl+shift+m",
156 "when": "editorTextFocus && editorLangId == rust"
159 "command": "rust-analyzer.joinLines",
160 "key": "ctrl+shift+j",
161 "when": "editorTextFocus && editorLangId == rust"
164 "command": "rust-analyzer.run",
166 "when": "editorTextFocus && editorLangId == rust"
171 "title": "Rust Analyzer",
173 "rust-analyzer.highlightingOn": {
176 "description": "Highlight Rust code (overrides built-in syntax highlighting)"
178 "rust-analyzer.rainbowHighlightingOn": {
181 "description": "When highlighting Rust code, use a unique color per identifier"
183 "rust-analyzer.featureFlags": {
186 "description": "Fine grained feature flags to disable annoying features"
188 "rust-analyzer.enableEnhancedTyping": {
191 "description": "Enables enhanced typing. NOTE: If using a VIM extension, you should set this to false"
193 "rust-analyzer.raLspServerPath": {
197 "default": "ra_lsp_server",
198 "description": "Path to ra_lsp_server executable"
200 "rust-analyzer.enableCargoWatchOnStartup": {
208 "enumDescriptions": [
209 "Asks each time whether to run `cargo watch`",
210 "`cargo watch` is always started",
211 "Don't start `cargo watch`"
213 "description": "Whether to run `cargo watch` on startup"
215 "rust-analyzer.excludeGlobs": {
218 "description": "Paths to exclude from analysis"
220 "rust-analyzer.useClientWatching": {
223 "description": "client provided file watching instead of notify watching."
225 "rust-analyzer.cargo-watch.arguments": {
227 "description": "`cargo-watch` arguments. (e.g: `--features=\"shumway,pdf\"` will run as `cargo watch -x \"check --features=\"shumway,pdf\"\"` )",
230 "rust-analyzer.cargo-watch.command": {
232 "description": "`cargo-watch` command. (e.g: `clippy` will run as `cargo watch -x clippy` )",
235 "rust-analyzer.cargo-watch.ignore": {
237 "description": "A list of patterns for cargo-watch to ignore (will be passed as `--ignore`)",
240 "rust-analyzer.trace.server": {
248 "enumDescriptions": [
254 "description": "Trace requests to the ra_lsp_server"
256 "rust-analyzer.trace.cargo-watch": {
265 "description": "Trace output of cargo-watch"
267 "rust-analyzer.lruCapacity": {
270 "description": "Number of syntax trees rust-analyzer keeps in memory"
272 "rust-analyzer.displayInlayHints": {
275 "description": "Display additional type information in the editor"
277 "rust-analyzer.maxInlayHintLength": {
280 "description": "Maximum length for inlay hints"
282 "rust-analyzer.cargoFeatures.noDefaultFeatures": {
285 "description": "Do not activate the `default` feature"
287 "rust-analyzer.cargoFeatures.allFeatures": {
290 "description": "Activate all available features"
292 "rust-analyzer.cargoFeatures.features": {
295 "description": "List of features to activate"
304 "regexp": "^(warning|warn|error)(?:\\[(.*?)\\])?: (.*)$",
310 "regexp": "^[\\s->=]*(.*?):(\\d*):(\\d*)\\s*$",
318 "name": "rustc-json",
321 "regexp": "^.*\"message\":{\"message\":\"([^\"]*).*?\"file_name\":\"([^\"]+).*?\"line_start\":(\\d+).*?\"line_end\":(\\d+).*?\"column_start\":(\\d+).*?\"column_end\":(\\d+).*}$",
342 "name": "rustc-json",
347 "pattern": "$rustc-json"
350 "name": "rustc-watch",
356 "beginsPattern": "^\\[Running\\b",
357 "endsPattern": "^\\[Finished running\\b"
364 "id": "ralsp.comment",
365 "description": "Color for comments",
369 "highContrast": "#7CA668"
373 "id": "ralsp.string",
374 "description": "Color for strings",
378 "highContrast": "#CE9178"
382 "id": "ralsp.keyword",
383 "description": "Color for keywords",
387 "highContrast": "#569CD6"
391 "id": "ralsp.keyword.control",
392 "description": "Color for control keywords",
396 "highContrast": "#C586C0"
400 "id": "ralsp.keyword.unsafe",
401 "description": "Color for unsafe",
405 "highContrast": "#FF1010"
409 "id": "ralsp.function",
410 "description": "Color for functions",
414 "highContrast": "#DCDCAA"
418 "id": "ralsp.parameter",
419 "description": "Color for parameters",
423 "highContrast": "#9CDCFE"
427 "id": "ralsp.builtin",
428 "description": "Color for builtins",
432 "highContrast": "#DD6718"
437 "description": "Color for text",
441 "highContrast": "#FFFFFF"
445 "id": "ralsp.attribute",
446 "description": "Color for attributes",
450 "highContrast": "#108010"
454 "id": "ralsp.literal",
455 "description": "Color for literals",
459 "highContrast": "#B5CEA8"
463 "id": "ralsp.literal.numeric",
464 "description": "Color for numeric literals",
468 "highContrast": "#B5CEA8"
472 "id": "ralsp.literal.char",
473 "description": "Color for character literals",
477 "highContrast": "#B5CEA8"
481 "id": "ralsp.literal.byte",
482 "description": "Color for byte literals",
486 "highContrast": "#B5CEA8"
491 "description": "Color for macros",
495 "highContrast": "#ED7718"
499 "id": "ralsp.constant",
500 "description": "Color for constants",
504 "highContrast": "#569cd6"
509 "description": "Color for other types (traits, aliases..)",
513 "highContrast": "#4EC9B0"
517 "id": "ralsp.type.builtin",
518 "description": "Color for built-in types (&str, bool, u16, u32)",
522 "highContrast": "#4EC9B0"
526 "id": "ralsp.type.lifetime",
527 "description": "Color for `Self` param type",
531 "highContrast": "#4EC9B0"
535 "id": "ralsp.type.self",
536 "description": "Color for `Self` param type",
540 "highContrast": "#4EC9B0"
544 "id": "ralsp.type.param",
545 "description": "Color for type parameters",
549 "highContrast": "#4EC9B0"
554 "description": "Color for fields",
558 "highContrast": "#4EC9B0"
562 "id": "ralsp.variable",
563 "description": "Color for variables",
567 "highContrast": "#4EC9B0"
571 "id": "ralsp.variable.mut",
572 "description": "Color for mutable variables",
576 "highContrast": "#4EC9B0"
580 "id": "ralsp.module",
581 "description": "Color for modules",
585 "highContrast": "#FFFFFF"
589 "id": "ralsp.inlayHint",
590 "description": "Color for inlay hints",
594 "highContrast": "#BEBEBE"