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": "tsfmt --verify && eslint -c .eslintrc.js --ext ts ./src ./tests",
33 "fix": " tsfmt -r && 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",
55 "typescript-formatter": "^7.2.2",
60 "onCommand:rust-analyzer.analyzerStatus",
61 "onCommand:rust-analyzer.memoryUsage",
62 "onCommand:rust-analyzer.reloadWorkspace",
63 "workspaceContains:*/Cargo.toml",
64 "workspaceContains:*/rust-project.json"
89 "patternProperties": {
100 "command": "rust-analyzer.syntaxTree",
101 "title": "Show Syntax Tree",
102 "category": "Rust Analyzer"
105 "command": "rust-analyzer.viewHir",
107 "category": "Rust Analyzer"
110 "command": "rust-analyzer.viewFileText",
111 "title": "View File Text (as seen by the server)",
112 "category": "Rust Analyzer"
115 "command": "rust-analyzer.viewItemTree",
116 "title": "Debug ItemTree",
117 "category": "Rust Analyzer"
120 "command": "rust-analyzer.viewCrateGraph",
121 "title": "View Crate Graph",
122 "category": "Rust Analyzer"
125 "command": "rust-analyzer.viewFullCrateGraph",
126 "title": "View Crate Graph (Full)",
127 "category": "Rust Analyzer"
130 "command": "rust-analyzer.expandMacro",
131 "title": "Expand macro recursively",
132 "category": "Rust Analyzer"
135 "command": "rust-analyzer.matchingBrace",
136 "title": "Find matching brace",
137 "category": "Rust Analyzer"
140 "command": "rust-analyzer.parentModule",
141 "title": "Locate parent module",
142 "category": "Rust Analyzer"
145 "command": "rust-analyzer.joinLines",
146 "title": "Join lines",
147 "category": "Rust Analyzer"
150 "command": "rust-analyzer.run",
152 "category": "Rust Analyzer"
155 "command": "rust-analyzer.copyRunCommandLine",
156 "title": "Copy Run Command Line",
157 "category": "Rust Analyzer"
160 "command": "rust-analyzer.debug",
162 "category": "Rust Analyzer"
165 "command": "rust-analyzer.newDebugConfig",
166 "title": "Generate launch configuration",
167 "category": "Rust Analyzer"
170 "command": "rust-analyzer.analyzerStatus",
172 "category": "Rust Analyzer"
175 "command": "rust-analyzer.memoryUsage",
176 "title": "Memory Usage (Clears Database)",
177 "category": "Rust Analyzer"
180 "command": "rust-analyzer.shuffleCrateGraph",
181 "title": "Shuffle Crate Graph",
182 "category": "Rust Analyzer"
185 "command": "rust-analyzer.reloadWorkspace",
186 "title": "Reload workspace",
187 "category": "Rust Analyzer"
190 "command": "rust-analyzer.reload",
191 "title": "Restart server",
192 "category": "Rust Analyzer"
195 "command": "rust-analyzer.onEnter",
196 "title": "Enhanced enter key",
197 "category": "Rust Analyzer"
200 "command": "rust-analyzer.ssr",
201 "title": "Structural Search Replace",
202 "category": "Rust Analyzer"
205 "command": "rust-analyzer.serverVersion",
206 "title": "Show RA Version",
207 "category": "Rust Analyzer"
210 "command": "rust-analyzer.toggleInlayHints",
211 "title": "Toggle inlay hints",
212 "category": "Rust Analyzer"
215 "command": "rust-analyzer.openDocs",
216 "title": "Open docs under cursor",
217 "category": "Rust Analyzer"
220 "command": "rust-analyzer.openCargoToml",
221 "title": "Open Cargo.toml",
222 "category": "Rust Analyzer"
225 "command": "rust-analyzer.peekTests",
226 "title": "Peek related tests",
227 "category": "Rust Analyzer"
230 "command": "rust-analyzer.moveItemUp",
231 "title": "Move item up",
232 "category": "Rust Analyzer"
235 "command": "rust-analyzer.moveItemDown",
236 "title": "Move item down",
237 "category": "Rust Analyzer"
242 "command": "rust-analyzer.parentModule",
243 "key": "ctrl+shift+u",
244 "when": "editorTextFocus && editorLangId == rust"
247 "command": "rust-analyzer.matchingBrace",
248 "key": "ctrl+shift+m",
249 "when": "editorTextFocus && editorLangId == rust"
252 "command": "rust-analyzer.joinLines",
253 "key": "ctrl+shift+j",
254 "when": "editorTextFocus && editorLangId == rust"
259 "title": "Rust Analyzer",
261 "rust-analyzer.cargoRunner": {
267 "description": "Custom cargo runner extension ID."
269 "rust-analyzer.runnableEnv": {
281 "description": "Runnable name mask"
285 "description": "Variables in form of { \"key\": \"value\"}"
292 "description": "Variables in form of { \"key\": \"value\"}"
296 "markdownDescription": "Environment variables passed to the runnable launched using `Test` or `Debug` lens or `rust-analyzer.run` command."
298 "rust-analyzer.server.path": {
303 "scope": "machine-overridable",
305 "markdownDescription": "Path to rust-analyzer executable (points to bundled binary by default)."
307 "rust-analyzer.server.extraEnv": {
313 "markdownDescription": "Extra environment variables that will be passed to the rust-analyzer executable. Useful for passing e.g. `RA_LOG` for debugging."
315 "rust-analyzer.trace.server": {
323 "enumDescriptions": [
329 "description": "Trace requests to the rust-analyzer (this is usually overly verbose and not recommended for regular users)."
331 "rust-analyzer.trace.extension": {
332 "description": "Enable logging of VS Code extensions itself.",
336 "rust-analyzer.debug.engine": {
340 "vadimcn.vscode-lldb",
344 "description": "Preferred debug engine.",
345 "markdownEnumDescriptions": [
346 "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).",
347 "Use [CodeLLDB](https://marketplace.visualstudio.com/items?itemName=vadimcn.vscode-lldb)",
348 "Use [MS C++ tools](https://marketplace.visualstudio.com/items?itemName=ms-vscode.cpptools)"
351 "rust-analyzer.debug.sourceFileMap": {
357 "description": "Optional source file mappings passed to the debug engine.",
359 "/rustc/<id>": "${env:USERPROFILE}/.rustup/toolchains/<toolchain-id>/lib/rustlib/src/rust"
362 "rust-analyzer.debug.openDebugPane": {
363 "markdownDescription": "Whether to open up the `Debug Panel` on debugging start.",
367 "rust-analyzer.debug.engineSettings": {
370 "markdownDescription": "Optional settings passed to the debug engine. Example: `{ \"lldb\": { \"terminal\":\"external\"} }`"
372 "$generated-start": {},
373 "rust-analyzer.assist.expressionFillDefault": {
374 "markdownDescription": "Placeholder expression to use for missing expressions in assists.",
381 "enumDescriptions": [
382 "Fill missing expressions with the `todo` macro",
383 "Fill missing expressions with reasonable defaults, `new` or `default` constructors."
386 "rust-analyzer.cachePriming.enable": {
387 "markdownDescription": "Warm up caches on project load.",
391 "rust-analyzer.cachePriming.numThreads": {
392 "markdownDescription": "How many worker threads to to handle priming caches. The default `0` means to pick automatically.",
398 "rust-analyzer.cargo.autoreload": {
399 "markdownDescription": "Automatically refresh project info via `cargo metadata` on\n`Cargo.toml` or `.cargo/config.toml` changes.",
403 "rust-analyzer.cargo.buildScripts.enable": {
404 "markdownDescription": "Run build scripts (`build.rs`) for more precise code analysis.",
408 "rust-analyzer.cargo.buildScripts.overrideCommand": {
409 "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.",
419 "rust-analyzer.cargo.buildScripts.useRustcWrapper": {
420 "markdownDescription": "Use `RUSTC_WRAPPER=rust-analyzer` when running build scripts to\navoid compiling unnecessary things.",
424 "rust-analyzer.cargo.features": {
425 "markdownDescription": "List of features to activate.\n\nSet this to `\"all\"` to pass `--all-features` to cargo.",
433 "enumDescriptions": [
434 "Pass `--all-features` to cargo"
445 "rust-analyzer.cargo.noDefaultFeatures": {
446 "markdownDescription": "Whether to pass `--no-default-features` to cargo.",
450 "rust-analyzer.cargo.noSysroot": {
451 "markdownDescription": "Internal config for debugging, disables loading of sysroot crates.",
455 "rust-analyzer.cargo.target": {
456 "markdownDescription": "Compilation target override (target triple).",
463 "rust-analyzer.cargo.unsetTest": {
464 "markdownDescription": "Unsets `#[cfg(test)]` for the specified crates.",
473 "rust-analyzer.checkOnSave.allTargets": {
474 "markdownDescription": "Check all targets and tests (`--all-targets`).",
478 "rust-analyzer.checkOnSave.command": {
479 "markdownDescription": "Cargo command to use for `cargo check`.",
483 "rust-analyzer.checkOnSave.enable": {
484 "markdownDescription": "Run specified `cargo check` command for diagnostics on save.",
488 "rust-analyzer.checkOnSave.extraArgs": {
489 "markdownDescription": "Extra arguments for `cargo check`.",
496 "rust-analyzer.checkOnSave.features": {
497 "markdownDescription": "List of features to activate. Defaults to\n`#rust-analyzer.cargo.features#`.\n\nSet to `\"all\"` to pass `--all-features` to cargo.",
505 "enumDescriptions": [
506 "Pass `--all-features` to cargo"
520 "rust-analyzer.checkOnSave.noDefaultFeatures": {
521 "markdownDescription": "Whether to pass `--no-default-features` to cargo. Defaults to\n`#rust-analyzer.cargo.noDefaultFeatures#`.",
528 "rust-analyzer.checkOnSave.overrideCommand": {
529 "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.",
539 "rust-analyzer.checkOnSave.target": {
540 "markdownDescription": "Check for a specific target. Defaults to\n`#rust-analyzer.cargo.target#`.",
547 "rust-analyzer.completion.autoimport.enable": {
548 "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.",
552 "rust-analyzer.completion.autoself.enable": {
553 "markdownDescription": "Toggles the additional completions that automatically show method calls and field accesses\nwith `self` prefixed to them when inside a method.",
557 "rust-analyzer.completion.callable.snippets": {
558 "markdownDescription": "Whether to add parenthesis and argument snippets when completing function.",
559 "default": "fill_arguments",
566 "enumDescriptions": [
567 "Add call parentheses and pre-fill arguments.",
568 "Add call parentheses.",
569 "Do no snippet completions for callables."
572 "rust-analyzer.completion.postfix.enable": {
573 "markdownDescription": "Whether to show postfix snippets like `dbg`, `if`, `not`, etc.",
577 "rust-analyzer.completion.privateEditable.enable": {
578 "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.",
582 "rust-analyzer.completion.snippets.custom": {
583 "markdownDescription": "Custom completion snippets.",
587 "body": "Arc::new(${receiver})",
588 "requires": "std::sync::Arc",
589 "description": "Put the expression into an `Arc`",
594 "body": "Rc::new(${receiver})",
595 "requires": "std::rc::Rc",
596 "description": "Put the expression into an `Rc`",
601 "body": "Box::pin(${receiver})",
602 "requires": "std::boxed::Box",
603 "description": "Put the expression into a pinned `Box`",
608 "body": "Ok(${receiver})",
609 "description": "Wrap the expression in a `Result::Ok`",
614 "body": "Err(${receiver})",
615 "description": "Wrap the expression in a `Result::Err`",
620 "body": "Some(${receiver})",
621 "description": "Wrap the expression in an `Option::Some`",
627 "rust-analyzer.diagnostics.disabled": {
628 "markdownDescription": "List of rust-analyzer diagnostics to disable.",
636 "rust-analyzer.diagnostics.enable": {
637 "markdownDescription": "Whether to show native rust-analyzer diagnostics.",
641 "rust-analyzer.diagnostics.experimental.enable": {
642 "markdownDescription": "Whether to show experimental rust-analyzer diagnostics that might\nhave more false positives than usual.",
646 "rust-analyzer.diagnostics.remapPrefix": {
647 "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`.",
651 "rust-analyzer.diagnostics.warningsAsHint": {
652 "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`.",
659 "rust-analyzer.diagnostics.warningsAsInfo": {
660 "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`.",
667 "rust-analyzer.files.excludeDirs": {
668 "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`.",
675 "rust-analyzer.files.watcher": {
676 "markdownDescription": "Controls file watching implementation.",
680 "rust-analyzer.highlightRelated.breakPoints.enable": {
681 "markdownDescription": "Enables highlighting of related references while the cursor is on `break`, `loop`, `while`, or `for` keywords.",
685 "rust-analyzer.highlightRelated.exitPoints.enable": {
686 "markdownDescription": "Enables highlighting of all exit points while the cursor is on any `return`, `?`, `fn`, or return type arrow (`->`).",
690 "rust-analyzer.highlightRelated.references.enable": {
691 "markdownDescription": "Enables highlighting of related references while the cursor is on any identifier.",
695 "rust-analyzer.highlightRelated.yieldPoints.enable": {
696 "markdownDescription": "Enables highlighting of all break points for a loop or block context while the cursor is on any `async` or `await` keywords.",
700 "rust-analyzer.hover.actions.debug.enable": {
701 "markdownDescription": "Whether to show `Debug` action. Only applies when\n`#rust-analyzer.hover.actions.enable#` is set.",
705 "rust-analyzer.hover.actions.enable": {
706 "markdownDescription": "Whether to show HoverActions in Rust files.",
710 "rust-analyzer.hover.actions.gotoTypeDef.enable": {
711 "markdownDescription": "Whether to show `Go to Type Definition` action. Only applies when\n`#rust-analyzer.hover.actions.enable#` is set.",
715 "rust-analyzer.hover.actions.implementations.enable": {
716 "markdownDescription": "Whether to show `Implementations` action. Only applies when\n`#rust-analyzer.hover.actions.enable#` is set.",
720 "rust-analyzer.hover.actions.references.enable": {
721 "markdownDescription": "Whether to show `References` action. Only applies when\n`#rust-analyzer.hover.actions.enable#` is set.",
725 "rust-analyzer.hover.actions.run.enable": {
726 "markdownDescription": "Whether to show `Run` action. Only applies when\n`#rust-analyzer.hover.actions.enable#` is set.",
730 "rust-analyzer.hover.documentation.enable": {
731 "markdownDescription": "Whether to show documentation on hover.",
735 "rust-analyzer.hover.links.enable": {
736 "markdownDescription": "Use markdown syntax for links in hover.",
740 "rust-analyzer.imports.granularity.enforce": {
741 "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.",
745 "rust-analyzer.imports.granularity.group": {
746 "markdownDescription": "How imports should be grouped into use statements.",
755 "enumDescriptions": [
756 "Do not change the granularity of any imports and preserve the original structure written by the developer.",
757 "Merge imports from the same crate into a single use statement. Conversely, imports from different crates are split into separate statements.",
758 "Merge imports from the same module into a single use statement. Conversely, imports from different modules are split into separate statements.",
759 "Flatten imports so that each has its own use statement."
762 "rust-analyzer.imports.group.enable": {
763 "markdownDescription": "Group inserted imports by the [following order](https://rust-analyzer.github.io/manual.html#auto-import). Groups are separated by newlines.",
767 "rust-analyzer.imports.merge.glob": {
768 "markdownDescription": "Whether to allow import insertion to merge new imports into single path glob imports like `use std::fmt::*;`.",
772 "rust-analyzer.imports.prefix": {
773 "markdownDescription": "The path structure for newly inserted paths to use.",
781 "enumDescriptions": [
782 "Insert import paths relative to the current module, using up to one `super` prefix if the parent module contains the requested item.",
783 "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.",
784 "Force import paths to be absolute by always starting them with `crate` or the extern crate name they come from."
787 "rust-analyzer.inlayHints.bindingModeHints.enable": {
788 "markdownDescription": "Whether to show inlay type hints for binding modes.",
792 "rust-analyzer.inlayHints.chainingHints.enable": {
793 "markdownDescription": "Whether to show inlay type hints for method chains.",
797 "rust-analyzer.inlayHints.closingBraceHints.enable": {
798 "markdownDescription": "Whether to show inlay hints after a closing `}` to indicate what item it belongs to.",
802 "rust-analyzer.inlayHints.closingBraceHints.minLines": {
803 "markdownDescription": "Minimum number of lines required before the `}` until the hint is shown (set to 0 or 1\nto always show them).",
808 "rust-analyzer.inlayHints.closureReturnTypeHints.enable": {
809 "markdownDescription": "Whether to show inlay type hints for return types of closures with blocks.",
813 "rust-analyzer.inlayHints.lifetimeElisionHints.enable": {
814 "markdownDescription": "Whether to show inlay type hints for elided lifetimes in function signatures.",
822 "enumDescriptions": [
823 "Always show lifetime elision hints.",
824 "Never show lifetime elision hints.",
825 "Only show lifetime elision hints if a return type is involved."
828 "rust-analyzer.inlayHints.lifetimeElisionHints.useParameterNames": {
829 "markdownDescription": "Whether to prefer using parameter names as the name for elided lifetime hints if possible.",
833 "rust-analyzer.inlayHints.maxLength": {
834 "markdownDescription": "Maximum length for inlay hints. Set to null to have an unlimited length.",
842 "rust-analyzer.inlayHints.parameterHints.enable": {
843 "markdownDescription": "Whether to show function parameter name inlay hints at the call\nsite.",
847 "rust-analyzer.inlayHints.reborrowHints.enable": {
848 "markdownDescription": "Whether to show inlay type hints for compiler inserted reborrows.",
856 "enumDescriptions": [
857 "Always show reborrow hints.",
858 "Never show reborrow hints.",
859 "Only show mutable reborrow hints."
862 "rust-analyzer.inlayHints.renderColons": {
863 "markdownDescription": "Whether to render leading colons for type hints, and trailing colons for parameter hints.",
867 "rust-analyzer.inlayHints.typeHints.enable": {
868 "markdownDescription": "Whether to show inlay type hints for variables.",
872 "rust-analyzer.inlayHints.typeHints.hideNamedConstructor": {
873 "markdownDescription": "Whether to hide inlay type hints for constructors.",
877 "rust-analyzer.joinLines.joinAssignments": {
878 "markdownDescription": "Join lines merges consecutive declaration and initialization of an assignment.",
882 "rust-analyzer.joinLines.joinElseIf": {
883 "markdownDescription": "Join lines inserts else between consecutive ifs.",
887 "rust-analyzer.joinLines.removeTrailingComma": {
888 "markdownDescription": "Join lines removes trailing commas.",
892 "rust-analyzer.joinLines.unwrapTrivialBlock": {
893 "markdownDescription": "Join lines unwraps trivial blocks.",
897 "rust-analyzer.lens.debug.enable": {
898 "markdownDescription": "Whether to show `Debug` lens. Only applies when\n`#rust-analyzer.lens.enable#` is set.",
902 "rust-analyzer.lens.enable": {
903 "markdownDescription": "Whether to show CodeLens in Rust files.",
907 "rust-analyzer.lens.forceCustomCommands": {
908 "markdownDescription": "Internal config: use custom client-side commands even when the\nclient doesn't set the corresponding capability.",
912 "rust-analyzer.lens.implementations.enable": {
913 "markdownDescription": "Whether to show `Implementations` lens. Only applies when\n`#rust-analyzer.lens.enable#` is set.",
917 "rust-analyzer.lens.references.adt.enable": {
918 "markdownDescription": "Whether to show `References` lens for Struct, Enum, and Union.\nOnly applies when `#rust-analyzer.lens.enable#` is set.",
922 "rust-analyzer.lens.references.enumVariant.enable": {
923 "markdownDescription": "Whether to show `References` lens for Enum Variants.\nOnly applies when `#rust-analyzer.lens.enable#` is set.",
927 "rust-analyzer.lens.references.method.enable": {
928 "markdownDescription": "Whether to show `Method References` lens. Only applies when\n`#rust-analyzer.lens.enable#` is set.",
932 "rust-analyzer.lens.references.trait.enable": {
933 "markdownDescription": "Whether to show `References` lens for Trait.\nOnly applies when `#rust-analyzer.lens.enable#` is set.",
937 "rust-analyzer.lens.run.enable": {
938 "markdownDescription": "Whether to show `Run` lens. Only applies when\n`#rust-analyzer.lens.enable#` is set.",
942 "rust-analyzer.linkedProjects": {
943 "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.",
953 "rust-analyzer.lru.capacity": {
954 "markdownDescription": "Number of syntax trees rust-analyzer keeps in memory. Defaults to 128.",
962 "rust-analyzer.notifications.cargoTomlNotFound": {
963 "markdownDescription": "Whether to show `can't find Cargo.toml` error message.",
967 "rust-analyzer.procMacro.attributes.enable": {
968 "markdownDescription": "Expand attribute macros. Requires `#rust-analyzer.procMacro.enable#` to be set.",
972 "rust-analyzer.procMacro.enable": {
973 "markdownDescription": "Enable support for procedural macros, implies `#rust-analyzer.cargo.buildScripts.enable#`.",
977 "rust-analyzer.procMacro.ignored": {
978 "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.",
982 "rust-analyzer.procMacro.server": {
983 "markdownDescription": "Internal config, path to proc-macro server executable (typically,\nthis is rust-analyzer itself, but we override this in tests).",
990 "rust-analyzer.runnables.command": {
991 "markdownDescription": "Command to be executed instead of 'cargo' for runnables.",
998 "rust-analyzer.runnables.extraArgs": {
999 "markdownDescription": "Additional arguments to be passed to cargo for runnables such as\ntests or binaries. For example, it may be `--release`.",
1006 "rust-analyzer.rustc.source": {
1007 "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.",
1014 "rust-analyzer.rustfmt.extraArgs": {
1015 "markdownDescription": "Additional arguments to `rustfmt`.",
1022 "rust-analyzer.rustfmt.overrideCommand": {
1023 "markdownDescription": "Advanced option, fully override the command rust-analyzer uses for\nformatting.",
1033 "rust-analyzer.rustfmt.rangeFormatting.enable": {
1034 "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.",
1038 "rust-analyzer.semanticHighlighting.strings.enable": {
1039 "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.",
1043 "rust-analyzer.signatureInfo.detail": {
1044 "markdownDescription": "Show full signature of the callable. Only shows parameters if disabled.",
1051 "enumDescriptions": [
1052 "Show the entire signature.",
1053 "Show only the parameters."
1056 "rust-analyzer.signatureInfo.documentation.enable": {
1057 "markdownDescription": "Show documentation.",
1061 "rust-analyzer.workspace.symbol.search.kind": {
1062 "markdownDescription": "Workspace symbol search kind.",
1063 "default": "only_types",
1069 "enumDescriptions": [
1070 "Search for types only.",
1071 "Search for all symbols kinds."
1074 "rust-analyzer.workspace.symbol.search.limit": {
1075 "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.",
1080 "rust-analyzer.workspace.symbol.search.scope": {
1081 "markdownDescription": "Workspace symbol search scope.",
1082 "default": "workspace",
1086 "workspace_and_dependencies"
1088 "enumDescriptions": [
1089 "Search in current workspace only.",
1090 "Search in current workspace and dependencies."
1093 "$generated-end": {}
1096 "problemPatterns": [
1101 "regexp": "^(warning|warn|error)(?:\\[(.*?)\\])?: (.*)$",
1107 "regexp": "^[\\s->=]*(.*?):(\\d*):(\\d*)\\s*$",
1115 "name": "rustc-json",
1118 "regexp": "^.*\"message\":{\"message\":\"([^\"]*).*?\"file_name\":\"([^\"]+).*?\"line_start\":(\\d+).*?\"line_end\":(\\d+).*?\"column_start\":(\\d+).*?\"column_end\":(\\d+).*}$",
1131 "id": "ra_syntax_tree",
1145 "configuration": "language-configuration.json"
1150 "language": "ra_syntax_tree",
1151 "scopeName": "source.ra_syntax_tree",
1152 "path": "ra_syntax_tree.tmGrammar.json"
1155 "problemMatchers": [
1167 "name": "rustc-json",
1174 "pattern": "$rustc-json"
1177 "name": "rustc-watch",
1185 "beginsPattern": "^\\[Running\\b",
1186 "endsPattern": "^\\[Finished running\\b"
1193 "id": "rust_analyzer.syntaxTreeBorder",
1194 "description": "Color of the border displayed in the Rust source code for the selected syntax node (see \"Show Syntax Tree\" command)",
1198 "highContrast": "#b700ff"
1202 "semanticTokenTypes": [
1205 "description": "Style for < or >",
1206 "superType": "punctuation"
1210 "description": "Style for arithmetic operators",
1211 "superType": "operator"
1215 "description": "Style for attributes"
1218 "id": "attributeBracket",
1219 "description": "Style for attribute invocation brackets, that is the `#[` and `]` tokens",
1220 "superType": "punctuation"
1224 "description": "Style for bitwise operators",
1225 "superType": "operator"
1229 "description": "Style for boolean literals",
1230 "superType": "keyword"
1234 "description": "Style for { or }",
1235 "superType": "punctuation"
1239 "description": "Style for [ or ]",
1240 "superType": "punctuation"
1243 "id": "builtinAttribute",
1244 "description": "Style for builtin attributes",
1245 "superType": "attribute"
1248 "id": "builtinType",
1249 "description": "Style for builtin types",
1254 "description": "Style for character literals",
1255 "superType": "string"
1259 "description": "Style for :",
1260 "superType": "punctuation"
1264 "description": "Style for ,",
1265 "superType": "punctuation"
1269 "description": "Style for comparison operators",
1270 "superType": "operator"
1273 "id": "constParameter",
1274 "description": "Style for const generics"
1278 "description": "Style for derives",
1279 "superType": "attribute"
1283 "description": "Style for .",
1284 "superType": "punctuation"
1287 "id": "escapeSequence",
1288 "description": "Style for char escapes in strings"
1291 "id": "formatSpecifier",
1292 "description": "Style for {} placeholders in format strings"
1296 "description": "Style for labels"
1300 "description": "Style for lifetimes"
1304 "description": "Style for logic operators",
1305 "superType": "operator"
1309 "description": "Style for the ! token of macro calls",
1310 "superType": "punctuation"
1314 "description": "Style for operators",
1315 "superType": "punctuation"
1318 "id": "parenthesis",
1319 "description": "Style for ( or )",
1320 "superType": "punctuation"
1323 "id": "punctuation",
1324 "description": "Style for generic punctuation"
1327 "id": "selfKeyword",
1328 "description": "Style for the self keyword",
1329 "superType": "keyword"
1332 "id": "selfTypeKeyword",
1333 "description": "Style for the self type keyword",
1334 "superType": "keyword"
1338 "description": "Style for ;",
1339 "superType": "punctuation"
1343 "description": "Style for type aliases",
1348 "description": "Style for C-style untagged unions",
1352 "id": "unresolvedReference",
1353 "description": "Style for names which can not be resolved due to compilation errors"
1356 "semanticTokenModifiers": [
1359 "description": "Style for async functions and the `async` and `await` keywords"
1363 "description": "Style for elements within attributes"
1367 "description": "Style for locals whose types implements one of the `Fn*` traits"
1371 "description": "Style for compile-time constants"
1375 "description": "Style for locals that are being consumed when use in a function call"
1378 "id": "controlFlow",
1379 "description": "Style for control-flow related tokens, this includes the `?` operator"
1383 "description": "Style for names resolving to a crate root"
1387 "description": "Style for doc-string injected highlighting like rust source blocks in documentation"
1390 "id": "intraDocLink",
1391 "description": "Style for intra doc links in doc-strings"
1395 "description": "Style for items that are defined outside of the current crate"
1399 "description": "Style for mutable locals and statics as well as functions taking `&mut self`"
1403 "description": "Style tems that are from the current crate and are `pub`"
1407 "description": "Style for locals behind a reference and functions taking `self` by reference"
1411 "description": "Style for associated trait items"
1415 "description": "Style for unsafe operations, like unsafe function calls, as well as the `unsafe` token"
1418 "semanticTokenScopes": [
1423 "meta.attribute.rust"
1426 "constant.language.boolean.rust"
1429 "support.type.primitive.rust"
1432 "constant.other.caps.rust"
1435 "entity.name.type.enum.rust"
1437 "formatSpecifier": [
1438 "punctuation.section.embedded.rust"
1441 "entity.name.function.rust"
1444 "entity.name.type.trait.rust"
1447 "keyword.other.rust"
1449 "keyword.controlFlow": [
1450 "keyword.control.rust"
1453 "storage.modifier.lifetime.rust"
1456 "entity.name.function.macro.rust"
1459 "entity.name.function.rust"
1462 "entity.name.type.struct.rust"
1465 "entity.name.type.declaration.rust"
1468 "entity.name.type.union.rust"
1471 "variable.other.rust"
1473 "variable.constant": [
1474 "variable.other.constant.rust"
1485 "command": "rust-analyzer.syntaxTree",
1486 "when": "inRustProject"
1489 "command": "rust-analyzer.viewHir",
1490 "when": "inRustProject"
1493 "command": "rust-analyzer.viewFileText",
1494 "when": "inRustProject"
1497 "command": "rust-analyzer.expandMacro",
1498 "when": "inRustProject"
1501 "command": "rust-analyzer.matchingBrace",
1502 "when": "inRustProject"
1505 "command": "rust-analyzer.parentModule",
1506 "when": "inRustProject"
1509 "command": "rust-analyzer.joinLines",
1510 "when": "inRustProject"
1513 "command": "rust-analyzer.run",
1514 "when": "inRustProject"
1517 "command": "rust-analyzer.debug",
1518 "when": "inRustProject"
1521 "command": "rust-analyzer.newDebugConfig",
1522 "when": "inRustProject"
1525 "command": "rust-analyzer.analyzerStatus",
1526 "when": "inRustProject"
1529 "command": "rust-analyzer.memoryUsage",
1530 "when": "inRustProject"
1533 "command": "rust-analyzer.reloadWorkspace",
1534 "when": "inRustProject"
1537 "command": "rust-analyzer.reload",
1538 "when": "inRustProject"
1541 "command": "rust-analyzer.onEnter",
1542 "when": "inRustProject"
1545 "command": "rust-analyzer.ssr",
1546 "when": "inRustProject"
1549 "command": "rust-analyzer.serverVersion",
1550 "when": "inRustProject"
1553 "command": "rust-analyzer.toggleInlayHints",
1554 "when": "inRustProject"
1557 "command": "rust-analyzer.openDocs",
1558 "when": "inRustProject"
1561 "command": "rust-analyzer.openCargoToml",
1562 "when": "inRustProject"
1567 "command": "rust-analyzer.peekTests",
1568 "when": "inRustProject",
1569 "group": "navigation@1000"