2 "name": "rust-analyzer",
3 "displayName": "rust-analyzer",
4 "description": "Rust language support for Visual Studio Code",
7 "version": "0.5.0-dev",
9 "publisher": "rust-lang",
11 "url": "https://github.com/rust-lang/rust-analyzer.git",
14 "homepage": "https://rust-analyzer.github.io/",
15 "license": "MIT OR Apache-2.0",
20 "Programming Languages"
25 "enabledApiProposals": [],
27 "vscode:prepublish": "npm run build-base -- --minify",
28 "package": "vsce package -o rust-analyzer.vsix",
29 "build-base": "esbuild ./src/main.ts --bundle --outfile=out/main.js --external:vscode --format=cjs --platform=node --target=node16",
30 "build": "npm run build-base -- --sourcemap",
31 "watch": "npm run build-base -- --sourcemap --watch",
32 "lint": "prettier --check . && eslint -c .eslintrc.js --ext ts ./src ./tests",
33 "fix": "prettier --write . && eslint -c .eslintrc.js --ext ts ./src ./tests --fix",
34 "pretest": "tsc && npm run build",
35 "test": "cross-env TEST_VARIABLE=test node ./out/tests/runTests.js"
39 "d3-graphviz": "^4.1.0",
40 "vscode-languageclient": "8.0.0-next.14"
43 "@types/node": "~14.17.5",
44 "@types/vscode": "~1.66.0",
45 "@typescript-eslint/eslint-plugin": "^5.16.0",
46 "@typescript-eslint/parser": "^5.16.0",
47 "@vscode/test-electron": "^2.1.3",
48 "cross-env": "^7.0.3",
49 "esbuild": "^0.14.27",
51 "eslint-config-prettier": "^8.5.0",
54 "typescript": "^4.6.3",
59 "onCommand:rust-analyzer.analyzerStatus",
60 "onCommand:rust-analyzer.memoryUsage",
61 "onCommand:rust-analyzer.reloadWorkspace",
62 "workspaceContains:*/Cargo.toml",
63 "workspaceContains:*/rust-project.json"
88 "patternProperties": {
99 "command": "rust-analyzer.syntaxTree",
100 "title": "Show Syntax Tree",
101 "category": "Rust Analyzer"
104 "command": "rust-analyzer.viewHir",
106 "category": "Rust Analyzer"
109 "command": "rust-analyzer.viewFileText",
110 "title": "View File Text (as seen by the server)",
111 "category": "Rust Analyzer"
114 "command": "rust-analyzer.viewItemTree",
115 "title": "Debug ItemTree",
116 "category": "Rust Analyzer"
119 "command": "rust-analyzer.viewCrateGraph",
120 "title": "View Crate Graph",
121 "category": "Rust Analyzer"
124 "command": "rust-analyzer.viewFullCrateGraph",
125 "title": "View Crate Graph (Full)",
126 "category": "Rust Analyzer"
129 "command": "rust-analyzer.expandMacro",
130 "title": "Expand macro recursively",
131 "category": "Rust Analyzer"
134 "command": "rust-analyzer.matchingBrace",
135 "title": "Find matching brace",
136 "category": "Rust Analyzer"
139 "command": "rust-analyzer.parentModule",
140 "title": "Locate parent module",
141 "category": "Rust Analyzer"
144 "command": "rust-analyzer.joinLines",
145 "title": "Join lines",
146 "category": "Rust Analyzer"
149 "command": "rust-analyzer.run",
151 "category": "Rust Analyzer"
154 "command": "rust-analyzer.copyRunCommandLine",
155 "title": "Copy Run Command Line",
156 "category": "Rust Analyzer"
159 "command": "rust-analyzer.debug",
161 "category": "Rust Analyzer"
164 "command": "rust-analyzer.newDebugConfig",
165 "title": "Generate launch configuration",
166 "category": "Rust Analyzer"
169 "command": "rust-analyzer.analyzerStatus",
171 "category": "Rust Analyzer"
174 "command": "rust-analyzer.memoryUsage",
175 "title": "Memory Usage (Clears Database)",
176 "category": "Rust Analyzer"
179 "command": "rust-analyzer.shuffleCrateGraph",
180 "title": "Shuffle Crate Graph",
181 "category": "Rust Analyzer"
184 "command": "rust-analyzer.reloadWorkspace",
185 "title": "Reload workspace",
186 "category": "Rust Analyzer"
189 "command": "rust-analyzer.reload",
190 "title": "Restart server",
191 "category": "Rust Analyzer"
194 "command": "rust-analyzer.onEnter",
195 "title": "Enhanced enter key",
196 "category": "Rust Analyzer"
199 "command": "rust-analyzer.ssr",
200 "title": "Structural Search Replace",
201 "category": "Rust Analyzer"
204 "command": "rust-analyzer.serverVersion",
205 "title": "Show RA Version",
206 "category": "Rust Analyzer"
209 "command": "rust-analyzer.toggleInlayHints",
210 "title": "Toggle inlay hints",
211 "category": "Rust Analyzer"
214 "command": "rust-analyzer.openDocs",
215 "title": "Open docs under cursor",
216 "category": "Rust Analyzer"
219 "command": "rust-analyzer.openCargoToml",
220 "title": "Open Cargo.toml",
221 "category": "Rust Analyzer"
224 "command": "rust-analyzer.peekTests",
225 "title": "Peek related tests",
226 "category": "Rust Analyzer"
229 "command": "rust-analyzer.moveItemUp",
230 "title": "Move item up",
231 "category": "Rust Analyzer"
234 "command": "rust-analyzer.moveItemDown",
235 "title": "Move item down",
236 "category": "Rust Analyzer"
241 "command": "rust-analyzer.parentModule",
242 "key": "ctrl+shift+u",
243 "when": "editorTextFocus && editorLangId == rust"
246 "command": "rust-analyzer.matchingBrace",
247 "key": "ctrl+shift+m",
248 "when": "editorTextFocus && editorLangId == rust"
251 "command": "rust-analyzer.joinLines",
252 "key": "ctrl+shift+j",
253 "when": "editorTextFocus && editorLangId == rust"
258 "title": "Rust Analyzer",
260 "rust-analyzer.cargoRunner": {
266 "description": "Custom cargo runner extension ID."
268 "rust-analyzer.runnableEnv": {
280 "description": "Runnable name mask"
284 "description": "Variables in form of { \"key\": \"value\"}"
291 "description": "Variables in form of { \"key\": \"value\"}"
295 "markdownDescription": "Environment variables passed to the runnable launched using `Test` or `Debug` lens or `rust-analyzer.run` command."
297 "rust-analyzer.server.path": {
302 "scope": "machine-overridable",
304 "markdownDescription": "Path to rust-analyzer executable (points to bundled binary by default)."
306 "rust-analyzer.server.extraEnv": {
312 "markdownDescription": "Extra environment variables that will be passed to the rust-analyzer executable. Useful for passing e.g. `RA_LOG` for debugging."
314 "rust-analyzer.trace.server": {
322 "enumDescriptions": [
328 "description": "Trace requests to the rust-analyzer (this is usually overly verbose and not recommended for regular users)."
330 "rust-analyzer.trace.extension": {
331 "description": "Enable logging of VS Code extensions itself.",
335 "rust-analyzer.debug.engine": {
339 "vadimcn.vscode-lldb",
343 "description": "Preferred debug engine.",
344 "markdownEnumDescriptions": [
345 "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).",
346 "Use [CodeLLDB](https://marketplace.visualstudio.com/items?itemName=vadimcn.vscode-lldb)",
347 "Use [MS C++ tools](https://marketplace.visualstudio.com/items?itemName=ms-vscode.cpptools)"
350 "rust-analyzer.debug.sourceFileMap": {
356 "description": "Optional source file mappings passed to the debug engine.",
358 "/rustc/<id>": "${env:USERPROFILE}/.rustup/toolchains/<toolchain-id>/lib/rustlib/src/rust"
361 "rust-analyzer.debug.openDebugPane": {
362 "markdownDescription": "Whether to open up the `Debug Panel` on debugging start.",
366 "rust-analyzer.debug.engineSettings": {
369 "markdownDescription": "Optional settings passed to the debug engine. Example: `{ \"lldb\": { \"terminal\":\"external\"} }`"
371 "$generated-start": {},
372 "rust-analyzer.assist.expressionFillDefault": {
373 "markdownDescription": "Placeholder expression to use for missing expressions in assists.",
380 "enumDescriptions": [
381 "Fill missing expressions with the `todo` macro",
382 "Fill missing expressions with reasonable defaults, `new` or `default` constructors."
385 "rust-analyzer.cachePriming.enable": {
386 "markdownDescription": "Warm up caches on project load.",
390 "rust-analyzer.cachePriming.numThreads": {
391 "markdownDescription": "How many worker threads to handle priming caches. The default `0` means to pick automatically.",
397 "rust-analyzer.cargo.autoreload": {
398 "markdownDescription": "Automatically refresh project info via `cargo metadata` on\n`Cargo.toml` or `.cargo/config.toml` changes.",
402 "rust-analyzer.cargo.buildScripts.enable": {
403 "markdownDescription": "Run build scripts (`build.rs`) for more precise code analysis.",
407 "rust-analyzer.cargo.buildScripts.overrideCommand": {
408 "markdownDescription": "Override the command rust-analyzer uses to run build scripts and\nbuild procedural macros. The command is required to output json\nand should therefor include `--message-format=json` or a similar\noption.\n\nBy default, a cargo invocation will be constructed for the configured\ntargets and features, with the following base command line:\n\n```bash\ncargo check --quiet --workspace --message-format=json --all-targets\n```\n.",
418 "rust-analyzer.cargo.buildScripts.useRustcWrapper": {
419 "markdownDescription": "Use `RUSTC_WRAPPER=rust-analyzer` when running build scripts to\navoid compiling unnecessary things.",
423 "rust-analyzer.cargo.features": {
424 "markdownDescription": "List of features to activate.\n\nSet this to `\"all\"` to pass `--all-features` to cargo.",
432 "enumDescriptions": [
433 "Pass `--all-features` to cargo"
444 "rust-analyzer.cargo.noDefaultFeatures": {
445 "markdownDescription": "Whether to pass `--no-default-features` to cargo.",
449 "rust-analyzer.cargo.noSysroot": {
450 "markdownDescription": "Internal config for debugging, disables loading of sysroot crates.",
454 "rust-analyzer.cargo.target": {
455 "markdownDescription": "Compilation target override (target triple).",
462 "rust-analyzer.cargo.unsetTest": {
463 "markdownDescription": "Unsets `#[cfg(test)]` for the specified crates.",
472 "rust-analyzer.checkOnSave.allTargets": {
473 "markdownDescription": "Check all targets and tests (`--all-targets`).",
477 "rust-analyzer.checkOnSave.command": {
478 "markdownDescription": "Cargo command to use for `cargo check`.",
482 "rust-analyzer.checkOnSave.enable": {
483 "markdownDescription": "Run specified `cargo check` command for diagnostics on save.",
487 "rust-analyzer.checkOnSave.extraArgs": {
488 "markdownDescription": "Extra arguments for `cargo check`.",
495 "rust-analyzer.checkOnSave.features": {
496 "markdownDescription": "List of features to activate. Defaults to\n`#rust-analyzer.cargo.features#`.\n\nSet to `\"all\"` to pass `--all-features` to cargo.",
504 "enumDescriptions": [
505 "Pass `--all-features` to cargo"
519 "rust-analyzer.checkOnSave.noDefaultFeatures": {
520 "markdownDescription": "Whether to pass `--no-default-features` to cargo. Defaults to\n`#rust-analyzer.cargo.noDefaultFeatures#`.",
527 "rust-analyzer.checkOnSave.overrideCommand": {
528 "markdownDescription": "Override the command rust-analyzer uses to run build scripts and\nbuild procedural macros. The command is required to output json\nand should therefor include `--message-format=json` or a similar\noption.\n\nAn example command would be:\n\n```bash\ncargo check --workspace --message-format=json --all-targets\n```\n.",
538 "rust-analyzer.checkOnSave.target": {
539 "markdownDescription": "Check for a specific target. Defaults to\n`#rust-analyzer.cargo.target#`.",
546 "rust-analyzer.completion.autoimport.enable": {
547 "markdownDescription": "Toggles the additional completions that automatically add imports when completed.\nNote that your client must specify the `additionalTextEdits` LSP client capability to truly have this feature enabled.",
551 "rust-analyzer.completion.autoself.enable": {
552 "markdownDescription": "Toggles the additional completions that automatically show method calls and field accesses\nwith `self` prefixed to them when inside a method.",
556 "rust-analyzer.completion.callable.snippets": {
557 "markdownDescription": "Whether to add parenthesis and argument snippets when completing function.",
558 "default": "fill_arguments",
565 "enumDescriptions": [
566 "Add call parentheses and pre-fill arguments.",
567 "Add call parentheses.",
568 "Do no snippet completions for callables."
571 "rust-analyzer.completion.postfix.enable": {
572 "markdownDescription": "Whether to show postfix snippets like `dbg`, `if`, `not`, etc.",
576 "rust-analyzer.completion.privateEditable.enable": {
577 "markdownDescription": "Enables completions of private items and fields that are defined in the current workspace even if they are not visible at the current position.",
581 "rust-analyzer.completion.snippets.custom": {
582 "markdownDescription": "Custom completion snippets.",
586 "body": "Arc::new(${receiver})",
587 "requires": "std::sync::Arc",
588 "description": "Put the expression into an `Arc`",
593 "body": "Rc::new(${receiver})",
594 "requires": "std::rc::Rc",
595 "description": "Put the expression into an `Rc`",
600 "body": "Box::pin(${receiver})",
601 "requires": "std::boxed::Box",
602 "description": "Put the expression into a pinned `Box`",
607 "body": "Ok(${receiver})",
608 "description": "Wrap the expression in a `Result::Ok`",
613 "body": "Err(${receiver})",
614 "description": "Wrap the expression in a `Result::Err`",
619 "body": "Some(${receiver})",
620 "description": "Wrap the expression in an `Option::Some`",
626 "rust-analyzer.diagnostics.disabled": {
627 "markdownDescription": "List of rust-analyzer diagnostics to disable.",
635 "rust-analyzer.diagnostics.enable": {
636 "markdownDescription": "Whether to show native rust-analyzer diagnostics.",
640 "rust-analyzer.diagnostics.experimental.enable": {
641 "markdownDescription": "Whether to show experimental rust-analyzer diagnostics that might\nhave more false positives than usual.",
645 "rust-analyzer.diagnostics.remapPrefix": {
646 "markdownDescription": "Map of prefixes to be substituted when parsing diagnostic file paths.\nThis should be the reverse mapping of what is passed to `rustc` as `--remap-path-prefix`.",
650 "rust-analyzer.diagnostics.warningsAsHint": {
651 "markdownDescription": "List of warnings that should be displayed with hint severity.\n\nThe warnings will be indicated by faded text or three dots in code\nand will not show up in the `Problems Panel`.",
658 "rust-analyzer.diagnostics.warningsAsInfo": {
659 "markdownDescription": "List of warnings that should be displayed with info severity.\n\nThe warnings will be indicated by a blue squiggly underline in code\nand a blue icon in the `Problems Panel`.",
666 "rust-analyzer.files.excludeDirs": {
667 "markdownDescription": "These directories will be ignored by rust-analyzer. They are\nrelative to the workspace root, and globs are not supported. You may\nalso need to add the folders to Code's `files.watcherExclude`.",
674 "rust-analyzer.files.watcher": {
675 "markdownDescription": "Controls file watching implementation.",
679 "rust-analyzer.highlightRelated.breakPoints.enable": {
680 "markdownDescription": "Enables highlighting of related references while the cursor is on `break`, `loop`, `while`, or `for` keywords.",
684 "rust-analyzer.highlightRelated.exitPoints.enable": {
685 "markdownDescription": "Enables highlighting of all exit points while the cursor is on any `return`, `?`, `fn`, or return type arrow (`->`).",
689 "rust-analyzer.highlightRelated.references.enable": {
690 "markdownDescription": "Enables highlighting of related references while the cursor is on any identifier.",
694 "rust-analyzer.highlightRelated.yieldPoints.enable": {
695 "markdownDescription": "Enables highlighting of all break points for a loop or block context while the cursor is on any `async` or `await` keywords.",
699 "rust-analyzer.hover.actions.debug.enable": {
700 "markdownDescription": "Whether to show `Debug` action. Only applies when\n`#rust-analyzer.hover.actions.enable#` is set.",
704 "rust-analyzer.hover.actions.enable": {
705 "markdownDescription": "Whether to show HoverActions in Rust files.",
709 "rust-analyzer.hover.actions.gotoTypeDef.enable": {
710 "markdownDescription": "Whether to show `Go to Type Definition` action. Only applies when\n`#rust-analyzer.hover.actions.enable#` is set.",
714 "rust-analyzer.hover.actions.implementations.enable": {
715 "markdownDescription": "Whether to show `Implementations` action. Only applies when\n`#rust-analyzer.hover.actions.enable#` is set.",
719 "rust-analyzer.hover.actions.references.enable": {
720 "markdownDescription": "Whether to show `References` action. Only applies when\n`#rust-analyzer.hover.actions.enable#` is set.",
724 "rust-analyzer.hover.actions.run.enable": {
725 "markdownDescription": "Whether to show `Run` action. Only applies when\n`#rust-analyzer.hover.actions.enable#` is set.",
729 "rust-analyzer.hover.documentation.enable": {
730 "markdownDescription": "Whether to show documentation on hover.",
734 "rust-analyzer.hover.links.enable": {
735 "markdownDescription": "Use markdown syntax for links in hover.",
739 "rust-analyzer.imports.granularity.enforce": {
740 "markdownDescription": "Whether to enforce the import granularity setting for all files. If set to false rust-analyzer will try to keep import styles consistent per file.",
744 "rust-analyzer.imports.granularity.group": {
745 "markdownDescription": "How imports should be grouped into use statements.",
754 "enumDescriptions": [
755 "Do not change the granularity of any imports and preserve the original structure written by the developer.",
756 "Merge imports from the same crate into a single use statement. Conversely, imports from different crates are split into separate statements.",
757 "Merge imports from the same module into a single use statement. Conversely, imports from different modules are split into separate statements.",
758 "Flatten imports so that each has its own use statement."
761 "rust-analyzer.imports.group.enable": {
762 "markdownDescription": "Group inserted imports by the [following order](https://rust-analyzer.github.io/manual.html#auto-import). Groups are separated by newlines.",
766 "rust-analyzer.imports.merge.glob": {
767 "markdownDescription": "Whether to allow import insertion to merge new imports into single path glob imports like `use std::fmt::*;`.",
771 "rust-analyzer.imports.prefix": {
772 "markdownDescription": "The path structure for newly inserted paths to use.",
780 "enumDescriptions": [
781 "Insert import paths relative to the current module, using up to one `super` prefix if the parent module contains the requested item.",
782 "Insert import paths relative to the current module, using up to one `super` prefix if the parent module contains the requested item. Prefixes `self` in front of the path if it starts with a module.",
783 "Force import paths to be absolute by always starting them with `crate` or the extern crate name they come from."
786 "rust-analyzer.inlayHints.bindingModeHints.enable": {
787 "markdownDescription": "Whether to show inlay type hints for binding modes.",
791 "rust-analyzer.inlayHints.chainingHints.enable": {
792 "markdownDescription": "Whether to show inlay type hints for method chains.",
796 "rust-analyzer.inlayHints.closingBraceHints.enable": {
797 "markdownDescription": "Whether to show inlay hints after a closing `}` to indicate what item it belongs to.",
801 "rust-analyzer.inlayHints.closingBraceHints.minLines": {
802 "markdownDescription": "Minimum number of lines required before the `}` until the hint is shown (set to 0 or 1\nto always show them).",
807 "rust-analyzer.inlayHints.closureReturnTypeHints.enable": {
808 "markdownDescription": "Whether to show inlay type hints for return types of closures with blocks.",
812 "rust-analyzer.inlayHints.lifetimeElisionHints.enable": {
813 "markdownDescription": "Whether to show inlay type hints for elided lifetimes in function signatures.",
821 "enumDescriptions": [
822 "Always show lifetime elision hints.",
823 "Never show lifetime elision hints.",
824 "Only show lifetime elision hints if a return type is involved."
827 "rust-analyzer.inlayHints.lifetimeElisionHints.useParameterNames": {
828 "markdownDescription": "Whether to prefer using parameter names as the name for elided lifetime hints if possible.",
832 "rust-analyzer.inlayHints.maxLength": {
833 "markdownDescription": "Maximum length for inlay hints. Set to null to have an unlimited length.",
841 "rust-analyzer.inlayHints.parameterHints.enable": {
842 "markdownDescription": "Whether to show function parameter name inlay hints at the call\nsite.",
846 "rust-analyzer.inlayHints.reborrowHints.enable": {
847 "markdownDescription": "Whether to show inlay type hints for compiler inserted reborrows.",
855 "enumDescriptions": [
856 "Always show reborrow hints.",
857 "Never show reborrow hints.",
858 "Only show mutable reborrow hints."
861 "rust-analyzer.inlayHints.renderColons": {
862 "markdownDescription": "Whether to render leading colons for type hints, and trailing colons for parameter hints.",
866 "rust-analyzer.inlayHints.typeHints.enable": {
867 "markdownDescription": "Whether to show inlay type hints for variables.",
871 "rust-analyzer.inlayHints.typeHints.hideClosureInitialization": {
872 "markdownDescription": "Whether to hide inlay type hints for `let` statements that initialize to a closure.\nOnly applies to closures with blocks, same as `#rust-analyzer.inlayHints.closureReturnTypeHints.enable#`.",
876 "rust-analyzer.inlayHints.typeHints.hideNamedConstructor": {
877 "markdownDescription": "Whether to hide inlay type hints for constructors.",
881 "rust-analyzer.joinLines.joinAssignments": {
882 "markdownDescription": "Join lines merges consecutive declaration and initialization of an assignment.",
886 "rust-analyzer.joinLines.joinElseIf": {
887 "markdownDescription": "Join lines inserts else between consecutive ifs.",
891 "rust-analyzer.joinLines.removeTrailingComma": {
892 "markdownDescription": "Join lines removes trailing commas.",
896 "rust-analyzer.joinLines.unwrapTrivialBlock": {
897 "markdownDescription": "Join lines unwraps trivial blocks.",
901 "rust-analyzer.lens.debug.enable": {
902 "markdownDescription": "Whether to show `Debug` lens. Only applies when\n`#rust-analyzer.lens.enable#` is set.",
906 "rust-analyzer.lens.enable": {
907 "markdownDescription": "Whether to show CodeLens in Rust files.",
911 "rust-analyzer.lens.forceCustomCommands": {
912 "markdownDescription": "Internal config: use custom client-side commands even when the\nclient doesn't set the corresponding capability.",
916 "rust-analyzer.lens.implementations.enable": {
917 "markdownDescription": "Whether to show `Implementations` lens. Only applies when\n`#rust-analyzer.lens.enable#` is set.",
921 "rust-analyzer.lens.references.adt.enable": {
922 "markdownDescription": "Whether to show `References` lens for Struct, Enum, and Union.\nOnly applies when `#rust-analyzer.lens.enable#` is set.",
926 "rust-analyzer.lens.references.enumVariant.enable": {
927 "markdownDescription": "Whether to show `References` lens for Enum Variants.\nOnly applies when `#rust-analyzer.lens.enable#` is set.",
931 "rust-analyzer.lens.references.method.enable": {
932 "markdownDescription": "Whether to show `Method References` lens. Only applies when\n`#rust-analyzer.lens.enable#` is set.",
936 "rust-analyzer.lens.references.trait.enable": {
937 "markdownDescription": "Whether to show `References` lens for Trait.\nOnly applies when `#rust-analyzer.lens.enable#` is set.",
941 "rust-analyzer.lens.run.enable": {
942 "markdownDescription": "Whether to show `Run` lens. Only applies when\n`#rust-analyzer.lens.enable#` is set.",
946 "rust-analyzer.linkedProjects": {
947 "markdownDescription": "Disable project auto-discovery in favor of explicitly specified set\nof projects.\n\nElements must be paths pointing to `Cargo.toml`,\n`rust-project.json`, or JSON objects in `rust-project.json` format.",
957 "rust-analyzer.lru.capacity": {
958 "markdownDescription": "Number of syntax trees rust-analyzer keeps in memory. Defaults to 128.",
966 "rust-analyzer.notifications.cargoTomlNotFound": {
967 "markdownDescription": "Whether to show `can't find Cargo.toml` error message.",
971 "rust-analyzer.procMacro.attributes.enable": {
972 "markdownDescription": "Expand attribute macros. Requires `#rust-analyzer.procMacro.enable#` to be set.",
976 "rust-analyzer.procMacro.enable": {
977 "markdownDescription": "Enable support for procedural macros, implies `#rust-analyzer.cargo.buildScripts.enable#`.",
981 "rust-analyzer.procMacro.ignored": {
982 "markdownDescription": "These proc-macros will be ignored when trying to expand them.\n\nThis config takes a map of crate names with the exported proc-macro names to ignore as values.",
986 "rust-analyzer.procMacro.server": {
987 "markdownDescription": "Internal config, path to proc-macro server executable (typically,\nthis is rust-analyzer itself, but we override this in tests).",
994 "rust-analyzer.runnables.command": {
995 "markdownDescription": "Command to be executed instead of 'cargo' for runnables.",
1002 "rust-analyzer.runnables.extraArgs": {
1003 "markdownDescription": "Additional arguments to be passed to cargo for runnables such as\ntests or binaries. For example, it may be `--release`.",
1010 "rust-analyzer.rustc.source": {
1011 "markdownDescription": "Path to the Cargo.toml of the rust compiler workspace, for usage in rustc_private\nprojects, or \"discover\" to try to automatically find it if the `rustc-dev` component\nis installed.\n\nAny project which uses rust-analyzer with the rustcPrivate\ncrates must set `[package.metadata.rust-analyzer] rustc_private=true` to use it.\n\nThis option does not take effect until rust-analyzer is restarted.",
1018 "rust-analyzer.rustfmt.extraArgs": {
1019 "markdownDescription": "Additional arguments to `rustfmt`.",
1026 "rust-analyzer.rustfmt.overrideCommand": {
1027 "markdownDescription": "Advanced option, fully override the command rust-analyzer uses for\nformatting.",
1037 "rust-analyzer.rustfmt.rangeFormatting.enable": {
1038 "markdownDescription": "Enables the use of rustfmt's unstable range formatting command for the\n`textDocument/rangeFormatting` request. The rustfmt option is unstable and only\navailable on a nightly build.",
1042 "rust-analyzer.semanticHighlighting.strings.enable": {
1043 "markdownDescription": "Use semantic tokens for strings.\n\nIn some editors (e.g. vscode) semantic tokens override other highlighting grammars.\nBy disabling semantic tokens for strings, other grammars can be used to highlight\ntheir contents.",
1047 "rust-analyzer.signatureInfo.detail": {
1048 "markdownDescription": "Show full signature of the callable. Only shows parameters if disabled.",
1055 "enumDescriptions": [
1056 "Show the entire signature.",
1057 "Show only the parameters."
1060 "rust-analyzer.signatureInfo.documentation.enable": {
1061 "markdownDescription": "Show documentation.",
1065 "rust-analyzer.workspace.symbol.search.kind": {
1066 "markdownDescription": "Workspace symbol search kind.",
1067 "default": "only_types",
1073 "enumDescriptions": [
1074 "Search for types only.",
1075 "Search for all symbols kinds."
1078 "rust-analyzer.workspace.symbol.search.limit": {
1079 "markdownDescription": "Limits the number of items returned from a workspace symbol search (Defaults to 128).\nSome clients like vs-code issue new searches on result filtering and don't require all results to be returned in the initial search.\nOther clients requires all results upfront and might require a higher limit.",
1084 "rust-analyzer.workspace.symbol.search.scope": {
1085 "markdownDescription": "Workspace symbol search scope.",
1086 "default": "workspace",
1090 "workspace_and_dependencies"
1092 "enumDescriptions": [
1093 "Search in current workspace only.",
1094 "Search in current workspace and dependencies."
1097 "$generated-end": {}
1100 "problemPatterns": [
1105 "regexp": "^(warning|warn|error)(?:\\[(.*?)\\])?: (.*)$",
1111 "regexp": "^[\\s->=]*(.*?):(\\d*):(\\d*)\\s*$",
1119 "name": "rustc-json",
1122 "regexp": "^.*\"message\":{\"message\":\"([^\"]*).*?\"file_name\":\"([^\"]+).*?\"line_start\":(\\d+).*?\"line_end\":(\\d+).*?\"column_start\":(\\d+).*?\"column_end\":(\\d+).*}$",
1135 "id": "ra_syntax_tree",
1149 "configuration": "language-configuration.json"
1154 "language": "ra_syntax_tree",
1155 "scopeName": "source.ra_syntax_tree",
1156 "path": "ra_syntax_tree.tmGrammar.json"
1159 "problemMatchers": [
1171 "name": "rustc-json",
1178 "pattern": "$rustc-json"
1181 "name": "rustc-watch",
1189 "beginsPattern": "^\\[Running\\b",
1190 "endsPattern": "^\\[Finished running\\b"
1197 "id": "rust_analyzer.syntaxTreeBorder",
1198 "description": "Color of the border displayed in the Rust source code for the selected syntax node (see \"Show Syntax Tree\" command)",
1202 "highContrast": "#b700ff"
1206 "semanticTokenTypes": [
1209 "description": "Style for < or >",
1210 "superType": "punctuation"
1214 "description": "Style for arithmetic operators",
1215 "superType": "operator"
1219 "description": "Style for attributes"
1222 "id": "attributeBracket",
1223 "description": "Style for attribute invocation brackets, that is the `#[` and `]` tokens",
1224 "superType": "punctuation"
1228 "description": "Style for bitwise operators",
1229 "superType": "operator"
1233 "description": "Style for boolean literals",
1234 "superType": "keyword"
1238 "description": "Style for { or }",
1239 "superType": "punctuation"
1243 "description": "Style for [ or ]",
1244 "superType": "punctuation"
1247 "id": "builtinAttribute",
1248 "description": "Style for builtin attributes",
1249 "superType": "attribute"
1252 "id": "builtinType",
1253 "description": "Style for builtin types",
1258 "description": "Style for character literals",
1259 "superType": "string"
1263 "description": "Style for :",
1264 "superType": "punctuation"
1268 "description": "Style for ,",
1269 "superType": "punctuation"
1273 "description": "Style for comparison operators",
1274 "superType": "operator"
1277 "id": "constParameter",
1278 "description": "Style for const generics"
1282 "description": "Style for derives",
1283 "superType": "attribute"
1287 "description": "Style for .",
1288 "superType": "punctuation"
1291 "id": "escapeSequence",
1292 "description": "Style for char escapes in strings"
1295 "id": "formatSpecifier",
1296 "description": "Style for {} placeholders in format strings"
1300 "description": "Style for labels"
1304 "description": "Style for lifetimes"
1308 "description": "Style for logic operators",
1309 "superType": "operator"
1313 "description": "Style for the ! token of macro calls",
1314 "superType": "punctuation"
1318 "description": "Style for operators",
1319 "superType": "punctuation"
1322 "id": "parenthesis",
1323 "description": "Style for ( or )",
1324 "superType": "punctuation"
1327 "id": "punctuation",
1328 "description": "Style for generic punctuation"
1331 "id": "selfKeyword",
1332 "description": "Style for the self keyword",
1333 "superType": "keyword"
1336 "id": "selfTypeKeyword",
1337 "description": "Style for the self type keyword",
1338 "superType": "keyword"
1342 "description": "Style for ;",
1343 "superType": "punctuation"
1347 "description": "Style for type aliases",
1352 "description": "Style for C-style untagged unions",
1356 "id": "unresolvedReference",
1357 "description": "Style for names which can not be resolved due to compilation errors"
1360 "semanticTokenModifiers": [
1363 "description": "Style for async functions and the `async` and `await` keywords"
1367 "description": "Style for elements within attributes"
1371 "description": "Style for locals whose types implements one of the `Fn*` traits"
1375 "description": "Style for compile-time constants"
1379 "description": "Style for locals that are being consumed when use in a function call"
1382 "id": "controlFlow",
1383 "description": "Style for control-flow related tokens, this includes the `?` operator"
1387 "description": "Style for names resolving to a crate root"
1391 "description": "Style for doc-string injected highlighting like rust source blocks in documentation"
1394 "id": "intraDocLink",
1395 "description": "Style for intra doc links in doc-strings"
1399 "description": "Style for items that are defined outside of the current crate"
1403 "description": "Style for mutable locals and statics as well as functions taking `&mut self`"
1407 "description": "Style tems that are from the current crate and are `pub`"
1411 "description": "Style for locals behind a reference and functions taking `self` by reference"
1415 "description": "Style for associated trait items"
1419 "description": "Style for unsafe operations, like unsafe function calls, as well as the `unsafe` token"
1422 "semanticTokenScopes": [
1427 "meta.attribute.rust"
1430 "constant.language.boolean.rust"
1433 "support.type.primitive.rust"
1436 "constant.other.caps.rust"
1439 "entity.name.type.enum.rust"
1441 "formatSpecifier": [
1442 "punctuation.section.embedded.rust"
1445 "entity.name.function.rust"
1448 "entity.name.type.trait.rust"
1451 "keyword.other.rust"
1453 "keyword.controlFlow": [
1454 "keyword.control.rust"
1457 "storage.modifier.lifetime.rust"
1460 "entity.name.function.macro.rust"
1463 "entity.name.function.rust"
1466 "entity.name.type.struct.rust"
1469 "entity.name.type.declaration.rust"
1472 "entity.name.type.union.rust"
1475 "variable.other.rust"
1477 "variable.constant": [
1478 "variable.other.constant.rust"
1489 "command": "rust-analyzer.syntaxTree",
1490 "when": "inRustProject"
1493 "command": "rust-analyzer.viewHir",
1494 "when": "inRustProject"
1497 "command": "rust-analyzer.viewFileText",
1498 "when": "inRustProject"
1501 "command": "rust-analyzer.expandMacro",
1502 "when": "inRustProject"
1505 "command": "rust-analyzer.matchingBrace",
1506 "when": "inRustProject"
1509 "command": "rust-analyzer.parentModule",
1510 "when": "inRustProject"
1513 "command": "rust-analyzer.joinLines",
1514 "when": "inRustProject"
1517 "command": "rust-analyzer.run",
1518 "when": "inRustProject"
1521 "command": "rust-analyzer.debug",
1522 "when": "inRustProject"
1525 "command": "rust-analyzer.newDebugConfig",
1526 "when": "inRustProject"
1529 "command": "rust-analyzer.analyzerStatus",
1530 "when": "inRustProject"
1533 "command": "rust-analyzer.memoryUsage",
1534 "when": "inRustProject"
1537 "command": "rust-analyzer.reloadWorkspace",
1538 "when": "inRustProject"
1541 "command": "rust-analyzer.reload",
1542 "when": "inRustProject"
1545 "command": "rust-analyzer.onEnter",
1546 "when": "inRustProject"
1549 "command": "rust-analyzer.ssr",
1550 "when": "inRustProject"
1553 "command": "rust-analyzer.serverVersion",
1554 "when": "inRustProject"
1557 "command": "rust-analyzer.toggleInlayHints",
1558 "when": "inRustProject"
1561 "command": "rust-analyzer.openDocs",
1562 "when": "inRustProject"
1565 "command": "rust-analyzer.openCargoToml",
1566 "when": "inRustProject"
1571 "command": "rust-analyzer.peekTests",
1572 "when": "inRustProject",
1573 "group": "navigation@1000"