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.1",
40 "vscode-languageclient": "^8.0.0-next.14"
43 "@types/node": "~16.11.7",
44 "@types/vscode": "~1.66.0",
45 "@typescript-eslint/eslint-plugin": "^5.30.5",
46 "@typescript-eslint/parser": "^5.30.5",
47 "@vscode/test-electron": "^2.1.5",
48 "cross-env": "^7.0.3",
49 "esbuild": "^0.14.48",
51 "eslint-config-prettier": "^8.5.0",
55 "typescript": "^4.7.4",
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": {
312 "additionalProperties": {
319 "markdownDescription": "Extra environment variables that will be passed to the rust-analyzer executable. Useful for passing e.g. `RA_LOG` for debugging."
321 "rust-analyzer.trace.server": {
329 "enumDescriptions": [
335 "description": "Trace requests to the rust-analyzer (this is usually overly verbose and not recommended for regular users)."
337 "rust-analyzer.trace.extension": {
338 "description": "Enable logging of VS Code extensions itself.",
342 "rust-analyzer.debug.engine": {
346 "vadimcn.vscode-lldb",
350 "description": "Preferred debug engine.",
351 "markdownEnumDescriptions": [
352 "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).",
353 "Use [CodeLLDB](https://marketplace.visualstudio.com/items?itemName=vadimcn.vscode-lldb)",
354 "Use [MS C++ tools](https://marketplace.visualstudio.com/items?itemName=ms-vscode.cpptools)"
357 "rust-analyzer.debug.sourceFileMap": {
363 "description": "Optional source file mappings passed to the debug engine.",
365 "/rustc/<id>": "${env:USERPROFILE}/.rustup/toolchains/<toolchain-id>/lib/rustlib/src/rust"
368 "rust-analyzer.debug.openDebugPane": {
369 "markdownDescription": "Whether to open up the `Debug Panel` on debugging start.",
373 "rust-analyzer.debug.engineSettings": {
376 "markdownDescription": "Optional settings passed to the debug engine. Example: `{ \"lldb\": { \"terminal\":\"external\"} }`"
378 "rust-analyzer.restartServerOnConfigChange": {
379 "markdownDescription": "Whether to restart the server automatically when certain settings that require a restart are changed.",
383 "rust-analyzer.typing.continueCommentsOnNewline": {
384 "markdownDescription": "Whether to prefix newlines after comments with the corresponding comment prefix.",
388 "$generated-start": {},
389 "rust-analyzer.assist.expressionFillDefault": {
390 "markdownDescription": "Placeholder expression to use for missing expressions in assists.",
397 "enumDescriptions": [
398 "Fill missing expressions with the `todo` macro",
399 "Fill missing expressions with reasonable defaults, `new` or `default` constructors."
402 "rust-analyzer.cachePriming.enable": {
403 "markdownDescription": "Warm up caches on project load.",
407 "rust-analyzer.cachePriming.numThreads": {
408 "markdownDescription": "How many worker threads to handle priming caches. The default `0` means to pick automatically.",
414 "rust-analyzer.cargo.autoreload": {
415 "markdownDescription": "Automatically refresh project info via `cargo metadata` on\n`Cargo.toml` or `.cargo/config.toml` changes.",
419 "rust-analyzer.cargo.buildScripts.enable": {
420 "markdownDescription": "Run build scripts (`build.rs`) for more precise code analysis.",
424 "rust-analyzer.cargo.buildScripts.overrideCommand": {
425 "markdownDescription": "Override the command rust-analyzer uses to run build scripts and\nbuild procedural macros. The command is required to output json\nand should therefore 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.",
435 "rust-analyzer.cargo.buildScripts.useRustcWrapper": {
436 "markdownDescription": "Use `RUSTC_WRAPPER=rust-analyzer` when running build scripts to\navoid checking unnecessary things.",
440 "rust-analyzer.cargo.features": {
441 "markdownDescription": "List of features to activate.\n\nSet this to `\"all\"` to pass `--all-features` to cargo.",
449 "enumDescriptions": [
450 "Pass `--all-features` to cargo"
461 "rust-analyzer.cargo.noDefaultFeatures": {
462 "markdownDescription": "Whether to pass `--no-default-features` to cargo.",
466 "rust-analyzer.cargo.noSysroot": {
467 "markdownDescription": "Internal config for debugging, disables loading of sysroot crates.",
471 "rust-analyzer.cargo.target": {
472 "markdownDescription": "Compilation target override (target triple).",
479 "rust-analyzer.cargo.unsetTest": {
480 "markdownDescription": "Unsets `#[cfg(test)]` for the specified crates.",
489 "rust-analyzer.checkOnSave.allTargets": {
490 "markdownDescription": "Check all targets and tests (`--all-targets`).",
494 "rust-analyzer.checkOnSave.command": {
495 "markdownDescription": "Cargo command to use for `cargo check`.",
499 "rust-analyzer.checkOnSave.enable": {
500 "markdownDescription": "Run specified `cargo check` command for diagnostics on save.",
504 "rust-analyzer.checkOnSave.extraArgs": {
505 "markdownDescription": "Extra arguments for `cargo check`.",
512 "rust-analyzer.checkOnSave.features": {
513 "markdownDescription": "List of features to activate. Defaults to\n`#rust-analyzer.cargo.features#`.\n\nSet to `\"all\"` to pass `--all-features` to Cargo.",
521 "enumDescriptions": [
522 "Pass `--all-features` to cargo"
536 "rust-analyzer.checkOnSave.noDefaultFeatures": {
537 "markdownDescription": "Whether to pass `--no-default-features` to Cargo. Defaults to\n`#rust-analyzer.cargo.noDefaultFeatures#`.",
544 "rust-analyzer.checkOnSave.overrideCommand": {
545 "markdownDescription": "Override the command rust-analyzer uses instead of `cargo check` for\ndiagnostics on save. The command is required to output json and\nshould therefor include `--message-format=json` or a similar option.\n\nIf you're changing this because you're using some tool wrapping\nCargo, you might also want to change\n`#rust-analyzer.cargo.buildScripts.overrideCommand#`.\n\nAn example command would be:\n\n```bash\ncargo check --workspace --message-format=json --all-targets\n```\n.",
555 "rust-analyzer.checkOnSave.target": {
556 "markdownDescription": "Check for a specific target. Defaults to\n`#rust-analyzer.cargo.target#`.",
563 "rust-analyzer.completion.autoimport.enable": {
564 "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.",
568 "rust-analyzer.completion.autoself.enable": {
569 "markdownDescription": "Toggles the additional completions that automatically show method calls and field accesses\nwith `self` prefixed to them when inside a method.",
573 "rust-analyzer.completion.callable.snippets": {
574 "markdownDescription": "Whether to add parenthesis and argument snippets when completing function.",
575 "default": "fill_arguments",
582 "enumDescriptions": [
583 "Add call parentheses and pre-fill arguments.",
584 "Add call parentheses.",
585 "Do no snippet completions for callables."
588 "rust-analyzer.completion.postfix.enable": {
589 "markdownDescription": "Whether to show postfix snippets like `dbg`, `if`, `not`, etc.",
593 "rust-analyzer.completion.privateEditable.enable": {
594 "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.",
598 "rust-analyzer.completion.snippets.custom": {
599 "markdownDescription": "Custom completion snippets.",
603 "body": "Arc::new(${receiver})",
604 "requires": "std::sync::Arc",
605 "description": "Put the expression into an `Arc`",
610 "body": "Rc::new(${receiver})",
611 "requires": "std::rc::Rc",
612 "description": "Put the expression into an `Rc`",
617 "body": "Box::pin(${receiver})",
618 "requires": "std::boxed::Box",
619 "description": "Put the expression into a pinned `Box`",
624 "body": "Ok(${receiver})",
625 "description": "Wrap the expression in a `Result::Ok`",
630 "body": "Err(${receiver})",
631 "description": "Wrap the expression in a `Result::Err`",
636 "body": "Some(${receiver})",
637 "description": "Wrap the expression in an `Option::Some`",
643 "rust-analyzer.diagnostics.disabled": {
644 "markdownDescription": "List of rust-analyzer diagnostics to disable.",
652 "rust-analyzer.diagnostics.enable": {
653 "markdownDescription": "Whether to show native rust-analyzer diagnostics.",
657 "rust-analyzer.diagnostics.experimental.enable": {
658 "markdownDescription": "Whether to show experimental rust-analyzer diagnostics that might\nhave more false positives than usual.",
662 "rust-analyzer.diagnostics.remapPrefix": {
663 "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`.",
667 "rust-analyzer.diagnostics.warningsAsHint": {
668 "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`.",
675 "rust-analyzer.diagnostics.warningsAsInfo": {
676 "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`.",
683 "rust-analyzer.files.excludeDirs": {
684 "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`.",
691 "rust-analyzer.files.watcher": {
692 "markdownDescription": "Controls file watching implementation.",
699 "enumDescriptions": [
700 "Use the client (editor) to watch files for changes",
701 "Use server-side file watching"
704 "rust-analyzer.highlightRelated.breakPoints.enable": {
705 "markdownDescription": "Enables highlighting of related references while the cursor is on `break`, `loop`, `while`, or `for` keywords.",
709 "rust-analyzer.highlightRelated.exitPoints.enable": {
710 "markdownDescription": "Enables highlighting of all exit points while the cursor is on any `return`, `?`, `fn`, or return type arrow (`->`).",
714 "rust-analyzer.highlightRelated.references.enable": {
715 "markdownDescription": "Enables highlighting of related references while the cursor is on any identifier.",
719 "rust-analyzer.highlightRelated.yieldPoints.enable": {
720 "markdownDescription": "Enables highlighting of all break points for a loop or block context while the cursor is on any `async` or `await` keywords.",
724 "rust-analyzer.hover.actions.debug.enable": {
725 "markdownDescription": "Whether to show `Debug` action. Only applies when\n`#rust-analyzer.hover.actions.enable#` is set.",
729 "rust-analyzer.hover.actions.enable": {
730 "markdownDescription": "Whether to show HoverActions in Rust files.",
734 "rust-analyzer.hover.actions.gotoTypeDef.enable": {
735 "markdownDescription": "Whether to show `Go to Type Definition` action. Only applies when\n`#rust-analyzer.hover.actions.enable#` is set.",
739 "rust-analyzer.hover.actions.implementations.enable": {
740 "markdownDescription": "Whether to show `Implementations` action. Only applies when\n`#rust-analyzer.hover.actions.enable#` is set.",
744 "rust-analyzer.hover.actions.references.enable": {
745 "markdownDescription": "Whether to show `References` action. Only applies when\n`#rust-analyzer.hover.actions.enable#` is set.",
749 "rust-analyzer.hover.actions.run.enable": {
750 "markdownDescription": "Whether to show `Run` action. Only applies when\n`#rust-analyzer.hover.actions.enable#` is set.",
754 "rust-analyzer.hover.documentation.enable": {
755 "markdownDescription": "Whether to show documentation on hover.",
759 "rust-analyzer.hover.links.enable": {
760 "markdownDescription": "Use markdown syntax for links in hover.",
764 "rust-analyzer.imports.granularity.enforce": {
765 "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.",
769 "rust-analyzer.imports.granularity.group": {
770 "markdownDescription": "How imports should be grouped into use statements.",
779 "enumDescriptions": [
780 "Do not change the granularity of any imports and preserve the original structure written by the developer.",
781 "Merge imports from the same crate into a single use statement. Conversely, imports from different crates are split into separate statements.",
782 "Merge imports from the same module into a single use statement. Conversely, imports from different modules are split into separate statements.",
783 "Flatten imports so that each has its own use statement."
786 "rust-analyzer.imports.group.enable": {
787 "markdownDescription": "Group inserted imports by the [following order](https://rust-analyzer.github.io/manual.html#auto-import). Groups are separated by newlines.",
791 "rust-analyzer.imports.merge.glob": {
792 "markdownDescription": "Whether to allow import insertion to merge new imports into single path glob imports like `use std::fmt::*;`.",
796 "rust-analyzer.imports.prefix": {
797 "markdownDescription": "The path structure for newly inserted paths to use.",
805 "enumDescriptions": [
806 "Insert import paths relative to the current module, using up to one `super` prefix if the parent module contains the requested item.",
807 "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.",
808 "Force import paths to be absolute by always starting them with `crate` or the extern crate name they come from."
811 "rust-analyzer.inlayHints.bindingModeHints.enable": {
812 "markdownDescription": "Whether to show inlay type hints for binding modes.",
816 "rust-analyzer.inlayHints.chainingHints.enable": {
817 "markdownDescription": "Whether to show inlay type hints for method chains.",
821 "rust-analyzer.inlayHints.closingBraceHints.enable": {
822 "markdownDescription": "Whether to show inlay hints after a closing `}` to indicate what item it belongs to.",
826 "rust-analyzer.inlayHints.closingBraceHints.minLines": {
827 "markdownDescription": "Minimum number of lines required before the `}` until the hint is shown (set to 0 or 1\nto always show them).",
832 "rust-analyzer.inlayHints.closureReturnTypeHints.enable": {
833 "markdownDescription": "Whether to show inlay type hints for return types of closures.",
841 "enumDescriptions": [
842 "Always show type hints for return types of closures.",
843 "Never show type hints for return types of closures.",
844 "Only show type hints for return types of closures with blocks."
847 "rust-analyzer.inlayHints.lifetimeElisionHints.enable": {
848 "markdownDescription": "Whether to show inlay type hints for elided lifetimes in function signatures.",
856 "enumDescriptions": [
857 "Always show lifetime elision hints.",
858 "Never show lifetime elision hints.",
859 "Only show lifetime elision hints if a return type is involved."
862 "rust-analyzer.inlayHints.lifetimeElisionHints.useParameterNames": {
863 "markdownDescription": "Whether to prefer using parameter names as the name for elided lifetime hints if possible.",
867 "rust-analyzer.inlayHints.maxLength": {
868 "markdownDescription": "Maximum length for inlay hints. Set to null to have an unlimited length.",
876 "rust-analyzer.inlayHints.parameterHints.enable": {
877 "markdownDescription": "Whether to show function parameter name inlay hints at the call\nsite.",
881 "rust-analyzer.inlayHints.reborrowHints.enable": {
882 "markdownDescription": "Whether to show inlay type hints for compiler inserted reborrows.",
890 "enumDescriptions": [
891 "Always show reborrow hints.",
892 "Never show reborrow hints.",
893 "Only show mutable reborrow hints."
896 "rust-analyzer.inlayHints.renderColons": {
897 "markdownDescription": "Whether to render leading colons for type hints, and trailing colons for parameter hints.",
901 "rust-analyzer.inlayHints.typeHints.enable": {
902 "markdownDescription": "Whether to show inlay type hints for variables.",
906 "rust-analyzer.inlayHints.typeHints.hideClosureInitialization": {
907 "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#`.",
911 "rust-analyzer.inlayHints.typeHints.hideNamedConstructor": {
912 "markdownDescription": "Whether to hide inlay type hints for constructors.",
916 "rust-analyzer.joinLines.joinAssignments": {
917 "markdownDescription": "Join lines merges consecutive declaration and initialization of an assignment.",
921 "rust-analyzer.joinLines.joinElseIf": {
922 "markdownDescription": "Join lines inserts else between consecutive ifs.",
926 "rust-analyzer.joinLines.removeTrailingComma": {
927 "markdownDescription": "Join lines removes trailing commas.",
931 "rust-analyzer.joinLines.unwrapTrivialBlock": {
932 "markdownDescription": "Join lines unwraps trivial blocks.",
936 "rust-analyzer.lens.debug.enable": {
937 "markdownDescription": "Whether to show `Debug` lens. Only applies when\n`#rust-analyzer.lens.enable#` is set.",
941 "rust-analyzer.lens.enable": {
942 "markdownDescription": "Whether to show CodeLens in Rust files.",
946 "rust-analyzer.lens.forceCustomCommands": {
947 "markdownDescription": "Internal config: use custom client-side commands even when the\nclient doesn't set the corresponding capability.",
951 "rust-analyzer.lens.implementations.enable": {
952 "markdownDescription": "Whether to show `Implementations` lens. Only applies when\n`#rust-analyzer.lens.enable#` is set.",
956 "rust-analyzer.lens.references.adt.enable": {
957 "markdownDescription": "Whether to show `References` lens for Struct, Enum, and Union.\nOnly applies when `#rust-analyzer.lens.enable#` is set.",
961 "rust-analyzer.lens.references.enumVariant.enable": {
962 "markdownDescription": "Whether to show `References` lens for Enum Variants.\nOnly applies when `#rust-analyzer.lens.enable#` is set.",
966 "rust-analyzer.lens.references.method.enable": {
967 "markdownDescription": "Whether to show `Method References` lens. Only applies when\n`#rust-analyzer.lens.enable#` is set.",
971 "rust-analyzer.lens.references.trait.enable": {
972 "markdownDescription": "Whether to show `References` lens for Trait.\nOnly applies when `#rust-analyzer.lens.enable#` is set.",
976 "rust-analyzer.lens.run.enable": {
977 "markdownDescription": "Whether to show `Run` lens. Only applies when\n`#rust-analyzer.lens.enable#` is set.",
981 "rust-analyzer.linkedProjects": {
982 "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.",
992 "rust-analyzer.lru.capacity": {
993 "markdownDescription": "Number of syntax trees rust-analyzer keeps in memory. Defaults to 128.",
1001 "rust-analyzer.notifications.cargoTomlNotFound": {
1002 "markdownDescription": "Whether to show `can't find Cargo.toml` error message.",
1006 "rust-analyzer.procMacro.attributes.enable": {
1007 "markdownDescription": "Expand attribute macros. Requires `#rust-analyzer.procMacro.enable#` to be set.",
1011 "rust-analyzer.procMacro.enable": {
1012 "markdownDescription": "Enable support for procedural macros, implies `#rust-analyzer.cargo.buildScripts.enable#`.",
1016 "rust-analyzer.procMacro.ignored": {
1017 "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.",
1021 "rust-analyzer.procMacro.server": {
1022 "markdownDescription": "Internal config, path to proc-macro server executable (typically,\nthis is rust-analyzer itself, but we override this in tests).",
1029 "rust-analyzer.runnables.command": {
1030 "markdownDescription": "Command to be executed instead of 'cargo' for runnables.",
1037 "rust-analyzer.runnables.extraArgs": {
1038 "markdownDescription": "Additional arguments to be passed to cargo for runnables such as\ntests or binaries. For example, it may be `--release`.",
1045 "rust-analyzer.rustc.source": {
1046 "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.",
1053 "rust-analyzer.rustfmt.extraArgs": {
1054 "markdownDescription": "Additional arguments to `rustfmt`.",
1061 "rust-analyzer.rustfmt.overrideCommand": {
1062 "markdownDescription": "Advanced option, fully override the command rust-analyzer uses for\nformatting.",
1072 "rust-analyzer.rustfmt.rangeFormatting.enable": {
1073 "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.",
1077 "rust-analyzer.semanticHighlighting.strings.enable": {
1078 "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.",
1082 "rust-analyzer.signatureInfo.detail": {
1083 "markdownDescription": "Show full signature of the callable. Only shows parameters if disabled.",
1090 "enumDescriptions": [
1091 "Show the entire signature.",
1092 "Show only the parameters."
1095 "rust-analyzer.signatureInfo.documentation.enable": {
1096 "markdownDescription": "Show documentation.",
1100 "rust-analyzer.typing.autoClosingAngleBrackets.enable": {
1101 "markdownDescription": "Whether to insert closing angle brackets when typing an opening angle bracket of a generic argument list.",
1105 "rust-analyzer.workspace.symbol.search.kind": {
1106 "markdownDescription": "Workspace symbol search kind.",
1107 "default": "only_types",
1113 "enumDescriptions": [
1114 "Search for types only.",
1115 "Search for all symbols kinds."
1118 "rust-analyzer.workspace.symbol.search.limit": {
1119 "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.",
1124 "rust-analyzer.workspace.symbol.search.scope": {
1125 "markdownDescription": "Workspace symbol search scope.",
1126 "default": "workspace",
1130 "workspace_and_dependencies"
1132 "enumDescriptions": [
1133 "Search in current workspace only.",
1134 "Search in current workspace and dependencies."
1137 "$generated-end": {}
1140 "problemPatterns": [
1145 "regexp": "^(warning|warn|error)(?:\\[(.*?)\\])?: (.*)$",
1151 "regexp": "^[\\s->=]*(.*?):(\\d*):(\\d*)\\s*$",
1159 "name": "rustc-json",
1162 "regexp": "^.*\"message\":{\"message\":\"([^\"]*).*?\"file_name\":\"([^\"]+).*?\"line_start\":(\\d+).*?\"line_end\":(\\d+).*?\"column_start\":(\\d+).*?\"column_end\":(\\d+).*}$",
1175 "id": "ra_syntax_tree",
1189 "configuration": "language-configuration.json"
1194 "language": "ra_syntax_tree",
1195 "scopeName": "source.ra_syntax_tree",
1196 "path": "ra_syntax_tree.tmGrammar.json"
1199 "problemMatchers": [
1211 "name": "rustc-json",
1218 "pattern": "$rustc-json"
1221 "name": "rustc-watch",
1229 "beginsPattern": "^\\[Running\\b",
1230 "endsPattern": "^\\[Finished running\\b"
1237 "id": "rust_analyzer.syntaxTreeBorder",
1238 "description": "Color of the border displayed in the Rust source code for the selected syntax node (see \"Show Syntax Tree\" command)",
1242 "highContrast": "#b700ff"
1246 "semanticTokenTypes": [
1249 "description": "Style for < or >",
1250 "superType": "punctuation"
1254 "description": "Style for arithmetic operators",
1255 "superType": "operator"
1259 "description": "Style for attributes"
1262 "id": "attributeBracket",
1263 "description": "Style for attribute invocation brackets, that is the `#[` and `]` tokens",
1264 "superType": "punctuation"
1268 "description": "Style for bitwise operators",
1269 "superType": "operator"
1273 "description": "Style for boolean literals",
1274 "superType": "keyword"
1278 "description": "Style for { or }",
1279 "superType": "punctuation"
1283 "description": "Style for [ or ]",
1284 "superType": "punctuation"
1287 "id": "builtinAttribute",
1288 "description": "Style for builtin attributes",
1289 "superType": "attribute"
1292 "id": "builtinType",
1293 "description": "Style for builtin types",
1298 "description": "Style for character literals",
1299 "superType": "string"
1303 "description": "Style for :",
1304 "superType": "punctuation"
1308 "description": "Style for ,",
1309 "superType": "punctuation"
1313 "description": "Style for comparison operators",
1314 "superType": "operator"
1317 "id": "constParameter",
1318 "description": "Style for const generics"
1322 "description": "Style for derives",
1323 "superType": "attribute"
1327 "description": "Style for .",
1328 "superType": "punctuation"
1331 "id": "escapeSequence",
1332 "description": "Style for char escapes in strings"
1335 "id": "formatSpecifier",
1336 "description": "Style for {} placeholders in format strings"
1340 "description": "Style for labels"
1344 "description": "Style for lifetimes"
1348 "description": "Style for logic operators",
1349 "superType": "operator"
1353 "description": "Style for the ! token of macro calls",
1354 "superType": "punctuation"
1358 "description": "Style for operators",
1359 "superType": "punctuation"
1362 "id": "parenthesis",
1363 "description": "Style for ( or )",
1364 "superType": "punctuation"
1367 "id": "punctuation",
1368 "description": "Style for generic punctuation"
1371 "id": "selfKeyword",
1372 "description": "Style for the self keyword",
1373 "superType": "keyword"
1376 "id": "selfTypeKeyword",
1377 "description": "Style for the self type keyword",
1378 "superType": "keyword"
1382 "description": "Style for ;",
1383 "superType": "punctuation"
1387 "description": "Style for type aliases",
1392 "description": "Style for C-style untagged unions",
1396 "id": "unresolvedReference",
1397 "description": "Style for names which can not be resolved due to compilation errors"
1400 "semanticTokenModifiers": [
1403 "description": "Style for async functions and the `async` and `await` keywords"
1407 "description": "Style for elements within attributes"
1411 "description": "Style for locals whose types implements one of the `Fn*` traits"
1415 "description": "Style for compile-time constants"
1419 "description": "Style for locals that are being consumed when use in a function call"
1422 "id": "controlFlow",
1423 "description": "Style for control-flow related tokens, this includes the `?` operator"
1427 "description": "Style for names resolving to a crate root"
1431 "description": "Style for doc-string injected highlighting like rust source blocks in documentation"
1434 "id": "intraDocLink",
1435 "description": "Style for intra doc links in doc-strings"
1439 "description": "Style for items that are defined outside of the current crate"
1443 "description": "Style for mutable locals and statics as well as functions taking `&mut self`"
1447 "description": "Style for items that are from the current crate and are `pub`"
1451 "description": "Style for locals behind a reference and functions taking `self` by reference"
1455 "description": "Style for associated trait items"
1459 "description": "Style for unsafe operations, like unsafe function calls, as well as the `unsafe` token"
1462 "semanticTokenScopes": [
1467 "meta.attribute.rust"
1470 "constant.language.boolean.rust"
1473 "support.type.primitive.rust"
1476 "constant.other.caps.rust"
1479 "entity.name.type.enum.rust"
1481 "formatSpecifier": [
1482 "punctuation.section.embedded.rust"
1485 "entity.name.function.rust"
1488 "entity.name.type.trait.rust"
1491 "keyword.other.rust"
1493 "keyword.controlFlow": [
1494 "keyword.control.rust"
1497 "storage.modifier.lifetime.rust"
1500 "entity.name.function.macro.rust"
1503 "entity.name.function.rust"
1506 "entity.name.type.struct.rust"
1509 "entity.name.type.declaration.rust"
1512 "entity.name.type.union.rust"
1515 "variable.other.rust"
1517 "variable.constant": [
1518 "variable.other.constant.rust"
1529 "command": "rust-analyzer.syntaxTree",
1530 "when": "inRustProject"
1533 "command": "rust-analyzer.viewHir",
1534 "when": "inRustProject"
1537 "command": "rust-analyzer.viewFileText",
1538 "when": "inRustProject"
1541 "command": "rust-analyzer.expandMacro",
1542 "when": "inRustProject"
1545 "command": "rust-analyzer.matchingBrace",
1546 "when": "inRustProject"
1549 "command": "rust-analyzer.parentModule",
1550 "when": "inRustProject"
1553 "command": "rust-analyzer.joinLines",
1554 "when": "inRustProject"
1557 "command": "rust-analyzer.run",
1558 "when": "inRustProject"
1561 "command": "rust-analyzer.debug",
1562 "when": "inRustProject"
1565 "command": "rust-analyzer.newDebugConfig",
1566 "when": "inRustProject"
1569 "command": "rust-analyzer.analyzerStatus",
1570 "when": "inRustProject"
1573 "command": "rust-analyzer.memoryUsage",
1574 "when": "inRustProject"
1577 "command": "rust-analyzer.reloadWorkspace",
1578 "when": "inRustProject"
1581 "command": "rust-analyzer.reload",
1582 "when": "inRustProject"
1585 "command": "rust-analyzer.onEnter",
1586 "when": "inRustProject"
1589 "command": "rust-analyzer.ssr",
1590 "when": "inRustProject"
1593 "command": "rust-analyzer.serverVersion",
1594 "when": "inRustProject"
1597 "command": "rust-analyzer.toggleInlayHints",
1598 "when": "inRustProject"
1601 "command": "rust-analyzer.openDocs",
1602 "when": "inRustProject"
1605 "command": "rust-analyzer.openCargoToml",
1606 "when": "inRustProject"
1611 "command": "rust-analyzer.peekTests",
1612 "when": "inRustProject",
1613 "group": "navigation@1000"