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*$",
328 "name": "rustc-watch",
334 "beginsPattern": "^\\[Running\\b",
335 "endsPattern": "^\\[Finished running\\b"
342 "id": "ralsp.comment",
343 "description": "Color for comments",
347 "highContrast": "#7CA668"
351 "id": "ralsp.string",
352 "description": "Color for strings",
356 "highContrast": "#CE9178"
360 "id": "ralsp.keyword",
361 "description": "Color for keywords",
365 "highContrast": "#569CD6"
369 "id": "ralsp.keyword.control",
370 "description": "Color for control keywords",
374 "highContrast": "#C586C0"
378 "id": "ralsp.keyword.unsafe",
379 "description": "Color for unsafe",
383 "highContrast": "#FF1010"
387 "id": "ralsp.function",
388 "description": "Color for functions",
392 "highContrast": "#DCDCAA"
396 "id": "ralsp.parameter",
397 "description": "Color for parameters",
401 "highContrast": "#9CDCFE"
405 "id": "ralsp.builtin",
406 "description": "Color for builtins",
410 "highContrast": "#DD6718"
415 "description": "Color for text",
419 "highContrast": "#FFFFFF"
423 "id": "ralsp.attribute",
424 "description": "Color for attributes",
428 "highContrast": "#108010"
432 "id": "ralsp.literal",
433 "description": "Color for literals",
437 "highContrast": "#B5CEA8"
441 "id": "ralsp.literal.numeric",
442 "description": "Color for numeric literals",
446 "highContrast": "#B5CEA8"
450 "id": "ralsp.literal.char",
451 "description": "Color for character literals",
455 "highContrast": "#B5CEA8"
459 "id": "ralsp.literal.byte",
460 "description": "Color for byte literals",
464 "highContrast": "#B5CEA8"
469 "description": "Color for macros",
473 "highContrast": "#ED7718"
477 "id": "ralsp.constant",
478 "description": "Color for constants",
482 "highContrast": "#569cd6"
487 "description": "Color for other types (traits, aliases..)",
491 "highContrast": "#4EC9B0"
495 "id": "ralsp.type.builtin",
496 "description": "Color for built-in types (&str, bool, u16, u32)",
500 "highContrast": "#4EC9B0"
504 "id": "ralsp.type.lifetime",
505 "description": "Color for `Self` param type",
509 "highContrast": "#4EC9B0"
513 "id": "ralsp.type.self",
514 "description": "Color for `Self` param type",
518 "highContrast": "#4EC9B0"
522 "id": "ralsp.type.param",
523 "description": "Color for type parameters",
527 "highContrast": "#4EC9B0"
532 "description": "Color for fields",
536 "highContrast": "#4EC9B0"
540 "id": "ralsp.variable",
541 "description": "Color for variables",
545 "highContrast": "#4EC9B0"
549 "id": "ralsp.variable.mut",
550 "description": "Color for mutable variables",
554 "highContrast": "#4EC9B0"
558 "id": "ralsp.module",
559 "description": "Color for modules",
563 "highContrast": "#FFFFFF"
567 "id": "ralsp.inlayHint",
568 "description": "Color for inlay hints",
572 "highContrast": "#BEBEBE"