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": "rollup -c",
20 "package": "vsce package",
21 "watch": "tsc -watch -p ./",
22 "prettier": "prettier --write '**/*.ts'"
25 "jsonc-parser": "^2.1.0",
26 "seedrandom": "^3.0.5",
27 "vscode-languageclient": "^6.0.0-next.9"
30 "@rollup/plugin-commonjs": "^11.0.0",
31 "@rollup/plugin-node-resolve": "^6.0.0",
32 "@rollup/plugin-typescript": "^2.0.1",
33 "@types/node": "^12.12.21",
34 "@types/seedrandom": "^2.4.28",
35 "@types/vscode": "^1.41.0",
36 "prettier": "^1.19.1",
39 "typescript": "^3.7.3",
45 "trailingComma": "all"
49 "onCommand:rust-analyzer.analyzerStatus",
50 "onCommand:rust-analyzer.collectGarbage",
51 "workspaceContains:**/Cargo.toml"
79 "command": "rust-analyzer.syntaxTree",
80 "title": "Show Syntax Tree",
81 "category": "Rust Analyzer"
84 "command": "rust-analyzer.expandMacro",
85 "title": "Expand macro recursively",
86 "category": "Rust Analyzer"
89 "command": "rust-analyzer.matchingBrace",
90 "title": "Find matching brace",
91 "category": "Rust Analyzer"
94 "command": "rust-analyzer.parentModule",
95 "title": "Locate parent module",
96 "category": "Rust Analyzer"
99 "command": "rust-analyzer.joinLines",
100 "title": "Join lines",
101 "category": "Rust Analyzer"
104 "command": "rust-analyzer.run",
106 "category": "Rust Analyzer"
109 "command": "rust-analyzer.analyzerStatus",
111 "category": "Rust Analyzer"
114 "command": "rust-analyzer.collectGarbage",
115 "title": "Run garbage collection",
116 "category": "Rust Analyzer"
119 "command": "rust-analyzer.reload",
120 "title": "Restart server",
121 "category": "Rust Analyzer"
126 "command": "rust-analyzer.parentModule",
128 "when": "editorTextFocus && editorLangId == rust"
131 "command": "rust-analyzer.matchingBrace",
132 "key": "ctrl+shift+m",
133 "when": "editorTextFocus && editorLangId == rust"
136 "command": "rust-analyzer.joinLines",
137 "key": "ctrl+shift+j",
138 "when": "editorTextFocus && editorLangId == rust"
141 "command": "rust-analyzer.run",
143 "when": "editorTextFocus && editorLangId == rust"
148 "title": "Rust Analyzer",
150 "rust-analyzer.highlightingOn": {
153 "description": "Highlight Rust code (overrides built-in syntax highlighting)"
155 "rust-analyzer.scopeMappings": {
160 "$ref": "vscode://schemas/textmate-colors#/items/properties/scope"
163 "$ref": "vscode://schemas/textmate-colors#/items/properties/scope"
166 "$ref": "vscode://schemas/textmate-colors#/items/properties/scope"
169 "$ref": "vscode://schemas/textmate-colors#/items/properties/scope"
172 "$ref": "vscode://schemas/textmate-colors#/items/properties/scope"
175 "$ref": "vscode://schemas/textmate-colors#/items/properties/scope"
178 "$ref": "vscode://schemas/textmate-colors#/items/properties/scope"
181 "$ref": "vscode://schemas/textmate-colors#/items/properties/scope"
184 "$ref": "vscode://schemas/textmate-colors#/items/properties/scope"
187 "$ref": "vscode://schemas/textmate-colors#/items/properties/scope"
190 "$ref": "vscode://schemas/textmate-colors#/items/properties/scope"
193 "$ref": "vscode://schemas/textmate-colors#/items/properties/scope"
196 "$ref": "vscode://schemas/textmate-colors#/items/properties/scope"
199 "$ref": "vscode://schemas/textmate-colors#/items/properties/scope"
202 "$ref": "vscode://schemas/textmate-colors#/items/properties/scope"
205 "$ref": "vscode://schemas/textmate-colors#/items/properties/scope"
208 "$ref": "vscode://schemas/textmate-colors#/items/properties/scope"
211 "$ref": "vscode://schemas/textmate-colors#/items/properties/scope"
214 "additionalProperties": false,
215 "description": "Mapping Rust Analyzer scopes to TextMateRule scopes list."
217 "rust-analyzer.rainbowHighlightingOn": {
220 "description": "When highlighting Rust code, use a unique color per identifier"
222 "rust-analyzer.featureFlags": {
225 "description": "Fine grained feature flags to disable annoying features"
227 "rust-analyzer.enableEnhancedTyping": {
230 "description": "Enables enhanced typing. NOTE: If using a VIM extension, you should set this to false"
232 "rust-analyzer.raLspServerPath": {
236 "default": "ra_lsp_server",
237 "description": "Path to ra_lsp_server executable"
239 "rust-analyzer.excludeGlobs": {
242 "description": "Paths to exclude from analysis"
244 "rust-analyzer.useClientWatching": {
247 "description": "client provided file watching instead of notify watching."
249 "rust-analyzer.cargo-watch.enable": {
252 "description": "Run `cargo check` for diagnostics on save"
254 "rust-analyzer.cargo-watch.arguments": {
256 "description": "`cargo-watch` arguments. (e.g: `--features=\"shumway,pdf\"` will run as `cargo watch -x \"check --features=\"shumway,pdf\"\"` )",
259 "rust-analyzer.cargo-watch.command": {
261 "description": "`cargo-watch` command. (e.g: `clippy` will run as `cargo watch -x clippy` )",
264 "rust-analyzer.cargo-watch.allTargets": {
266 "description": "Check all targets and tests (will be passed as `--all-targets`)",
269 "rust-analyzer.trace.server": {
277 "enumDescriptions": [
283 "description": "Trace requests to the ra_lsp_server"
285 "rust-analyzer.lruCapacity": {
288 "description": "Number of syntax trees rust-analyzer keeps in memory"
290 "rust-analyzer.displayInlayHints": {
293 "description": "Display additional type information in the editor"
295 "rust-analyzer.maxInlayHintLength": {
298 "description": "Maximum length for inlay hints"
300 "rust-analyzer.cargoFeatures.noDefaultFeatures": {
303 "description": "Do not activate the `default` feature"
305 "rust-analyzer.cargoFeatures.allFeatures": {
308 "description": "Activate all available features"
310 "rust-analyzer.cargoFeatures.features": {
313 "description": "List of features to activate"
322 "regexp": "^(warning|warn|error)(?:\\[(.*?)\\])?: (.*)$",
328 "regexp": "^[\\s->=]*(.*?):(\\d*):(\\d*)\\s*$",
336 "name": "rustc-json",
339 "regexp": "^.*\"message\":{\"message\":\"([^\"]*).*?\"file_name\":\"([^\"]+).*?\"line_start\":(\\d+).*?\"line_end\":(\\d+).*?\"column_start\":(\\d+).*?\"column_end\":(\\d+).*}$",
360 "name": "rustc-json",
365 "pattern": "$rustc-json"
368 "name": "rustc-watch",
374 "beginsPattern": "^\\[Running\\b",
375 "endsPattern": "^\\[Finished running\\b"
382 "id": "ralsp.comment",
383 "description": "Color for comments",
387 "highContrast": "#7CA668"
391 "id": "ralsp.string",
392 "description": "Color for strings",
396 "highContrast": "#CE9178"
400 "id": "ralsp.keyword",
401 "description": "Color for keywords",
405 "highContrast": "#569CD6"
409 "id": "ralsp.keyword.control",
410 "description": "Color for control keywords",
414 "highContrast": "#C586C0"
418 "id": "ralsp.keyword.unsafe",
419 "description": "Color for unsafe",
423 "highContrast": "#FF1010"
427 "id": "ralsp.function",
428 "description": "Color for functions",
432 "highContrast": "#DCDCAA"
436 "id": "ralsp.parameter",
437 "description": "Color for parameters",
441 "highContrast": "#9CDCFE"
445 "id": "ralsp.builtin",
446 "description": "Color for builtins",
450 "highContrast": "#DD6718"
455 "description": "Color for text",
459 "highContrast": "#FFFFFF"
463 "id": "ralsp.attribute",
464 "description": "Color for attributes",
468 "highContrast": "#108010"
472 "id": "ralsp.literal",
473 "description": "Color for literals",
477 "highContrast": "#B5CEA8"
481 "id": "ralsp.literal.numeric",
482 "description": "Color for numeric literals",
486 "highContrast": "#B5CEA8"
490 "id": "ralsp.literal.char",
491 "description": "Color for character literals",
495 "highContrast": "#B5CEA8"
499 "id": "ralsp.literal.byte",
500 "description": "Color for byte literals",
504 "highContrast": "#B5CEA8"
509 "description": "Color for macros",
513 "highContrast": "#ED7718"
517 "id": "ralsp.constant",
518 "description": "Color for constants",
522 "highContrast": "#569cd6"
527 "description": "Color for other types (traits, aliases..)",
531 "highContrast": "#4EC9B0"
535 "id": "ralsp.type.builtin",
536 "description": "Color for built-in types (&str, bool, u16, u32)",
540 "highContrast": "#4EC9B0"
544 "id": "ralsp.type.lifetime",
545 "description": "Color for lifetimes parameters",
549 "highContrast": "#4EC9B0"
553 "id": "ralsp.type.self",
554 "description": "Color for `Self` param type",
558 "highContrast": "#4EC9B0"
562 "id": "ralsp.type.param",
563 "description": "Color for type parameters",
567 "highContrast": "#4EC9B0"
572 "description": "Color for fields",
576 "highContrast": "#4EC9B0"
580 "id": "ralsp.variable",
581 "description": "Color for variables",
585 "highContrast": "#4EC9B0"
589 "id": "ralsp.variable.mut",
590 "description": "Color for mutable variables",
594 "highContrast": "#4EC9B0"
598 "id": "ralsp.module",
599 "description": "Color for modules",
603 "highContrast": "#FFFFFF"
607 "id": "ralsp.inlayHint",
608 "description": "Color for inlay hints",
612 "highContrast": "#BEBEBE"