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.showWorkspaceLoadedNotification": {
234 "description": "Controls whether rust-analyzer displays a notification when a project is loaded.",
237 "rust-analyzer.trace.server": {
245 "enumDescriptions": [
251 "description": "Trace requests to the ra_lsp_server"
253 "rust-analyzer.trace.cargo-watch": {
262 "description": "Trace output of cargo-watch"
264 "rust-analyzer.lruCapacity": {
267 "description": "Number of syntax trees rust-analyzer keeps in memory"
269 "rust-analyzer.displayInlayHints": {
272 "description": "Display additional type information in the editor"
274 "rust-analyzer.maxInlayHintLength": {
277 "description": "Maximum length for inlay hints"
286 "regexp": "^(warning|warn|error)(?:\\[(.*?)\\])?: (.*)$",
292 "regexp": "^[\\s->=]*(.*?):(\\d*):(\\d*)\\s*$",
310 "name": "rustc-watch",
316 "beginsPattern": "^\\[Running\\b",
317 "endsPattern": "^\\[Finished running\\b"
324 "id": "ralsp.comment",
325 "description": "Color for comments",
329 "highContrast": "#7CA668"
333 "id": "ralsp.string",
334 "description": "Color for strings",
338 "highContrast": "#CE9178"
342 "id": "ralsp.keyword",
343 "description": "Color for keywords",
347 "highContrast": "#569CD6"
351 "id": "ralsp.keyword.control",
352 "description": "Color for control keywords",
356 "highContrast": "#C586C0"
360 "id": "ralsp.keyword.unsafe",
361 "description": "Color for unsafe",
365 "highContrast": "#FF1010"
369 "id": "ralsp.function",
370 "description": "Color for functions",
374 "highContrast": "#DCDCAA"
378 "id": "ralsp.parameter",
379 "description": "Color for parameters",
383 "highContrast": "#9CDCFE"
387 "id": "ralsp.builtin",
388 "description": "Color for builtins",
392 "highContrast": "#DD6718"
397 "description": "Color for text",
401 "highContrast": "#FFFFFF"
405 "id": "ralsp.attribute",
406 "description": "Color for attributes",
410 "highContrast": "#108010"
414 "id": "ralsp.literal",
415 "description": "Color for literals",
419 "highContrast": "#B5CEA8"
424 "description": "Color for macros",
428 "highContrast": "#ED7718"
432 "id": "ralsp.constant",
433 "description": "Color for constants",
437 "highContrast": "#569cd6"
442 "description": "Color for types",
446 "highContrast": "#4EC9B0"
451 "description": "Color for fields",
455 "highContrast": "#4EC9B0"
459 "id": "ralsp.variable",
460 "description": "Color for variables",
464 "highContrast": "#4EC9B0"
468 "id": "ralsp.variable.mut",
469 "description": "Color for mutable variables",
473 "highContrast": "#4EC9B0"
477 "id": "ralsp.module",
478 "description": "Color for modules",
482 "highContrast": "#FFFFFF"
486 "id": "ralsp.inlayHint",
487 "description": "Color for inlay hints",
491 "highContrast": "#BEBEBE"