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"
289 "regexp": "^(warning|warn|error)(?:\\[(.*?)\\])?: (.*)$",
295 "regexp": "^[\\s->=]*(.*?):(\\d*):(\\d*)\\s*$",
313 "name": "rustc-watch",
319 "beginsPattern": "^\\[Running\\b",
320 "endsPattern": "^\\[Finished running\\b"
327 "id": "ralsp.comment",
328 "description": "Color for comments",
332 "highContrast": "#7CA668"
336 "id": "ralsp.string",
337 "description": "Color for strings",
341 "highContrast": "#CE9178"
345 "id": "ralsp.keyword",
346 "description": "Color for keywords",
350 "highContrast": "#569CD6"
354 "id": "ralsp.keyword.control",
355 "description": "Color for control keywords",
359 "highContrast": "#C586C0"
363 "id": "ralsp.keyword.unsafe",
364 "description": "Color for unsafe",
368 "highContrast": "#FF1010"
372 "id": "ralsp.function",
373 "description": "Color for functions",
377 "highContrast": "#DCDCAA"
381 "id": "ralsp.parameter",
382 "description": "Color for parameters",
386 "highContrast": "#9CDCFE"
390 "id": "ralsp.builtin",
391 "description": "Color for builtins",
395 "highContrast": "#DD6718"
400 "description": "Color for text",
404 "highContrast": "#FFFFFF"
408 "id": "ralsp.attribute",
409 "description": "Color for attributes",
413 "highContrast": "#108010"
417 "id": "ralsp.literal",
418 "description": "Color for literals",
422 "highContrast": "#B5CEA8"
426 "id": "ralsp.literal.numeric",
427 "description": "Color for numeric literals",
431 "highContrast": "#B5CEA8"
435 "id": "ralsp.literal.char",
436 "description": "Color for character literals",
440 "highContrast": "#B5CEA8"
444 "id": "ralsp.literal.byte",
445 "description": "Color for byte literals",
449 "highContrast": "#B5CEA8"
454 "description": "Color for macros",
458 "highContrast": "#ED7718"
462 "id": "ralsp.constant",
463 "description": "Color for constants",
467 "highContrast": "#569cd6"
472 "description": "Color for other types (traits, aliases..)",
476 "highContrast": "#4EC9B0"
480 "id": "ralsp.type.builtin",
481 "description": "Color for built-in types (&str, bool, u16, u32)",
485 "highContrast": "#4EC9B0"
489 "id": "ralsp.type.self",
490 "description": "Color for `Self` param type",
494 "highContrast": "#4EC9B0"
498 "id": "ralsp.type.param",
499 "description": "Color for type parameters",
503 "highContrast": "#4EC9B0"
508 "description": "Color for fields",
512 "highContrast": "#4EC9B0"
516 "id": "ralsp.variable",
517 "description": "Color for variables",
521 "highContrast": "#4EC9B0"
525 "id": "ralsp.variable.mut",
526 "description": "Color for mutable variables",
530 "highContrast": "#4EC9B0"
534 "id": "ralsp.module",
535 "description": "Color for modules",
539 "highContrast": "#FFFFFF"
543 "id": "ralsp.inlayHint",
544 "description": "Color for inlay hints",
548 "highContrast": "#BEBEBE"