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": "node ./out/tests/runTests.js"
39 "vscode-languageclient": "8.0.0-next.14",
41 "d3-graphviz": "^4.1.0"
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 "esbuild": "^0.14.27",
52 "typescript": "^4.6.3",
53 "typescript-formatter": "^7.2.2",
58 "onCommand:rust-analyzer.analyzerStatus",
59 "onCommand:rust-analyzer.memoryUsage",
60 "onCommand:rust-analyzer.reloadWorkspace",
61 "workspaceContains:*/Cargo.toml",
62 "workspaceContains:*/rust-project.json"
87 "patternProperties": {
98 "command": "rust-analyzer.syntaxTree",
99 "title": "Show Syntax Tree",
100 "category": "Rust Analyzer"
103 "command": "rust-analyzer.viewHir",
105 "category": "Rust Analyzer"
108 "command": "rust-analyzer.viewFileText",
109 "title": "View File Text (as seen by the server)",
110 "category": "Rust Analyzer"
113 "command": "rust-analyzer.viewItemTree",
114 "title": "Debug ItemTree",
115 "category": "Rust Analyzer"
118 "command": "rust-analyzer.viewCrateGraph",
119 "title": "View Crate Graph",
120 "category": "Rust Analyzer"
123 "command": "rust-analyzer.viewFullCrateGraph",
124 "title": "View Crate Graph (Full)",
125 "category": "Rust Analyzer"
128 "command": "rust-analyzer.expandMacro",
129 "title": "Expand macro recursively",
130 "category": "Rust Analyzer"
133 "command": "rust-analyzer.matchingBrace",
134 "title": "Find matching brace",
135 "category": "Rust Analyzer"
138 "command": "rust-analyzer.parentModule",
139 "title": "Locate parent module",
140 "category": "Rust Analyzer"
143 "command": "rust-analyzer.joinLines",
144 "title": "Join lines",
145 "category": "Rust Analyzer"
148 "command": "rust-analyzer.run",
150 "category": "Rust Analyzer"
153 "command": "rust-analyzer.copyRunCommandLine",
154 "title": "Copy Run Command Line",
155 "category": "Rust Analyzer"
158 "command": "rust-analyzer.debug",
160 "category": "Rust Analyzer"
163 "command": "rust-analyzer.newDebugConfig",
164 "title": "Generate launch configuration",
165 "category": "Rust Analyzer"
168 "command": "rust-analyzer.analyzerStatus",
170 "category": "Rust Analyzer"
173 "command": "rust-analyzer.memoryUsage",
174 "title": "Memory Usage (Clears Database)",
175 "category": "Rust Analyzer"
178 "command": "rust-analyzer.shuffleCrateGraph",
179 "title": "Shuffle Crate Graph",
180 "category": "Rust Analyzer"
183 "command": "rust-analyzer.reloadWorkspace",
184 "title": "Reload workspace",
185 "category": "Rust Analyzer"
188 "command": "rust-analyzer.reload",
189 "title": "Restart server",
190 "category": "Rust Analyzer"
193 "command": "rust-analyzer.onEnter",
194 "title": "Enhanced enter key",
195 "category": "Rust Analyzer"
198 "command": "rust-analyzer.ssr",
199 "title": "Structural Search Replace",
200 "category": "Rust Analyzer"
203 "command": "rust-analyzer.serverVersion",
204 "title": "Show RA Version",
205 "category": "Rust Analyzer"
208 "command": "rust-analyzer.toggleInlayHints",
209 "title": "Toggle inlay hints",
210 "category": "Rust Analyzer"
213 "command": "rust-analyzer.openDocs",
214 "title": "Open docs under cursor",
215 "category": "Rust Analyzer"
218 "command": "rust-analyzer.openCargoToml",
219 "title": "Open Cargo.toml",
220 "category": "Rust Analyzer"
223 "command": "rust-analyzer.peekTests",
224 "title": "Peek related tests",
225 "category": "Rust Analyzer"
228 "command": "rust-analyzer.moveItemUp",
229 "title": "Move item up",
230 "category": "Rust Analyzer"
233 "command": "rust-analyzer.moveItemDown",
234 "title": "Move item down",
235 "category": "Rust Analyzer"
240 "command": "rust-analyzer.parentModule",
241 "key": "ctrl+shift+u",
242 "when": "editorTextFocus && editorLangId == rust"
245 "command": "rust-analyzer.matchingBrace",
246 "key": "ctrl+shift+m",
247 "when": "editorTextFocus && editorLangId == rust"
250 "command": "rust-analyzer.joinLines",
251 "key": "ctrl+shift+j",
252 "when": "editorTextFocus && editorLangId == rust"
257 "title": "Rust Analyzer",
259 "rust-analyzer.cargoRunner": {
265 "description": "Custom cargo runner extension ID."
267 "rust-analyzer.runnableEnv": {
279 "description": "Runnable name mask"
283 "description": "Variables in form of { \"key\": \"value\"}"
290 "description": "Variables in form of { \"key\": \"value\"}"
294 "markdownDescription": "Environment variables passed to the runnable launched using `Test` or `Debug` lens or `rust-analyzer.run` command."
296 "rust-analyzer.server.path": {
301 "scope": "machine-overridable",
303 "markdownDescription": "Path to rust-analyzer executable (points to bundled binary by default)."
305 "rust-analyzer.server.extraEnv": {
311 "markdownDescription": "Extra environment variables that will be passed to the rust-analyzer executable. Useful for passing e.g. `RA_LOG` for debugging."
313 "rust-analyzer.trace.server": {
321 "enumDescriptions": [
327 "description": "Trace requests to the rust-analyzer (this is usually overly verbose and not recommended for regular users)."
329 "rust-analyzer.trace.extension": {
330 "description": "Enable logging of VS Code extensions itself.",
334 "rust-analyzer.debug.engine": {
338 "vadimcn.vscode-lldb",
342 "description": "Preferred debug engine.",
343 "markdownEnumDescriptions": [
344 "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).",
345 "Use [CodeLLDB](https://marketplace.visualstudio.com/items?itemName=vadimcn.vscode-lldb)",
346 "Use [MS C++ tools](https://marketplace.visualstudio.com/items?itemName=ms-vscode.cpptools)"
349 "rust-analyzer.debug.sourceFileMap": {
355 "description": "Optional source file mappings passed to the debug engine.",
357 "/rustc/<id>": "${env:USERPROFILE}/.rustup/toolchains/<toolchain-id>/lib/rustlib/src/rust"
360 "rust-analyzer.debug.openDebugPane": {
361 "markdownDescription": "Whether to open up the `Debug Panel` on debugging start.",
365 "rust-analyzer.debug.engineSettings": {
368 "markdownDescription": "Optional settings passed to the debug engine. Example: `{ \"lldb\": { \"terminal\":\"external\"} }`"
370 "$generated-start": {},
371 "rust-analyzer.assist.expressionFillDefault": {
372 "markdownDescription": "Placeholder expression to use for missing expressions in assists.",
379 "enumDescriptions": [
380 "Fill missing expressions with the `todo` macro",
381 "Fill missing expressions with reasonable defaults, `new` or `default` constructors."
384 "rust-analyzer.cargo.autoreload": {
385 "markdownDescription": "Automatically refresh project info via `cargo metadata` on\n`Cargo.toml` or `.cargo/config.toml` changes.",
389 "rust-analyzer.cargo.buildScripts.enable": {
390 "markdownDescription": "Run build scripts (`build.rs`) for more precise code analysis.",
394 "rust-analyzer.cargo.buildScripts.overrideCommand": {
395 "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.",
405 "rust-analyzer.cargo.buildScripts.useRustcWrapper": {
406 "markdownDescription": "Use `RUSTC_WRAPPER=rust-analyzer` when running build scripts to\navoid compiling unnecessary things.",
410 "rust-analyzer.cargo.features": {
411 "markdownDescription": "List of features to activate.\n\nSet this to `\"all\"` to pass `--all-features` to cargo.",
423 "enumDescriptions": [
424 "Pass `--all-features` to cargo"
427 "rust-analyzer.cargo.noDefaultFeatures": {
428 "markdownDescription": "Whether to pass `--no-default-features` to cargo.",
432 "rust-analyzer.cargo.noSysroot": {
433 "markdownDescription": "Internal config for debugging, disables loading of sysroot crates.",
437 "rust-analyzer.cargo.target": {
438 "markdownDescription": "Compilation target override (target triple).",
445 "rust-analyzer.cargo.unsetTest": {
446 "markdownDescription": "Unsets `#[cfg(test)]` for the specified crates.",
455 "rust-analyzer.checkOnSave.allTargets": {
456 "markdownDescription": "Check all targets and tests (`--all-targets`).",
460 "rust-analyzer.checkOnSave.command": {
461 "markdownDescription": "Cargo command to use for `cargo check`.",
465 "rust-analyzer.checkOnSave.enable": {
466 "markdownDescription": "Run specified `cargo check` command for diagnostics on save.",
470 "rust-analyzer.checkOnSave.extraArgs": {
471 "markdownDescription": "Extra arguments for `cargo check`.",
478 "rust-analyzer.checkOnSave.features": {
479 "markdownDescription": "List of features to activate. Defaults to\n`#rust-analyzer.cargo.features#`.\n\nSet to `\"all\"` to pass `--all-features` to cargo.",
492 "enumDescriptions": [
493 "Pass `--all-features` to cargo"
496 "rust-analyzer.checkOnSave.noDefaultFeatures": {
497 "markdownDescription": "Do not activate the `default` feature.",
504 "rust-analyzer.checkOnSave.overrideCommand": {
505 "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.",
515 "rust-analyzer.checkOnSave.target": {
516 "markdownDescription": "Check for a specific target. Defaults to\n`#rust-analyzer.cargo.target#`.",
523 "rust-analyzer.completion.autoimport.enable": {
524 "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.",
528 "rust-analyzer.completion.autoself.enable": {
529 "markdownDescription": "Toggles the additional completions that automatically show method calls and field accesses\nwith `self` prefixed to them when inside a method.",
533 "rust-analyzer.completion.callable.snippets": {
534 "markdownDescription": "Whether to add parenthesis and argument snippets when completing function.",
535 "default": "fill_arguments",
544 "enumDescriptions": [
545 "Add call parentheses and pre-fill arguments",
546 "Add call parentheses"
549 "rust-analyzer.completion.postfix.enable": {
550 "markdownDescription": "Whether to show postfix snippets like `dbg`, `if`, `not`, etc.",
554 "rust-analyzer.completion.privateEditable.enable": {
555 "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.",
559 "rust-analyzer.completion.snippets.custom": {
560 "markdownDescription": "Custom completion snippets.",
564 "body": "Arc::new(${receiver})",
565 "requires": "std::sync::Arc",
566 "description": "Put the expression into an `Arc`",
571 "body": "Rc::new(${receiver})",
572 "requires": "std::rc::Rc",
573 "description": "Put the expression into an `Rc`",
578 "body": "Box::pin(${receiver})",
579 "requires": "std::boxed::Box",
580 "description": "Put the expression into a pinned `Box`",
585 "body": "Ok(${receiver})",
586 "description": "Wrap the expression in a `Result::Ok`",
591 "body": "Err(${receiver})",
592 "description": "Wrap the expression in a `Result::Err`",
597 "body": "Some(${receiver})",
598 "description": "Wrap the expression in an `Option::Some`",
604 "rust-analyzer.diagnostics.disabled": {
605 "markdownDescription": "List of rust-analyzer diagnostics to disable.",
613 "rust-analyzer.diagnostics.enable": {
614 "markdownDescription": "Whether to show native rust-analyzer diagnostics.",
618 "rust-analyzer.diagnostics.experimental.enable": {
619 "markdownDescription": "Whether to show experimental rust-analyzer diagnostics that might\nhave more false positives than usual.",
623 "rust-analyzer.diagnostics.remapPrefix": {
624 "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`.",
628 "rust-analyzer.diagnostics.warningsAsHint": {
629 "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`.",
636 "rust-analyzer.diagnostics.warningsAsInfo": {
637 "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`.",
644 "rust-analyzer.files.excludeDirs": {
645 "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`.",
652 "rust-analyzer.files.watcher": {
653 "markdownDescription": "Controls file watching implementation.",
657 "rust-analyzer.highlightRelated.breakPoints.enable": {
658 "markdownDescription": "Enables highlighting of related references while the cursor is on `break`, `loop`, `while`, or `for` keywords.",
662 "rust-analyzer.highlightRelated.exitPoints.enable": {
663 "markdownDescription": "Enables highlighting of all exit points while the cursor is on any `return`, `?`, `fn`, or return type arrow (`->`).",
667 "rust-analyzer.highlightRelated.references.enable": {
668 "markdownDescription": "Enables highlighting of related references while the cursor is on any identifier.",
672 "rust-analyzer.highlightRelated.yieldPoints.enable": {
673 "markdownDescription": "Enables highlighting of all break points for a loop or block context while the cursor is on any `async` or `await` keywords.",
677 "rust-analyzer.hover.actions.debug.enable": {
678 "markdownDescription": "Whether to show `Debug` action. Only applies when\n`#rust-analyzer.hoverActions.enable#` is set.",
682 "rust-analyzer.hover.actions.enable": {
683 "markdownDescription": "Whether to show HoverActions in Rust files.",
687 "rust-analyzer.hover.actions.gotoTypeDef.enable": {
688 "markdownDescription": "Whether to show `Go to Type Definition` action. Only applies when\n`#rust-analyzer.hoverActions.enable#` is set.",
692 "rust-analyzer.hover.actions.implementations.enable": {
693 "markdownDescription": "Whether to show `Implementations` action. Only applies when\n`#rust-analyzer.hoverActions.enable#` is set.",
697 "rust-analyzer.hover.actions.references.enable": {
698 "markdownDescription": "Whether to show `References` action. Only applies when\n`#rust-analyzer.hoverActions.enable#` is set.",
702 "rust-analyzer.hover.actions.run.enable": {
703 "markdownDescription": "Whether to show `Run` action. Only applies when\n`#rust-analyzer.hoverActions.enable#` is set.",
707 "rust-analyzer.hover.documentation.enable": {
708 "markdownDescription": "Whether to show documentation on hover.",
712 "rust-analyzer.hover.links.enable": {
713 "markdownDescription": "Use markdown syntax for links in hover.",
717 "rust-analyzer.imports.granularity.enforce": {
718 "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.",
722 "rust-analyzer.imports.granularity.group": {
723 "markdownDescription": "How imports should be grouped into use statements.",
732 "enumDescriptions": [
733 "Do not change the granularity of any imports and preserve the original structure written by the developer.",
734 "Merge imports from the same crate into a single use statement. Conversely, imports from different crates are split into separate statements.",
735 "Merge imports from the same module into a single use statement. Conversely, imports from different modules are split into separate statements.",
736 "Flatten imports so that each has its own use statement."
739 "rust-analyzer.imports.group.enable": {
740 "markdownDescription": "Group inserted imports by the [following order](https://rust-analyzer.github.io/manual.html#auto-import). Groups are separated by newlines.",
744 "rust-analyzer.imports.merge.glob": {
745 "markdownDescription": "Whether to allow import insertion to merge new imports into single path glob imports like `use std::fmt::*;`.",
749 "rust-analyzer.imports.prefix": {
750 "markdownDescription": "The path structure for newly inserted paths to use.",
758 "enumDescriptions": [
759 "Insert import paths relative to the current module, using up to one `super` prefix if the parent module contains the requested item.",
760 "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.",
761 "Force import paths to be absolute by always starting them with `crate` or the extern crate name they come from."
764 "rust-analyzer.inlayHints.chainingHints.enable": {
765 "markdownDescription": "Whether to show inlay type hints for method chains.",
769 "rust-analyzer.inlayHints.closureReturnTypeHints.enable": {
770 "markdownDescription": "Whether to show inlay type hints for return types of closures with blocks.",
774 "rust-analyzer.inlayHints.lifetimeElisionHints.enable": {
775 "markdownDescription": "Whether to show inlay type hints for elided lifetimes in function signatures.",
786 "enumDescriptions": [
787 "Always show lifetime elision hints.",
788 "Never show lifetime elision hints.",
789 "Only show lifetime elision hints if a return type is involved."
792 "rust-analyzer.inlayHints.lifetimeElisionHints.useParameterNames": {
793 "markdownDescription": "Whether to prefer using parameter names as the name for elided lifetime hints if possible.",
797 "rust-analyzer.inlayHints.maxLength": {
798 "markdownDescription": "Maximum length for inlay hints. Set to null to have an unlimited length.",
806 "rust-analyzer.inlayHints.parameterHints.enable": {
807 "markdownDescription": "Whether to show function parameter name inlay hints at the call\nsite.",
811 "rust-analyzer.inlayHints.reborrowHints.enable": {
812 "markdownDescription": "Whether to show inlay type hints for compiler inserted reborrows.",
816 "rust-analyzer.inlayHints.renderColons": {
817 "markdownDescription": "Whether to render leading colons for type hints, and trailing colons for parameter hints.",
821 "rust-analyzer.inlayHints.typeHints.enable": {
822 "markdownDescription": "Whether to show inlay type hints for variables.",
826 "rust-analyzer.inlayHints.typeHints.hideNamedConstructor": {
827 "markdownDescription": "Whether to hide inlay type hints for constructors.",
831 "rust-analyzer.joinLines.joinAssignments": {
832 "markdownDescription": "Join lines merges consecutive declaration and initialization of an assignment.",
836 "rust-analyzer.joinLines.joinElseIf": {
837 "markdownDescription": "Join lines inserts else between consecutive ifs.",
841 "rust-analyzer.joinLines.removeTrailingComma": {
842 "markdownDescription": "Join lines removes trailing commas.",
846 "rust-analyzer.joinLines.unwrapTrivialBlock": {
847 "markdownDescription": "Join lines unwraps trivial blocks.",
851 "rust-analyzer.lens.debug.enable": {
852 "markdownDescription": "Whether to show `Debug` lens. Only applies when\n`#rust-analyzer.lens.enable#` is set.",
856 "rust-analyzer.lens.enable": {
857 "markdownDescription": "Whether to show CodeLens in Rust files.",
861 "rust-analyzer.lens.forceCustomCommands": {
862 "markdownDescription": "Internal config: use custom client-side commands even when the\nclient doesn't set the corresponding capability.",
866 "rust-analyzer.lens.implementations.enable": {
867 "markdownDescription": "Whether to show `Implementations` lens. Only applies when\n`#rust-analyzer.lens.enable#` is set.",
871 "rust-analyzer.lens.references.adt.enable": {
872 "markdownDescription": "Whether to show `References` lens for Struct, Enum, and Union.\nOnly applies when `#rust-analyzer.lens.enable#` is set.",
876 "rust-analyzer.lens.references.enumVariant.enable": {
877 "markdownDescription": "Whether to show `References` lens for Enum Variants.\nOnly applies when `#rust-analyzer.lens.enable#` is set.",
881 "rust-analyzer.lens.references.method.enable": {
882 "markdownDescription": "Whether to show `Method References` lens. Only applies when\n`#rust-analyzer.lens.enable#` is set.",
886 "rust-analyzer.lens.references.trait.enable": {
887 "markdownDescription": "Whether to show `References` lens for Trait.\nOnly applies when `#rust-analyzer.lens.enable#` is set.",
891 "rust-analyzer.lens.run.enable": {
892 "markdownDescription": "Whether to show `Run` lens. Only applies when\n`#rust-analyzer.lens.enable#` is set.",
896 "rust-analyzer.linkedProjects": {
897 "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.",
907 "rust-analyzer.lru.capacity": {
908 "markdownDescription": "Number of syntax trees rust-analyzer keeps in memory. Defaults to 128.",
916 "rust-analyzer.notifications.cargoTomlNotFound": {
917 "markdownDescription": "Whether to show `can't find Cargo.toml` error message.",
921 "rust-analyzer.primeCaches.enable": {
922 "markdownDescription": "Warm up caches on project load.",
926 "rust-analyzer.primeCaches.numThreads": {
927 "markdownDescription": "How many worker threads to to handle priming caches. The default `0` means to pick automatically.",
933 "rust-analyzer.procMacro.attributes.enable": {
934 "markdownDescription": "Expand attribute macros. Requires `#rust-analyzer.procMacro.enable#` to be set.",
938 "rust-analyzer.procMacro.enable": {
939 "markdownDescription": "Enable support for procedural macros, implies `#rust-analyzer.cargo.buildScripts.enable#`.",
943 "rust-analyzer.procMacro.ignored": {
944 "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.",
948 "rust-analyzer.procMacro.server": {
949 "markdownDescription": "Internal config, path to proc-macro server executable (typically,\nthis is rust-analyzer itself, but we override this in tests).",
956 "rust-analyzer.runnables.command": {
957 "markdownDescription": "Command to be executed instead of 'cargo' for runnables.",
964 "rust-analyzer.runnables.extraArgs": {
965 "markdownDescription": "Additional arguments to be passed to cargo for runnables such as\ntests or binaries. For example, it may be `--release`.",
972 "rust-analyzer.rustc.source": {
973 "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.",
980 "rust-analyzer.rustfmt.extraArgs": {
981 "markdownDescription": "Additional arguments to `rustfmt`.",
988 "rust-analyzer.rustfmt.overrideCommand": {
989 "markdownDescription": "Advanced option, fully override the command rust-analyzer uses for\nformatting.",
999 "rust-analyzer.rustfmt.rangeFormatting.enable": {
1000 "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.",
1004 "rust-analyzer.semanticHighlighting.strings.enable": {
1005 "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.",
1009 "rust-analyzer.signatureInfo.detail": {
1010 "markdownDescription": "Show full signature of the callable. Only shows parameters if disabled.",
1017 "enumDescriptions": [
1018 "Show the entire signature.",
1019 "Show only the parameters."
1022 "rust-analyzer.signatureInfo.documentation.enable": {
1023 "markdownDescription": "Show documentation.",
1027 "rust-analyzer.workspace.symbol.search.kind": {
1028 "markdownDescription": "Workspace symbol search kind.",
1029 "default": "only_types",
1035 "enumDescriptions": [
1036 "Search for types only",
1037 "Search for all symbols kinds"
1040 "rust-analyzer.workspace.symbol.search.limit": {
1041 "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.",
1046 "rust-analyzer.workspace.symbol.search.scope": {
1047 "markdownDescription": "Workspace symbol search scope.",
1048 "default": "workspace",
1052 "workspace_and_dependencies"
1054 "enumDescriptions": [
1055 "Search in current workspace only",
1056 "Search in current workspace and dependencies"
1059 "$generated-end": {}
1062 "problemPatterns": [
1067 "regexp": "^(warning|warn|error)(?:\\[(.*?)\\])?: (.*)$",
1073 "regexp": "^[\\s->=]*(.*?):(\\d*):(\\d*)\\s*$",
1081 "name": "rustc-json",
1084 "regexp": "^.*\"message\":{\"message\":\"([^\"]*).*?\"file_name\":\"([^\"]+).*?\"line_start\":(\\d+).*?\"line_end\":(\\d+).*?\"column_start\":(\\d+).*?\"column_end\":(\\d+).*}$",
1097 "id": "ra_syntax_tree",
1111 "configuration": "language-configuration.json"
1116 "language": "ra_syntax_tree",
1117 "scopeName": "source.ra_syntax_tree",
1118 "path": "ra_syntax_tree.tmGrammar.json"
1121 "problemMatchers": [
1133 "name": "rustc-json",
1140 "pattern": "$rustc-json"
1143 "name": "rustc-watch",
1151 "beginsPattern": "^\\[Running\\b",
1152 "endsPattern": "^\\[Finished running\\b"
1159 "id": "rust_analyzer.syntaxTreeBorder",
1160 "description": "Color of the border displayed in the Rust source code for the selected syntax node (see \"Show Syntax Tree\" command)",
1164 "highContrast": "#b700ff"
1168 "semanticTokenTypes": [
1171 "description": "Style for < or >",
1172 "superType": "punctuation"
1176 "description": "Style for arithmetic operators",
1177 "superType": "operator"
1181 "description": "Style for attributes"
1184 "id": "attributeBracket",
1185 "description": "Style for attribute invocation brackets, that is the `#[` and `]` tokens",
1186 "superType": "punctuation"
1190 "description": "Style for bitwise operators",
1191 "superType": "operator"
1195 "description": "Style for boolean literals",
1196 "superType": "keyword"
1200 "description": "Style for { or }",
1201 "superType": "punctuation"
1205 "description": "Style for [ or ]",
1206 "superType": "punctuation"
1209 "id": "builtinAttribute",
1210 "description": "Style for builtin attributes",
1211 "superType": "attribute"
1214 "id": "builtinType",
1215 "description": "Style for builtin types",
1220 "description": "Style for character literals",
1225 "description": "Style for :",
1226 "superType": "punctuation"
1230 "description": "Style for ,",
1231 "superType": "punctuation"
1235 "description": "Style for comparison operators",
1236 "superType": "operator"
1239 "id": "constParameter",
1240 "description": "Style for const generics"
1244 "description": "Style for derives",
1245 "superType": "attribute"
1249 "description": "Style for .",
1250 "superType": "punctuation"
1253 "id": "escapeSequence",
1254 "description": "Style for char escapes in strings"
1257 "id": "formatSpecifier",
1258 "description": "Style for {} placeholders in format strings"
1262 "description": "Style for labels"
1266 "description": "Style for lifetimes"
1270 "description": "Style for logic operators",
1271 "superType": "operator"
1275 "description": "Style for the ! token of macro calls",
1276 "superType": "punctuation"
1280 "description": "Style for operators",
1281 "superType": "punctuation"
1284 "id": "parenthesis",
1285 "description": "Style for ( or )",
1286 "superType": "punctuation"
1289 "id": "punctuation",
1290 "description": "Style for generic punctuation"
1293 "id": "selfKeyword",
1294 "description": "Style for the self keyword",
1295 "superType": "keyword"
1298 "id": "selfTypeKeyword",
1299 "description": "Style for the self type keyword",
1300 "superType": "keyword"
1304 "description": "Style for ;",
1305 "superType": "punctuation"
1309 "description": "Style for type aliases",
1314 "description": "Style for C-style untagged unions",
1318 "id": "unresolvedReference",
1319 "description": "Style for names which can not be resolved due to compilation errors"
1322 "semanticTokenModifiers": [
1325 "description": "Style for async functions and the `async` and `await` keywords"
1329 "description": "Style for elements within attributes"
1333 "description": "Style for locals whose types implements one of the `Fn*` traits"
1337 "description": "Style for compile-time constants"
1341 "description": "Style for locals that are being consumed when use in a function call"
1344 "id": "controlFlow",
1345 "description": "Style for control-flow related tokens, this includes the `?` operator"
1349 "description": "Style for names resolving to a crate root"
1353 "description": "Style for doc-string injected highlighting like rust source blocks in documentation"
1356 "id": "intraDocLink",
1357 "description": "Style for intra doc links in doc-strings"
1361 "description": "Style for items that are defined outside of the current crate"
1365 "description": "Style for mutable locals and statics as well as functions taking `&mut self`"
1369 "description": "Style tems that are from the current crate and are `pub`"
1373 "description": "Style for locals behind a reference and functions taking `self` by reference"
1377 "description": "Style for associated trait items"
1381 "description": "Style for unsafe operations, like unsafe function calls, as well as the `unsafe` token"
1384 "semanticTokenScopes": [
1389 "meta.attribute.rust"
1392 "constant.language.boolean.rust"
1395 "support.type.primitive.rust"
1398 "constant.other.caps.rust"
1401 "entity.name.type.enum.rust"
1403 "formatSpecifier": [
1404 "punctuation.section.embedded.rust"
1407 "entity.name.function.rust"
1410 "entity.name.type.trait.rust"
1413 "keyword.other.rust"
1415 "keyword.controlFlow": [
1416 "keyword.control.rust"
1419 "storage.modifier.lifetime.rust"
1422 "entity.name.function.macro.rust"
1425 "entity.name.function.rust"
1428 "entity.name.type.struct.rust"
1431 "entity.name.type.declaration.rust"
1434 "entity.name.type.union.rust"
1437 "variable.other.rust"
1439 "variable.constant": [
1440 "variable.other.constant.rust"
1451 "command": "rust-analyzer.syntaxTree",
1452 "when": "inRustProject"
1455 "command": "rust-analyzer.viewHir",
1456 "when": "inRustProject"
1459 "command": "rust-analyzer.viewFileText",
1460 "when": "inRustProject"
1463 "command": "rust-analyzer.expandMacro",
1464 "when": "inRustProject"
1467 "command": "rust-analyzer.matchingBrace",
1468 "when": "inRustProject"
1471 "command": "rust-analyzer.parentModule",
1472 "when": "inRustProject"
1475 "command": "rust-analyzer.joinLines",
1476 "when": "inRustProject"
1479 "command": "rust-analyzer.run",
1480 "when": "inRustProject"
1483 "command": "rust-analyzer.debug",
1484 "when": "inRustProject"
1487 "command": "rust-analyzer.newDebugConfig",
1488 "when": "inRustProject"
1491 "command": "rust-analyzer.analyzerStatus",
1492 "when": "inRustProject"
1495 "command": "rust-analyzer.memoryUsage",
1496 "when": "inRustProject"
1499 "command": "rust-analyzer.reloadWorkspace",
1500 "when": "inRustProject"
1503 "command": "rust-analyzer.reload",
1504 "when": "inRustProject"
1507 "command": "rust-analyzer.onEnter",
1508 "when": "inRustProject"
1511 "command": "rust-analyzer.ssr",
1512 "when": "inRustProject"
1515 "command": "rust-analyzer.serverVersion",
1516 "when": "inRustProject"
1519 "command": "rust-analyzer.toggleInlayHints",
1520 "when": "inRustProject"
1523 "command": "rust-analyzer.openDocs",
1524 "when": "inRustProject"
1527 "command": "rust-analyzer.openCargoToml",
1528 "when": "inRustProject"
1533 "command": "rust-analyzer.peekTests",
1534 "when": "inRustProject",
1535 "group": "navigation@1000"