2 "name": "rust-analyzer",
3 "displayName": "rust-analyzer",
4 "description": "An alternative rust language server to the RLS",
8 "version": "0.4.0-dev",
10 "publisher": "matklad",
12 "url": "https://github.com/rust-analyzer/rust-analyzer.git",
15 "homepage": "https://rust-analyzer.github.io/",
16 "license": "MIT OR Apache-2.0",
21 "Programming Languages"
26 "enableProposedApi": true,
28 "vscode:prepublish": "tsc && rollup -c",
29 "package": "vsce package -o rust-analyzer.vsix",
31 "watch": "tsc --watch",
32 "lint": "tsfmt --verify && eslint -c .eslintrc.js --ext ts ./src",
33 "fix": " tsfmt -r && eslint -c .eslintrc.js --ext ts ./src --fix"
36 "node-fetch": "^2.6.0",
37 "vscode-languageclient": "7.0.0-next.1"
40 "@rollup/plugin-commonjs": "^11.1.0",
41 "@rollup/plugin-node-resolve": "^7.1.3",
42 "@types/node": "^12.12.39",
43 "@types/node-fetch": "^2.5.7",
44 "@types/vscode": "^1.44.0",
45 "@typescript-eslint/eslint-plugin": "^2.33.0",
46 "@typescript-eslint/parser": "^2.33.0",
50 "typescript": "^3.9.2",
51 "typescript-formatter": "^7.2.2",
56 "onCommand:rust-analyzer.analyzerStatus",
57 "onCommand:rust-analyzer.collectGarbage",
58 "workspaceContains:**/Cargo.toml"
83 "patternProperties": {
94 "command": "rust-analyzer.syntaxTree",
95 "title": "Show Syntax Tree",
96 "category": "Rust Analyzer"
99 "command": "rust-analyzer.expandMacro",
100 "title": "Expand macro recursively",
101 "category": "Rust Analyzer"
104 "command": "rust-analyzer.matchingBrace",
105 "title": "Find matching brace",
106 "category": "Rust Analyzer"
109 "command": "rust-analyzer.parentModule",
110 "title": "Locate parent module",
111 "category": "Rust Analyzer"
114 "command": "rust-analyzer.joinLines",
115 "title": "Join lines",
116 "category": "Rust Analyzer"
119 "command": "rust-analyzer.run",
121 "category": "Rust Analyzer"
124 "command": "rust-analyzer.debug",
126 "category": "Rust Analyzer"
129 "command": "rust-analyzer.newDebugConfig",
130 "title": "Generate launch configuration",
131 "category": "Rust Analyzer"
134 "command": "rust-analyzer.analyzerStatus",
136 "category": "Rust Analyzer"
139 "command": "rust-analyzer.collectGarbage",
140 "title": "Run garbage collection",
141 "category": "Rust Analyzer"
144 "command": "rust-analyzer.reload",
145 "title": "Restart server",
146 "category": "Rust Analyzer"
149 "command": "rust-analyzer.onEnter",
150 "title": "Enhanced enter key",
151 "category": "Rust Analyzer"
154 "command": "rust-analyzer.ssr",
155 "title": "Structural Search Replace",
156 "category": "Rust Analyzer"
159 "command": "rust-analyzer.serverVersion",
160 "title": "Show RA Version",
161 "category": "Rust Analyzer"
166 "command": "rust-analyzer.parentModule",
167 "key": "ctrl+shift+u",
168 "when": "editorTextFocus && editorLangId == rust"
171 "command": "rust-analyzer.matchingBrace",
172 "key": "ctrl+shift+m",
173 "when": "editorTextFocus && editorLangId == rust"
176 "command": "rust-analyzer.joinLines",
177 "key": "ctrl+shift+j",
178 "when": "editorTextFocus && editorLangId == rust"
183 "title": "Rust Analyzer",
185 "rust-analyzer.diagnostics.enable": {
188 "markdownDescription": "Whether to show native rust-analyzer diagnostics."
190 "rust-analyzer.lruCapacity": {
197 "exclusiveMinimum": true,
198 "description": "Number of syntax trees rust-analyzer keeps in memory."
200 "rust-analyzer.files.watcher": {
207 "description": "Controls file watching implementation."
209 "rust-analyzer.files.exclude": {
215 "description": "Paths to exclude from analysis."
217 "rust-analyzer.notifications.cargoTomlNotFound": {
220 "markdownDescription": "Whether to show `can't find Cargo.toml` error message"
222 "rust-analyzer.cargo.noDefaultFeatures": {
225 "markdownDescription": "Do not activate the `default` feature"
227 "rust-analyzer.cargo.allFeatures": {
230 "description": "Activate all available features"
232 "rust-analyzer.cargo.features": {
238 "description": "List of features to activate"
240 "rust-analyzer.cargo.loadOutDirsFromCheck": {
243 "markdownDescription": "Run `cargo check` on startup to get the correct value for package OUT_DIRs"
245 "rust-analyzer.cargo.target": {
251 "description": "Specify the compilation target"
253 "rust-analyzer.rustfmt.extraArgs": {
259 "description": "Additional arguments to rustfmt"
261 "rust-analyzer.rustfmt.overrideCommand": {
271 "markdownDescription": "Advanced option, fully override the command rust-analyzer uses for formatting."
273 "rust-analyzer.checkOnSave.enable": {
276 "markdownDescription": "Run specified `cargo check` command for diagnostics on save"
278 "rust-analyzer.checkOnSave.extraArgs": {
283 "markdownDescription": "Extra arguments for `cargo check`",
286 "rust-analyzer.checkOnSave.command": {
289 "markdownDescription": "Cargo command to use for `cargo check`"
291 "rust-analyzer.checkOnSave.overrideCommand": {
301 "markdownDescription": "Advanced option, fully override the command rust-analyzer uses for checking. The command should include `--message-format=json` or similar option."
303 "rust-analyzer.checkOnSave.allTargets": {
306 "markdownDescription": "Check all targets and tests (will be passed as `--all-targets`)"
308 "rust-analyzer.checkOnSave.allFeatures": {
311 "markdownDescription": "Check with all features (will be passed as `--all-features`)"
313 "rust-analyzer.inlayHints.enable": {
316 "description": "Disable all inlay hints"
318 "rust-analyzer.inlayHints.typeHints": {
321 "description": "Whether to show inlay type hints"
323 "rust-analyzer.inlayHints.chainingHints": {
326 "description": "Whether to show inlay type hints for method chains"
328 "rust-analyzer.inlayHints.parameterHints": {
331 "description": "Whether to show function parameter name inlay hints at the call site"
333 "rust-analyzer.inlayHints.maxLength": {
340 "exclusiveMinimum": true,
341 "description": "Maximum length for inlay hints"
343 "rust-analyzer.completion.addCallParenthesis": {
346 "description": "Whether to add parenthesis when completing functions"
348 "rust-analyzer.completion.addCallArgumentSnippets": {
351 "description": "Whether to add argument snippets when completing functions"
353 "rust-analyzer.completion.postfix.enable": {
356 "markdownDescription": "Whether to show postfix snippets like `dbg`, `if`, `not`, etc."
358 "rust-analyzer.callInfo.full": {
361 "description": "Show function name and docs in parameter hints"
363 "rust-analyzer.updates.channel": {
370 "markdownEnumDescriptions": [
371 "`\"stable\"` updates are shipped weekly, they don't contain cutting-edge features from VSCode proposed APIs but have less bugs in general",
372 "`\"nightly\"` updates are shipped daily (extension updates automatically by downloading artifacts directly from GitHub), they contain cutting-edge features and latest bug fixes. These releases help us get your feedback very quickly and speed up rust-analyzer development **drastically**"
374 "markdownDescription": "Choose `\"nightly\"` updates to get the latest features and bug fixes every day. While `\"stable\"` releases occur weekly and don't contain cutting-edge features from VSCode proposed APIs"
376 "rust-analyzer.updates.askBeforeDownload": {
379 "description": "Whether to ask for permission before downloading any files from the Internet"
381 "rust-analyzer.serverPath": {
387 "description": "Path to rust-analyzer executable (points to bundled binary by default). If this is set, then \"rust-analyzer.updates.channel\" setting is not used"
389 "rust-analyzer.trace.server": {
397 "enumDescriptions": [
403 "description": "Trace requests to the rust-analyzer"
405 "rust-analyzer.trace.extension": {
406 "description": "Enable logging of VS Code extensions itself",
410 "rust-analyzer.procMacro.enable": {
411 "description": "Enable Proc macro support, cargo.loadOutDirsFromCheck must be enabled.",
415 "rust-analyzer.debug.engine": {
419 "vadimcn.vscode-lldb",
423 "description": "Preferred debug engine.",
424 "markdownEnumDescriptions": [
425 "First try to use [CodeLLDB](https://marketplace.visualstudio.com/items?itemName=vadimcn.vscode-lldb), if it's not installed try to use [MS C++ tools](https://marketplace.visualstudio.com/items?itemName=ms-vscode.cpptools).",
426 "Use [CodeLLDB](https://marketplace.visualstudio.com/items?itemName=vadimcn.vscode-lldb)",
427 "Use [MS C++ tools](https://marketplace.visualstudio.com/items?itemName=ms-vscode.cpptools)"
430 "rust-analyzer.debug.sourceFileMap": {
432 "description": "Optional source file mappings passed to the debug engine.",
434 "/rustc/<id>": "${env:USERPROFILE}/.rustup/toolchains/<toolchain-id>/lib/rustlib/src/rust"
437 "rust-analyzer.debug.openDebugPane": {
438 "description": "Whether to open up the Debug Pane on debugging start.",
442 "rust-analyzer.debug.engineSettings": {
445 "description": "Optional settings passed to the debug engine. Example:\n{ \"lldb\": { \"terminal\":\"external\"} }"
447 "rust-analyzer.lens.enable": {
448 "description": "Whether to show CodeLens in Rust files.",
452 "rust-analyzer.lens.run": {
453 "markdownDescription": "Whether to show Run lens. Only applies when `#rust-analyzer.lens.enable#` is set.",
457 "rust-analyzer.lens.debug": {
458 "markdownDescription": "Whether to show Debug lens. Only applies when `#rust-analyzer.lens.enable#` is set.",
462 "rust-analyzer.lens.implementations": {
463 "markdownDescription": "Whether to show Implementations lens. Only applies when `#rust-analyzer.lens.enable#` is set.",
474 "regexp": "^(warning|warn|error)(?:\\[(.*?)\\])?: (.*)$",
480 "regexp": "^[\\s->=]*(.*?):(\\d*):(\\d*)\\s*$",
488 "name": "rustc-json",
491 "regexp": "^.*\"message\":{\"message\":\"([^\"]*).*?\"file_name\":\"([^\"]+).*?\"line_start\":(\\d+).*?\"line_end\":(\\d+).*?\"column_start\":(\\d+).*?\"column_end\":(\\d+).*}$",
504 "id": "ra_syntax_tree",
513 "scopeName": "source.rust",
514 "path": "rust.tmGrammar.json"
517 "language": "ra_syntax_tree",
518 "scopeName": "source.ra_syntax_tree",
519 "path": "ra_syntax_tree.tmGrammar.json"
532 "name": "rustc-json",
537 "pattern": "$rustc-json"
540 "name": "rustc-watch",
546 "beginsPattern": "^\\[Running\\b",
547 "endsPattern": "^\\[Finished running\\b"
554 "id": "rust_analyzer.inlayHint",
555 "description": "Color for inlay hints",
559 "highContrast": "#BEBEBE"
563 "id": "rust_analyzer.syntaxTreeBorder",
564 "description": "Color of the border displayed in the Rust source code for the selected syntax node (see \"Show Syntax Tree\" command)",
568 "highContrast": "#b700ff"
572 "semanticTokenTypes": [
575 "description": "Style for attributes"
579 "description": "Style for builtin types",
584 "description": "Style for lifetimes"
588 "description": "Style for type aliases",
593 "description": "Style for C-style untagged unions",
597 "id": "unresolvedReference",
598 "description": "Style for names which can not be resolved due to compilation errors"
601 "id": "formatSpecifier",
602 "description": "Style for {} placeholders in format strings"
605 "semanticTokenModifiers": [
608 "description": "Style for compile-time constants"
612 "description": "Style for control flow keywords"
616 "description": "Style for mutable bindings"
620 "description": "Style for unsafe operations"
623 "semanticTokenScopes": [
628 "entity.name.function.macro.rust"
631 "meta.attribute.rust"
634 "support.type.primitive.rust"
637 "storage.modifier.lifetime.rust"
640 "entity.name.type.typeAlias.rust"
643 "entity.name.type.union.rust"
646 "entity.name.type.struct.rust"
651 "keyword.controlFlow": [
652 "keyword.control.rust"
654 "variable.constant": [
655 "variable.other.constant.rust"
658 "punctuation.section.embedded.rust"