2 "name": "rust-analyzer",
3 "displayName": "rust-analyzer",
4 "description": "An alternative rust language server to the RLS",
8 "version": "0.4.0-dev",
10 "publisher": "matklad",
12 "url": "https://github.com/rust-analyzer/rust-analyzer.git",
15 "homepage": "https://rust-analyzer.github.io/",
16 "license": "MIT OR Apache-2.0",
21 "Programming Languages"
26 "enabledApiProposals": [],
28 "vscode:prepublish": "npm run build-base -- --minify",
29 "package": "vsce package -o rust-analyzer.vsix",
30 "build-base": "esbuild ./src/main.ts --bundle --outfile=out/main.js --external:vscode --format=cjs --platform=node --target=node16",
31 "build": "npm run build-base -- --sourcemap",
32 "watch": "npm run build-base -- --sourcemap --watch",
33 "lint": "tsfmt --verify && eslint -c .eslintrc.js --ext ts ./src ./tests",
34 "fix": " tsfmt -r && eslint -c .eslintrc.js --ext ts ./src ./tests --fix",
35 "pretest": "tsc && npm run build",
36 "test": "cross-env TEST_VARIABLE=test node ./out/tests/runTests.js"
40 "d3-graphviz": "^4.1.0",
41 "vscode-languageclient": "8.0.0-next.14"
44 "@types/node": "~14.17.5",
45 "@types/vscode": "~1.66.0",
46 "@typescript-eslint/eslint-plugin": "^5.16.0",
47 "@typescript-eslint/parser": "^5.16.0",
48 "@vscode/test-electron": "^2.1.3",
49 "cross-env": "^7.0.3",
50 "esbuild": "^0.14.27",
53 "typescript": "^4.6.3",
54 "typescript-formatter": "^7.2.2",
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 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.",
436 "enumDescriptions": [
437 "Pass `--all-features` to cargo"
440 "rust-analyzer.cargo.noDefaultFeatures": {
441 "markdownDescription": "Whether to pass `--no-default-features` to cargo.",
445 "rust-analyzer.cargo.noSysroot": {
446 "markdownDescription": "Internal config for debugging, disables loading of sysroot crates.",
450 "rust-analyzer.cargo.target": {
451 "markdownDescription": "Compilation target override (target triple).",
458 "rust-analyzer.cargo.unsetTest": {
459 "markdownDescription": "Unsets `#[cfg(test)]` for the specified crates.",
468 "rust-analyzer.checkOnSave.allTargets": {
469 "markdownDescription": "Check all targets and tests (`--all-targets`).",
473 "rust-analyzer.checkOnSave.command": {
474 "markdownDescription": "Cargo command to use for `cargo check`.",
478 "rust-analyzer.checkOnSave.enable": {
479 "markdownDescription": "Run specified `cargo check` command for diagnostics on save.",
483 "rust-analyzer.checkOnSave.extraArgs": {
484 "markdownDescription": "Extra arguments for `cargo check`.",
491 "rust-analyzer.checkOnSave.features": {
492 "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"
509 "rust-analyzer.checkOnSave.noDefaultFeatures": {
510 "markdownDescription": "Do not activate the `default` feature.",
517 "rust-analyzer.checkOnSave.overrideCommand": {
518 "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.",
528 "rust-analyzer.checkOnSave.target": {
529 "markdownDescription": "Check for a specific target. Defaults to\n`#rust-analyzer.cargo.target#`.",
536 "rust-analyzer.completion.autoimport.enable": {
537 "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.",
541 "rust-analyzer.completion.autoself.enable": {
542 "markdownDescription": "Toggles the additional completions that automatically show method calls and field accesses\nwith `self` prefixed to them when inside a method.",
546 "rust-analyzer.completion.callable.snippets": {
547 "markdownDescription": "Whether to add parenthesis and argument snippets when completing function.",
548 "default": "fill_arguments",
557 "enumDescriptions": [
558 "Add call parentheses and pre-fill arguments",
559 "Add call parentheses"
562 "rust-analyzer.completion.postfix.enable": {
563 "markdownDescription": "Whether to show postfix snippets like `dbg`, `if`, `not`, etc.",
567 "rust-analyzer.completion.privateEditable.enable": {
568 "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.",
572 "rust-analyzer.completion.snippets.custom": {
573 "markdownDescription": "Custom completion snippets.",
577 "body": "Arc::new(${receiver})",
578 "requires": "std::sync::Arc",
579 "description": "Put the expression into an `Arc`",
584 "body": "Rc::new(${receiver})",
585 "requires": "std::rc::Rc",
586 "description": "Put the expression into an `Rc`",
591 "body": "Box::pin(${receiver})",
592 "requires": "std::boxed::Box",
593 "description": "Put the expression into a pinned `Box`",
598 "body": "Ok(${receiver})",
599 "description": "Wrap the expression in a `Result::Ok`",
604 "body": "Err(${receiver})",
605 "description": "Wrap the expression in a `Result::Err`",
610 "body": "Some(${receiver})",
611 "description": "Wrap the expression in an `Option::Some`",
617 "rust-analyzer.diagnostics.disabled": {
618 "markdownDescription": "List of rust-analyzer diagnostics to disable.",
626 "rust-analyzer.diagnostics.enable": {
627 "markdownDescription": "Whether to show native rust-analyzer diagnostics.",
631 "rust-analyzer.diagnostics.experimental.enable": {
632 "markdownDescription": "Whether to show experimental rust-analyzer diagnostics that might\nhave more false positives than usual.",
636 "rust-analyzer.diagnostics.remapPrefix": {
637 "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`.",
641 "rust-analyzer.diagnostics.warningsAsHint": {
642 "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`.",
649 "rust-analyzer.diagnostics.warningsAsInfo": {
650 "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`.",
657 "rust-analyzer.files.excludeDirs": {
658 "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`.",
665 "rust-analyzer.files.watcher": {
666 "markdownDescription": "Controls file watching implementation.",
670 "rust-analyzer.highlightRelated.breakPoints.enable": {
671 "markdownDescription": "Enables highlighting of related references while the cursor is on `break`, `loop`, `while`, or `for` keywords.",
675 "rust-analyzer.highlightRelated.exitPoints.enable": {
676 "markdownDescription": "Enables highlighting of all exit points while the cursor is on any `return`, `?`, `fn`, or return type arrow (`->`).",
680 "rust-analyzer.highlightRelated.references.enable": {
681 "markdownDescription": "Enables highlighting of related references while the cursor is on any identifier.",
685 "rust-analyzer.highlightRelated.yieldPoints.enable": {
686 "markdownDescription": "Enables highlighting of all break points for a loop or block context while the cursor is on any `async` or `await` keywords.",
690 "rust-analyzer.hover.actions.debug.enable": {
691 "markdownDescription": "Whether to show `Debug` action. Only applies when\n`#rust-analyzer.hoverActions.enable#` is set.",
695 "rust-analyzer.hover.actions.enable": {
696 "markdownDescription": "Whether to show HoverActions in Rust files.",
700 "rust-analyzer.hover.actions.gotoTypeDef.enable": {
701 "markdownDescription": "Whether to show `Go to Type Definition` action. Only applies when\n`#rust-analyzer.hoverActions.enable#` is set.",
705 "rust-analyzer.hover.actions.implementations.enable": {
706 "markdownDescription": "Whether to show `Implementations` action. Only applies when\n`#rust-analyzer.hoverActions.enable#` is set.",
710 "rust-analyzer.hover.actions.references.enable": {
711 "markdownDescription": "Whether to show `References` action. Only applies when\n`#rust-analyzer.hoverActions.enable#` is set.",
715 "rust-analyzer.hover.actions.run.enable": {
716 "markdownDescription": "Whether to show `Run` action. Only applies when\n`#rust-analyzer.hoverActions.enable#` is set.",
720 "rust-analyzer.hover.documentation.enable": {
721 "markdownDescription": "Whether to show documentation on hover.",
725 "rust-analyzer.hover.links.enable": {
726 "markdownDescription": "Use markdown syntax for links in hover.",
730 "rust-analyzer.imports.granularity.enforce": {
731 "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.",
735 "rust-analyzer.imports.granularity.group": {
736 "markdownDescription": "How imports should be grouped into use statements.",
745 "enumDescriptions": [
746 "Do not change the granularity of any imports and preserve the original structure written by the developer.",
747 "Merge imports from the same crate into a single use statement. Conversely, imports from different crates are split into separate statements.",
748 "Merge imports from the same module into a single use statement. Conversely, imports from different modules are split into separate statements.",
749 "Flatten imports so that each has its own use statement."
752 "rust-analyzer.imports.group.enable": {
753 "markdownDescription": "Group inserted imports by the [following order](https://rust-analyzer.github.io/manual.html#auto-import). Groups are separated by newlines.",
757 "rust-analyzer.imports.merge.glob": {
758 "markdownDescription": "Whether to allow import insertion to merge new imports into single path glob imports like `use std::fmt::*;`.",
762 "rust-analyzer.imports.prefix": {
763 "markdownDescription": "The path structure for newly inserted paths to use.",
771 "enumDescriptions": [
772 "Insert import paths relative to the current module, using up to one `super` prefix if the parent module contains the requested item.",
773 "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.",
774 "Force import paths to be absolute by always starting them with `crate` or the extern crate name they come from."
777 "rust-analyzer.inlayHints.chainingHints.enable": {
778 "markdownDescription": "Whether to show inlay type hints for method chains.",
782 "rust-analyzer.inlayHints.closureReturnTypeHints.enable": {
783 "markdownDescription": "Whether to show inlay type hints for return types of closures with blocks.",
787 "rust-analyzer.inlayHints.lifetimeElisionHints.enable": {
788 "markdownDescription": "Whether to show inlay type hints for elided lifetimes in function signatures.",
799 "enumDescriptions": [
800 "Always show lifetime elision hints.",
801 "Never show lifetime elision hints.",
802 "Only show lifetime elision hints if a return type is involved."
805 "rust-analyzer.inlayHints.lifetimeElisionHints.useParameterNames": {
806 "markdownDescription": "Whether to prefer using parameter names as the name for elided lifetime hints if possible.",
810 "rust-analyzer.inlayHints.maxLength": {
811 "markdownDescription": "Maximum length for inlay hints. Set to null to have an unlimited length.",
819 "rust-analyzer.inlayHints.parameterHints.enable": {
820 "markdownDescription": "Whether to show function parameter name inlay hints at the call\nsite.",
824 "rust-analyzer.inlayHints.reborrowHints.enable": {
825 "markdownDescription": "Whether to show inlay type hints for compiler inserted reborrows.",
829 "rust-analyzer.inlayHints.renderColons": {
830 "markdownDescription": "Whether to render leading colons for type hints, and trailing colons for parameter hints.",
834 "rust-analyzer.inlayHints.typeHints.enable": {
835 "markdownDescription": "Whether to show inlay type hints for variables.",
839 "rust-analyzer.inlayHints.typeHints.hideNamedConstructor": {
840 "markdownDescription": "Whether to hide inlay type hints for constructors.",
844 "rust-analyzer.joinLines.joinAssignments": {
845 "markdownDescription": "Join lines merges consecutive declaration and initialization of an assignment.",
849 "rust-analyzer.joinLines.joinElseIf": {
850 "markdownDescription": "Join lines inserts else between consecutive ifs.",
854 "rust-analyzer.joinLines.removeTrailingComma": {
855 "markdownDescription": "Join lines removes trailing commas.",
859 "rust-analyzer.joinLines.unwrapTrivialBlock": {
860 "markdownDescription": "Join lines unwraps trivial blocks.",
864 "rust-analyzer.lens.debug.enable": {
865 "markdownDescription": "Whether to show `Debug` lens. Only applies when\n`#rust-analyzer.lens.enable#` is set.",
869 "rust-analyzer.lens.enable": {
870 "markdownDescription": "Whether to show CodeLens in Rust files.",
874 "rust-analyzer.lens.forceCustomCommands": {
875 "markdownDescription": "Internal config: use custom client-side commands even when the\nclient doesn't set the corresponding capability.",
879 "rust-analyzer.lens.implementations.enable": {
880 "markdownDescription": "Whether to show `Implementations` lens. Only applies when\n`#rust-analyzer.lens.enable#` is set.",
884 "rust-analyzer.lens.references.adt.enable": {
885 "markdownDescription": "Whether to show `References` lens for Struct, Enum, and Union.\nOnly applies when `#rust-analyzer.lens.enable#` is set.",
889 "rust-analyzer.lens.references.enumVariant.enable": {
890 "markdownDescription": "Whether to show `References` lens for Enum Variants.\nOnly applies when `#rust-analyzer.lens.enable#` is set.",
894 "rust-analyzer.lens.references.method.enable": {
895 "markdownDescription": "Whether to show `Method References` lens. Only applies when\n`#rust-analyzer.lens.enable#` is set.",
899 "rust-analyzer.lens.references.trait.enable": {
900 "markdownDescription": "Whether to show `References` lens for Trait.\nOnly applies when `#rust-analyzer.lens.enable#` is set.",
904 "rust-analyzer.lens.run.enable": {
905 "markdownDescription": "Whether to show `Run` lens. Only applies when\n`#rust-analyzer.lens.enable#` is set.",
909 "rust-analyzer.linkedProjects": {
910 "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.",
920 "rust-analyzer.lru.capacity": {
921 "markdownDescription": "Number of syntax trees rust-analyzer keeps in memory. Defaults to 128.",
929 "rust-analyzer.notifications.cargoTomlNotFound": {
930 "markdownDescription": "Whether to show `can't find Cargo.toml` error message.",
934 "rust-analyzer.procMacro.attributes.enable": {
935 "markdownDescription": "Expand attribute macros. Requires `#rust-analyzer.procMacro.enable#` to be set.",
939 "rust-analyzer.procMacro.enable": {
940 "markdownDescription": "Enable support for procedural macros, implies `#rust-analyzer.cargo.buildScripts.enable#`.",
944 "rust-analyzer.procMacro.ignored": {
945 "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.",
949 "rust-analyzer.procMacro.server": {
950 "markdownDescription": "Internal config, path to proc-macro server executable (typically,\nthis is rust-analyzer itself, but we override this in tests).",
957 "rust-analyzer.runnables.command": {
958 "markdownDescription": "Command to be executed instead of 'cargo' for runnables.",
965 "rust-analyzer.runnables.extraArgs": {
966 "markdownDescription": "Additional arguments to be passed to cargo for runnables such as\ntests or binaries. For example, it may be `--release`.",
973 "rust-analyzer.rustc.source": {
974 "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.",
981 "rust-analyzer.rustfmt.extraArgs": {
982 "markdownDescription": "Additional arguments to `rustfmt`.",
989 "rust-analyzer.rustfmt.overrideCommand": {
990 "markdownDescription": "Advanced option, fully override the command rust-analyzer uses for\nformatting.",
1000 "rust-analyzer.rustfmt.rangeFormatting.enable": {
1001 "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.",
1005 "rust-analyzer.semanticHighlighting.strings.enable": {
1006 "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.",
1010 "rust-analyzer.signatureInfo.detail": {
1011 "markdownDescription": "Show full signature of the callable. Only shows parameters if disabled.",
1018 "enumDescriptions": [
1019 "Show the entire signature.",
1020 "Show only the parameters."
1023 "rust-analyzer.signatureInfo.documentation.enable": {
1024 "markdownDescription": "Show documentation.",
1028 "rust-analyzer.workspace.symbol.search.kind": {
1029 "markdownDescription": "Workspace symbol search kind.",
1030 "default": "only_types",
1036 "enumDescriptions": [
1037 "Search for types only",
1038 "Search for all symbols kinds"
1041 "rust-analyzer.workspace.symbol.search.limit": {
1042 "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.",
1047 "rust-analyzer.workspace.symbol.search.scope": {
1048 "markdownDescription": "Workspace symbol search scope.",
1049 "default": "workspace",
1053 "workspace_and_dependencies"
1055 "enumDescriptions": [
1056 "Search in current workspace only",
1057 "Search in current workspace and dependencies"
1060 "$generated-end": {}
1063 "problemPatterns": [
1068 "regexp": "^(warning|warn|error)(?:\\[(.*?)\\])?: (.*)$",
1074 "regexp": "^[\\s->=]*(.*?):(\\d*):(\\d*)\\s*$",
1082 "name": "rustc-json",
1085 "regexp": "^.*\"message\":{\"message\":\"([^\"]*).*?\"file_name\":\"([^\"]+).*?\"line_start\":(\\d+).*?\"line_end\":(\\d+).*?\"column_start\":(\\d+).*?\"column_end\":(\\d+).*}$",
1098 "id": "ra_syntax_tree",
1112 "configuration": "language-configuration.json"
1117 "language": "ra_syntax_tree",
1118 "scopeName": "source.ra_syntax_tree",
1119 "path": "ra_syntax_tree.tmGrammar.json"
1122 "problemMatchers": [
1134 "name": "rustc-json",
1141 "pattern": "$rustc-json"
1144 "name": "rustc-watch",
1152 "beginsPattern": "^\\[Running\\b",
1153 "endsPattern": "^\\[Finished running\\b"
1160 "id": "rust_analyzer.syntaxTreeBorder",
1161 "description": "Color of the border displayed in the Rust source code for the selected syntax node (see \"Show Syntax Tree\" command)",
1165 "highContrast": "#b700ff"
1169 "semanticTokenTypes": [
1172 "description": "Style for < or >",
1173 "superType": "punctuation"
1177 "description": "Style for arithmetic operators",
1178 "superType": "operator"
1182 "description": "Style for attributes"
1185 "id": "attributeBracket",
1186 "description": "Style for attribute invocation brackets, that is the `#[` and `]` tokens",
1187 "superType": "punctuation"
1191 "description": "Style for bitwise operators",
1192 "superType": "operator"
1196 "description": "Style for boolean literals",
1197 "superType": "keyword"
1201 "description": "Style for { or }",
1202 "superType": "punctuation"
1206 "description": "Style for [ or ]",
1207 "superType": "punctuation"
1210 "id": "builtinAttribute",
1211 "description": "Style for builtin attributes",
1212 "superType": "attribute"
1215 "id": "builtinType",
1216 "description": "Style for builtin types",
1221 "description": "Style for character literals",
1222 "superType": "string"
1226 "description": "Style for :",
1227 "superType": "punctuation"
1231 "description": "Style for ,",
1232 "superType": "punctuation"
1236 "description": "Style for comparison operators",
1237 "superType": "operator"
1240 "id": "constParameter",
1241 "description": "Style for const generics"
1245 "description": "Style for derives",
1246 "superType": "attribute"
1250 "description": "Style for .",
1251 "superType": "punctuation"
1254 "id": "escapeSequence",
1255 "description": "Style for char escapes in strings"
1258 "id": "formatSpecifier",
1259 "description": "Style for {} placeholders in format strings"
1263 "description": "Style for labels"
1267 "description": "Style for lifetimes"
1271 "description": "Style for logic operators",
1272 "superType": "operator"
1276 "description": "Style for the ! token of macro calls",
1277 "superType": "punctuation"
1281 "description": "Style for operators",
1282 "superType": "punctuation"
1285 "id": "parenthesis",
1286 "description": "Style for ( or )",
1287 "superType": "punctuation"
1290 "id": "punctuation",
1291 "description": "Style for generic punctuation"
1294 "id": "selfKeyword",
1295 "description": "Style for the self keyword",
1296 "superType": "keyword"
1299 "id": "selfTypeKeyword",
1300 "description": "Style for the self type keyword",
1301 "superType": "keyword"
1305 "description": "Style for ;",
1306 "superType": "punctuation"
1310 "description": "Style for type aliases",
1315 "description": "Style for C-style untagged unions",
1319 "id": "unresolvedReference",
1320 "description": "Style for names which can not be resolved due to compilation errors"
1323 "semanticTokenModifiers": [
1326 "description": "Style for async functions and the `async` and `await` keywords"
1330 "description": "Style for elements within attributes"
1334 "description": "Style for locals whose types implements one of the `Fn*` traits"
1338 "description": "Style for compile-time constants"
1342 "description": "Style for locals that are being consumed when use in a function call"
1345 "id": "controlFlow",
1346 "description": "Style for control-flow related tokens, this includes the `?` operator"
1350 "description": "Style for names resolving to a crate root"
1354 "description": "Style for doc-string injected highlighting like rust source blocks in documentation"
1357 "id": "intraDocLink",
1358 "description": "Style for intra doc links in doc-strings"
1362 "description": "Style for items that are defined outside of the current crate"
1366 "description": "Style for mutable locals and statics as well as functions taking `&mut self`"
1370 "description": "Style tems that are from the current crate and are `pub`"
1374 "description": "Style for locals behind a reference and functions taking `self` by reference"
1378 "description": "Style for associated trait items"
1382 "description": "Style for unsafe operations, like unsafe function calls, as well as the `unsafe` token"
1385 "semanticTokenScopes": [
1390 "meta.attribute.rust"
1393 "constant.language.boolean.rust"
1396 "support.type.primitive.rust"
1399 "constant.other.caps.rust"
1402 "entity.name.type.enum.rust"
1404 "formatSpecifier": [
1405 "punctuation.section.embedded.rust"
1408 "entity.name.function.rust"
1411 "entity.name.type.trait.rust"
1414 "keyword.other.rust"
1416 "keyword.controlFlow": [
1417 "keyword.control.rust"
1420 "storage.modifier.lifetime.rust"
1423 "entity.name.function.macro.rust"
1426 "entity.name.function.rust"
1429 "entity.name.type.struct.rust"
1432 "entity.name.type.declaration.rust"
1435 "entity.name.type.union.rust"
1438 "variable.other.rust"
1440 "variable.constant": [
1441 "variable.other.constant.rust"
1452 "command": "rust-analyzer.syntaxTree",
1453 "when": "inRustProject"
1456 "command": "rust-analyzer.viewHir",
1457 "when": "inRustProject"
1460 "command": "rust-analyzer.viewFileText",
1461 "when": "inRustProject"
1464 "command": "rust-analyzer.expandMacro",
1465 "when": "inRustProject"
1468 "command": "rust-analyzer.matchingBrace",
1469 "when": "inRustProject"
1472 "command": "rust-analyzer.parentModule",
1473 "when": "inRustProject"
1476 "command": "rust-analyzer.joinLines",
1477 "when": "inRustProject"
1480 "command": "rust-analyzer.run",
1481 "when": "inRustProject"
1484 "command": "rust-analyzer.debug",
1485 "when": "inRustProject"
1488 "command": "rust-analyzer.newDebugConfig",
1489 "when": "inRustProject"
1492 "command": "rust-analyzer.analyzerStatus",
1493 "when": "inRustProject"
1496 "command": "rust-analyzer.memoryUsage",
1497 "when": "inRustProject"
1500 "command": "rust-analyzer.reloadWorkspace",
1501 "when": "inRustProject"
1504 "command": "rust-analyzer.reload",
1505 "when": "inRustProject"
1508 "command": "rust-analyzer.onEnter",
1509 "when": "inRustProject"
1512 "command": "rust-analyzer.ssr",
1513 "when": "inRustProject"
1516 "command": "rust-analyzer.serverVersion",
1517 "when": "inRustProject"
1520 "command": "rust-analyzer.toggleInlayHints",
1521 "when": "inRustProject"
1524 "command": "rust-analyzer.openDocs",
1525 "when": "inRustProject"
1528 "command": "rust-analyzer.openCargoToml",
1529 "when": "inRustProject"
1534 "command": "rust-analyzer.peekTests",
1535 "when": "inRustProject",
1536 "group": "navigation@1000"