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"
34 "seedrandom": "^3.0.1",
35 "vscode-languageclient": "^5.3.0-next.4"
38 "@types/glob": "^7.1.1",
39 "@types/mocha": "^5.2.7",
40 "@types/node": "^10.14.13",
41 "@types/seedrandom": "^2.4.28",
42 "@types/vscode": "^1.37.0",
45 "prettier": "^1.18.2",
47 "rollup-plugin-commonjs": "^10.1.0",
48 "rollup-plugin-node-resolve": "^5.2.0",
49 "rollup-plugin-typescript": "^1.0.1",
52 "tslint-config-prettier": "^1.18.0",
53 "typescript": "^3.5.3",
55 "vscode-test": "^1.2.0"
59 "onCommand:rust-analyzer.analyzerStatus",
60 "onCommand:rust-analyzer.collectGarbage",
61 "workspaceContains:**/Cargo.toml"
63 "main": "./bundle/extension",
89 "command": "rust-analyzer.syntaxTree",
90 "title": "Show Syntax Tree",
91 "category": "Rust Analyzer"
94 "command": "rust-analyzer.matchingBrace",
95 "title": "Find matching brace",
96 "category": "Rust Analyzer"
99 "command": "rust-analyzer.parentModule",
100 "title": "Locate parent module",
101 "category": "Rust Analyzer"
104 "command": "rust-analyzer.joinLines",
105 "title": "Join lines",
106 "category": "Rust Analyzer"
109 "command": "rust-analyzer.run",
111 "category": "Rust Analyzer"
114 "command": "rust-analyzer.analyzerStatus",
116 "category": "Rust Analyzer"
119 "command": "rust-analyzer.collectGarbage",
120 "title": "Run garbage collection",
121 "category": "Rust Analyzer"
124 "command": "rust-analyzer.reload",
125 "title": "Restart server",
126 "category": "Rust Analyzer"
129 "command": "rust-analyzer.startCargoWatch",
130 "title": "Start Cargo Watch",
131 "category": "Rust Analyzer"
134 "command": "rust-analyzer.stopCargoWatch",
135 "title": "Stop Cargo Watch",
136 "category": "Rust Analyzer"
141 "command": "rust-analyzer.parentModule",
143 "when": "editorTextFocus && editorLangId == rust"
146 "command": "rust-analyzer.matchingBrace",
147 "key": "ctrl+shift+m",
148 "when": "editorTextFocus && editorLangId == rust"
151 "command": "rust-analyzer.joinLines",
152 "key": "ctrl+shift+j",
153 "when": "editorTextFocus && editorLangId == rust"
156 "command": "rust-analyzer.run",
158 "when": "editorTextFocus && editorLangId == rust"
163 "title": "Rust Analyzer",
165 "rust-analyzer.highlightingOn": {
168 "description": "Highlight Rust code (overrides built-in syntax highlighting)"
170 "rust-analyzer.rainbowHighlightingOn": {
173 "description": "When highlighting Rust code, use a unique color per identifier"
175 "rust-analyzer.featureFlags": {
178 "description": "Fine grained feature flags to disable annoying features"
180 "rust-analyzer.enableEnhancedTyping": {
183 "description": "Enables enhanced typing. NOTE: If using a VIM extension, you should set this to false"
185 "rust-analyzer.raLspServerPath": {
189 "default": "ra_lsp_server",
190 "description": "Path to ra_lsp_server executable"
192 "rust-analyzer.enableCargoWatchOnStartup": {
200 "enumDescriptions": [
201 "Asks each time whether to run `cargo watch`",
202 "`cargo watch` is always started",
203 "Don't start `cargo watch`"
205 "description": "Whether to run `cargo watch` on startup"
207 "rust-analyzer.excludeGlobs": {
210 "description": "Paths to exclude from analysis"
212 "rust-analyzer.useClientWatching": {
215 "description": "client provided file watching instead of notify watching."
217 "rust-analyzer.cargo-watch.arguments": {
219 "description": "`cargo-watch` arguments. (e.g: `--features=\"shumway,pdf\"` will run as `cargo watch -x \"check --features=\"shumway,pdf\"\"` )",
222 "rust-analyzer.cargo-watch.command": {
224 "description": "`cargo-watch` command. (e.g: `clippy` will run as `cargo watch -x clippy` )",
227 "rust-analyzer.cargo-watch.ignore": {
229 "description": "A list of patterns for cargo-watch to ignore (will be passed as `--ignore`)",
232 "rust-analyzer.trace.server": {
240 "enumDescriptions": [
246 "description": "Trace requests to the ra_lsp_server"
248 "rust-analyzer.trace.cargo-watch": {
257 "description": "Trace output of cargo-watch"
259 "rust-analyzer.lruCapacity": {
262 "description": "Number of syntax trees rust-analyzer keeps in memory"
264 "rust-analyzer.displayInlayHints": {
267 "description": "Display additional type information in the editor"
269 "rust-analyzer.maxInlayHintLength": {
272 "description": "Maximum length for inlay hints"
281 "regexp": "^(warning|warn|error)(?:\\[(.*?)\\])?: (.*)$",
287 "regexp": "^[\\s->=]*(.*?):(\\d*):(\\d*)\\s*$",
305 "name": "rustc-watch",
311 "beginsPattern": "^\\[Running\\b",
312 "endsPattern": "^\\[Finished running\\b"
319 "id": "ralsp.comment",
320 "description": "Color for comments",
324 "highContrast": "#7CA668"
328 "id": "ralsp.string",
329 "description": "Color for strings",
333 "highContrast": "#CE9178"
337 "id": "ralsp.keyword",
338 "description": "Color for keywords",
342 "highContrast": "#569CD6"
346 "id": "ralsp.keyword.control",
347 "description": "Color for control keywords",
351 "highContrast": "#C586C0"
355 "id": "ralsp.keyword.unsafe",
356 "description": "Color for unsafe",
360 "highContrast": "#FF1010"
364 "id": "ralsp.function",
365 "description": "Color for functions",
369 "highContrast": "#DCDCAA"
373 "id": "ralsp.parameter",
374 "description": "Color for parameters",
378 "highContrast": "#9CDCFE"
382 "id": "ralsp.builtin",
383 "description": "Color for builtins",
387 "highContrast": "#DD6718"
392 "description": "Color for text",
396 "highContrast": "#FFFFFF"
400 "id": "ralsp.attribute",
401 "description": "Color for attributes",
405 "highContrast": "#108010"
409 "id": "ralsp.literal",
410 "description": "Color for literals",
414 "highContrast": "#B5CEA8"
419 "description": "Color for macros",
423 "highContrast": "#ED7718"
427 "id": "ralsp.constant",
428 "description": "Color for constants",
432 "highContrast": "#569cd6"
437 "description": "Color for types",
441 "highContrast": "#4EC9B0"
446 "description": "Color for fields",
450 "highContrast": "#4EC9B0"
454 "id": "ralsp.variable",
455 "description": "Color for variables",
459 "highContrast": "#4EC9B0"
463 "id": "ralsp.variable.mut",
464 "description": "Color for mutable variables",
468 "highContrast": "#4EC9B0"
472 "id": "ralsp.module",
473 "description": "Color for modules",
477 "highContrast": "#FFFFFF"
481 "id": "ralsp.inlayHint",
482 "description": "Color for inlay hints",
486 "highContrast": "#BEBEBE"