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.",
500 "enumDescriptions": [
501 "Pass `--all-features` to cargo"
515 "rust-analyzer.checkOnSave.noDefaultFeatures": {
516 "markdownDescription": "Do not activate the `default` feature.",
523 "rust-analyzer.checkOnSave.overrideCommand": {
524 "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.",
534 "rust-analyzer.checkOnSave.target": {
535 "markdownDescription": "Check for a specific target. Defaults to\n`#rust-analyzer.cargo.target#`.",
542 "rust-analyzer.completion.autoimport.enable": {
543 "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.",
547 "rust-analyzer.completion.autoself.enable": {
548 "markdownDescription": "Toggles the additional completions that automatically show method calls and field accesses\nwith `self` prefixed to them when inside a method.",
552 "rust-analyzer.completion.callable.snippets": {
553 "markdownDescription": "Whether to add parenthesis and argument snippets when completing function.",
554 "default": "fill_arguments",
562 "enumDescriptions": [
563 "Add call parentheses and pre-fill arguments",
564 "Add call parentheses"
572 "rust-analyzer.completion.postfix.enable": {
573 "markdownDescription": "Whether to show postfix snippets like `dbg`, `if`, `not`, etc.",
577 "rust-analyzer.completion.privateEditable.enable": {
578 "markdownDescription": "Enables completions of private items and fields that are defined in the current workspace even if they are not visible at the current position.",
582 "rust-analyzer.completion.snippets.custom": {
583 "markdownDescription": "Custom completion snippets.",
587 "body": "Arc::new(${receiver})",
588 "requires": "std::sync::Arc",
589 "description": "Put the expression into an `Arc`",
594 "body": "Rc::new(${receiver})",
595 "requires": "std::rc::Rc",
596 "description": "Put the expression into an `Rc`",
601 "body": "Box::pin(${receiver})",
602 "requires": "std::boxed::Box",
603 "description": "Put the expression into a pinned `Box`",
608 "body": "Ok(${receiver})",
609 "description": "Wrap the expression in a `Result::Ok`",
614 "body": "Err(${receiver})",
615 "description": "Wrap the expression in a `Result::Err`",
620 "body": "Some(${receiver})",
621 "description": "Wrap the expression in an `Option::Some`",
627 "rust-analyzer.diagnostics.disabled": {
628 "markdownDescription": "List of rust-analyzer diagnostics to disable.",
636 "rust-analyzer.diagnostics.enable": {
637 "markdownDescription": "Whether to show native rust-analyzer diagnostics.",
641 "rust-analyzer.diagnostics.experimental.enable": {
642 "markdownDescription": "Whether to show experimental rust-analyzer diagnostics that might\nhave more false positives than usual.",
646 "rust-analyzer.diagnostics.remapPrefix": {
647 "markdownDescription": "Map of prefixes to be substituted when parsing diagnostic file paths.\nThis should be the reverse mapping of what is passed to `rustc` as `--remap-path-prefix`.",
651 "rust-analyzer.diagnostics.warningsAsHint": {
652 "markdownDescription": "List of warnings that should be displayed with hint severity.\n\nThe warnings will be indicated by faded text or three dots in code\nand will not show up in the `Problems Panel`.",
659 "rust-analyzer.diagnostics.warningsAsInfo": {
660 "markdownDescription": "List of warnings that should be displayed with info severity.\n\nThe warnings will be indicated by a blue squiggly underline in code\nand a blue icon in the `Problems Panel`.",
667 "rust-analyzer.files.excludeDirs": {
668 "markdownDescription": "These directories will be ignored by rust-analyzer. They are\nrelative to the workspace root, and globs are not supported. You may\nalso need to add the folders to Code's `files.watcherExclude`.",
675 "rust-analyzer.files.watcher": {
676 "markdownDescription": "Controls file watching implementation.",
680 "rust-analyzer.highlightRelated.breakPoints.enable": {
681 "markdownDescription": "Enables highlighting of related references while the cursor is on `break`, `loop`, `while`, or `for` keywords.",
685 "rust-analyzer.highlightRelated.exitPoints.enable": {
686 "markdownDescription": "Enables highlighting of all exit points while the cursor is on any `return`, `?`, `fn`, or return type arrow (`->`).",
690 "rust-analyzer.highlightRelated.references.enable": {
691 "markdownDescription": "Enables highlighting of related references while the cursor is on any identifier.",
695 "rust-analyzer.highlightRelated.yieldPoints.enable": {
696 "markdownDescription": "Enables highlighting of all break points for a loop or block context while the cursor is on any `async` or `await` keywords.",
700 "rust-analyzer.hover.actions.debug.enable": {
701 "markdownDescription": "Whether to show `Debug` action. Only applies when\n`#rust-analyzer.hoverActions.enable#` is set.",
705 "rust-analyzer.hover.actions.enable": {
706 "markdownDescription": "Whether to show HoverActions in Rust files.",
710 "rust-analyzer.hover.actions.gotoTypeDef.enable": {
711 "markdownDescription": "Whether to show `Go to Type Definition` action. Only applies when\n`#rust-analyzer.hoverActions.enable#` is set.",
715 "rust-analyzer.hover.actions.implementations.enable": {
716 "markdownDescription": "Whether to show `Implementations` action. Only applies when\n`#rust-analyzer.hoverActions.enable#` is set.",
720 "rust-analyzer.hover.actions.references.enable": {
721 "markdownDescription": "Whether to show `References` action. Only applies when\n`#rust-analyzer.hoverActions.enable#` is set.",
725 "rust-analyzer.hover.actions.run.enable": {
726 "markdownDescription": "Whether to show `Run` action. Only applies when\n`#rust-analyzer.hoverActions.enable#` is set.",
730 "rust-analyzer.hover.documentation.enable": {
731 "markdownDescription": "Whether to show documentation on hover.",
735 "rust-analyzer.hover.links.enable": {
736 "markdownDescription": "Use markdown syntax for links in hover.",
740 "rust-analyzer.imports.granularity.enforce": {
741 "markdownDescription": "Whether to enforce the import granularity setting for all files. If set to false rust-analyzer will try to keep import styles consistent per file.",
745 "rust-analyzer.imports.granularity.group": {
746 "markdownDescription": "How imports should be grouped into use statements.",
755 "enumDescriptions": [
756 "Do not change the granularity of any imports and preserve the original structure written by the developer.",
757 "Merge imports from the same crate into a single use statement. Conversely, imports from different crates are split into separate statements.",
758 "Merge imports from the same module into a single use statement. Conversely, imports from different modules are split into separate statements.",
759 "Flatten imports so that each has its own use statement."
762 "rust-analyzer.imports.group.enable": {
763 "markdownDescription": "Group inserted imports by the [following order](https://rust-analyzer.github.io/manual.html#auto-import). Groups are separated by newlines.",
767 "rust-analyzer.imports.merge.glob": {
768 "markdownDescription": "Whether to allow import insertion to merge new imports into single path glob imports like `use std::fmt::*;`.",
772 "rust-analyzer.imports.prefix": {
773 "markdownDescription": "The path structure for newly inserted paths to use.",
781 "enumDescriptions": [
782 "Insert import paths relative to the current module, using up to one `super` prefix if the parent module contains the requested item.",
783 "Insert import paths relative to the current module, using up to one `super` prefix if the parent module contains the requested item. Prefixes `self` in front of the path if it starts with a module.",
784 "Force import paths to be absolute by always starting them with `crate` or the extern crate name they come from."
787 "rust-analyzer.inlayHints.chainingHints.enable": {
788 "markdownDescription": "Whether to show inlay type hints for method chains.",
792 "rust-analyzer.inlayHints.closureReturnTypeHints.enable": {
793 "markdownDescription": "Whether to show inlay type hints for return types of closures with blocks.",
797 "rust-analyzer.inlayHints.lifetimeElisionHints.enable": {
798 "markdownDescription": "Whether to show inlay type hints for elided lifetimes in function signatures.",
808 "enumDescriptions": [
809 "Always show lifetime elision hints.",
810 "Never show lifetime elision hints.",
811 "Only show lifetime elision hints if a return type is involved."
819 "rust-analyzer.inlayHints.lifetimeElisionHints.useParameterNames": {
820 "markdownDescription": "Whether to prefer using parameter names as the name for elided lifetime hints if possible.",
824 "rust-analyzer.inlayHints.maxLength": {
825 "markdownDescription": "Maximum length for inlay hints. Set to null to have an unlimited length.",
833 "rust-analyzer.inlayHints.parameterHints.enable": {
834 "markdownDescription": "Whether to show function parameter name inlay hints at the call\nsite.",
838 "rust-analyzer.inlayHints.reborrowHints.enable": {
839 "markdownDescription": "Whether to show inlay type hints for compiler inserted reborrows.",
849 "enumDescriptions": [
850 "Always show reborrow hints.",
851 "Never show reborrow hints.",
852 "Only show mutable reborrow hints."
860 "rust-analyzer.inlayHints.renderColons": {
861 "markdownDescription": "Whether to render leading colons for type hints, and trailing colons for parameter hints.",
865 "rust-analyzer.inlayHints.typeHints.enable": {
866 "markdownDescription": "Whether to show inlay type hints for variables.",
870 "rust-analyzer.inlayHints.typeHints.hideNamedConstructor": {
871 "markdownDescription": "Whether to hide inlay type hints for constructors.",
875 "rust-analyzer.joinLines.joinAssignments": {
876 "markdownDescription": "Join lines merges consecutive declaration and initialization of an assignment.",
880 "rust-analyzer.joinLines.joinElseIf": {
881 "markdownDescription": "Join lines inserts else between consecutive ifs.",
885 "rust-analyzer.joinLines.removeTrailingComma": {
886 "markdownDescription": "Join lines removes trailing commas.",
890 "rust-analyzer.joinLines.unwrapTrivialBlock": {
891 "markdownDescription": "Join lines unwraps trivial blocks.",
895 "rust-analyzer.lens.debug.enable": {
896 "markdownDescription": "Whether to show `Debug` lens. Only applies when\n`#rust-analyzer.lens.enable#` is set.",
900 "rust-analyzer.lens.enable": {
901 "markdownDescription": "Whether to show CodeLens in Rust files.",
905 "rust-analyzer.lens.forceCustomCommands": {
906 "markdownDescription": "Internal config: use custom client-side commands even when the\nclient doesn't set the corresponding capability.",
910 "rust-analyzer.lens.implementations.enable": {
911 "markdownDescription": "Whether to show `Implementations` lens. Only applies when\n`#rust-analyzer.lens.enable#` is set.",
915 "rust-analyzer.lens.references.adt.enable": {
916 "markdownDescription": "Whether to show `References` lens for Struct, Enum, and Union.\nOnly applies when `#rust-analyzer.lens.enable#` is set.",
920 "rust-analyzer.lens.references.enumVariant.enable": {
921 "markdownDescription": "Whether to show `References` lens for Enum Variants.\nOnly applies when `#rust-analyzer.lens.enable#` is set.",
925 "rust-analyzer.lens.references.method.enable": {
926 "markdownDescription": "Whether to show `Method References` lens. Only applies when\n`#rust-analyzer.lens.enable#` is set.",
930 "rust-analyzer.lens.references.trait.enable": {
931 "markdownDescription": "Whether to show `References` lens for Trait.\nOnly applies when `#rust-analyzer.lens.enable#` is set.",
935 "rust-analyzer.lens.run.enable": {
936 "markdownDescription": "Whether to show `Run` lens. Only applies when\n`#rust-analyzer.lens.enable#` is set.",
940 "rust-analyzer.linkedProjects": {
941 "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.",
951 "rust-analyzer.lru.capacity": {
952 "markdownDescription": "Number of syntax trees rust-analyzer keeps in memory. Defaults to 128.",
960 "rust-analyzer.notifications.cargoTomlNotFound": {
961 "markdownDescription": "Whether to show `can't find Cargo.toml` error message.",
965 "rust-analyzer.procMacro.attributes.enable": {
966 "markdownDescription": "Expand attribute macros. Requires `#rust-analyzer.procMacro.enable#` to be set.",
970 "rust-analyzer.procMacro.enable": {
971 "markdownDescription": "Enable support for procedural macros, implies `#rust-analyzer.cargo.buildScripts.enable#`.",
975 "rust-analyzer.procMacro.ignored": {
976 "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.",
980 "rust-analyzer.procMacro.server": {
981 "markdownDescription": "Internal config, path to proc-macro server executable (typically,\nthis is rust-analyzer itself, but we override this in tests).",
988 "rust-analyzer.runnables.command": {
989 "markdownDescription": "Command to be executed instead of 'cargo' for runnables.",
996 "rust-analyzer.runnables.extraArgs": {
997 "markdownDescription": "Additional arguments to be passed to cargo for runnables such as\ntests or binaries. For example, it may be `--release`.",
1004 "rust-analyzer.rustc.source": {
1005 "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.",
1012 "rust-analyzer.rustfmt.extraArgs": {
1013 "markdownDescription": "Additional arguments to `rustfmt`.",
1020 "rust-analyzer.rustfmt.overrideCommand": {
1021 "markdownDescription": "Advanced option, fully override the command rust-analyzer uses for\nformatting.",
1031 "rust-analyzer.rustfmt.rangeFormatting.enable": {
1032 "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.",
1036 "rust-analyzer.semanticHighlighting.strings.enable": {
1037 "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.",
1041 "rust-analyzer.signatureInfo.detail": {
1042 "markdownDescription": "Show full signature of the callable. Only shows parameters if disabled.",
1049 "enumDescriptions": [
1050 "Show the entire signature.",
1051 "Show only the parameters."
1054 "rust-analyzer.signatureInfo.documentation.enable": {
1055 "markdownDescription": "Show documentation.",
1059 "rust-analyzer.workspace.symbol.search.kind": {
1060 "markdownDescription": "Workspace symbol search kind.",
1061 "default": "only_types",
1067 "enumDescriptions": [
1068 "Search for types only",
1069 "Search for all symbols kinds"
1072 "rust-analyzer.workspace.symbol.search.limit": {
1073 "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.",
1078 "rust-analyzer.workspace.symbol.search.scope": {
1079 "markdownDescription": "Workspace symbol search scope.",
1080 "default": "workspace",
1084 "workspace_and_dependencies"
1086 "enumDescriptions": [
1087 "Search in current workspace only",
1088 "Search in current workspace and dependencies"
1091 "$generated-end": {}
1094 "problemPatterns": [
1099 "regexp": "^(warning|warn|error)(?:\\[(.*?)\\])?: (.*)$",
1105 "regexp": "^[\\s->=]*(.*?):(\\d*):(\\d*)\\s*$",
1113 "name": "rustc-json",
1116 "regexp": "^.*\"message\":{\"message\":\"([^\"]*).*?\"file_name\":\"([^\"]+).*?\"line_start\":(\\d+).*?\"line_end\":(\\d+).*?\"column_start\":(\\d+).*?\"column_end\":(\\d+).*}$",
1129 "id": "ra_syntax_tree",
1143 "configuration": "language-configuration.json"
1148 "language": "ra_syntax_tree",
1149 "scopeName": "source.ra_syntax_tree",
1150 "path": "ra_syntax_tree.tmGrammar.json"
1153 "problemMatchers": [
1165 "name": "rustc-json",
1172 "pattern": "$rustc-json"
1175 "name": "rustc-watch",
1183 "beginsPattern": "^\\[Running\\b",
1184 "endsPattern": "^\\[Finished running\\b"
1191 "id": "rust_analyzer.syntaxTreeBorder",
1192 "description": "Color of the border displayed in the Rust source code for the selected syntax node (see \"Show Syntax Tree\" command)",
1196 "highContrast": "#b700ff"
1200 "semanticTokenTypes": [
1203 "description": "Style for < or >",
1204 "superType": "punctuation"
1208 "description": "Style for arithmetic operators",
1209 "superType": "operator"
1213 "description": "Style for attributes"
1216 "id": "attributeBracket",
1217 "description": "Style for attribute invocation brackets, that is the `#[` and `]` tokens",
1218 "superType": "punctuation"
1222 "description": "Style for bitwise operators",
1223 "superType": "operator"
1227 "description": "Style for boolean literals",
1228 "superType": "keyword"
1232 "description": "Style for { or }",
1233 "superType": "punctuation"
1237 "description": "Style for [ or ]",
1238 "superType": "punctuation"
1241 "id": "builtinAttribute",
1242 "description": "Style for builtin attributes",
1243 "superType": "attribute"
1246 "id": "builtinType",
1247 "description": "Style for builtin types",
1252 "description": "Style for character literals",
1253 "superType": "string"
1257 "description": "Style for :",
1258 "superType": "punctuation"
1262 "description": "Style for ,",
1263 "superType": "punctuation"
1267 "description": "Style for comparison operators",
1268 "superType": "operator"
1271 "id": "constParameter",
1272 "description": "Style for const generics"
1276 "description": "Style for derives",
1277 "superType": "attribute"
1281 "description": "Style for .",
1282 "superType": "punctuation"
1285 "id": "escapeSequence",
1286 "description": "Style for char escapes in strings"
1289 "id": "formatSpecifier",
1290 "description": "Style for {} placeholders in format strings"
1294 "description": "Style for labels"
1298 "description": "Style for lifetimes"
1302 "description": "Style for logic operators",
1303 "superType": "operator"
1307 "description": "Style for the ! token of macro calls",
1308 "superType": "punctuation"
1312 "description": "Style for operators",
1313 "superType": "punctuation"
1316 "id": "parenthesis",
1317 "description": "Style for ( or )",
1318 "superType": "punctuation"
1321 "id": "punctuation",
1322 "description": "Style for generic punctuation"
1325 "id": "selfKeyword",
1326 "description": "Style for the self keyword",
1327 "superType": "keyword"
1330 "id": "selfTypeKeyword",
1331 "description": "Style for the self type keyword",
1332 "superType": "keyword"
1336 "description": "Style for ;",
1337 "superType": "punctuation"
1341 "description": "Style for type aliases",
1346 "description": "Style for C-style untagged unions",
1350 "id": "unresolvedReference",
1351 "description": "Style for names which can not be resolved due to compilation errors"
1354 "semanticTokenModifiers": [
1357 "description": "Style for async functions and the `async` and `await` keywords"
1361 "description": "Style for elements within attributes"
1365 "description": "Style for locals whose types implements one of the `Fn*` traits"
1369 "description": "Style for compile-time constants"
1373 "description": "Style for locals that are being consumed when use in a function call"
1376 "id": "controlFlow",
1377 "description": "Style for control-flow related tokens, this includes the `?` operator"
1381 "description": "Style for names resolving to a crate root"
1385 "description": "Style for doc-string injected highlighting like rust source blocks in documentation"
1388 "id": "intraDocLink",
1389 "description": "Style for intra doc links in doc-strings"
1393 "description": "Style for items that are defined outside of the current crate"
1397 "description": "Style for mutable locals and statics as well as functions taking `&mut self`"
1401 "description": "Style tems that are from the current crate and are `pub`"
1405 "description": "Style for locals behind a reference and functions taking `self` by reference"
1409 "description": "Style for associated trait items"
1413 "description": "Style for unsafe operations, like unsafe function calls, as well as the `unsafe` token"
1416 "semanticTokenScopes": [
1421 "meta.attribute.rust"
1424 "constant.language.boolean.rust"
1427 "support.type.primitive.rust"
1430 "constant.other.caps.rust"
1433 "entity.name.type.enum.rust"
1435 "formatSpecifier": [
1436 "punctuation.section.embedded.rust"
1439 "entity.name.function.rust"
1442 "entity.name.type.trait.rust"
1445 "keyword.other.rust"
1447 "keyword.controlFlow": [
1448 "keyword.control.rust"
1451 "storage.modifier.lifetime.rust"
1454 "entity.name.function.macro.rust"
1457 "entity.name.function.rust"
1460 "entity.name.type.struct.rust"
1463 "entity.name.type.declaration.rust"
1466 "entity.name.type.union.rust"
1469 "variable.other.rust"
1471 "variable.constant": [
1472 "variable.other.constant.rust"
1483 "command": "rust-analyzer.syntaxTree",
1484 "when": "inRustProject"
1487 "command": "rust-analyzer.viewHir",
1488 "when": "inRustProject"
1491 "command": "rust-analyzer.viewFileText",
1492 "when": "inRustProject"
1495 "command": "rust-analyzer.expandMacro",
1496 "when": "inRustProject"
1499 "command": "rust-analyzer.matchingBrace",
1500 "when": "inRustProject"
1503 "command": "rust-analyzer.parentModule",
1504 "when": "inRustProject"
1507 "command": "rust-analyzer.joinLines",
1508 "when": "inRustProject"
1511 "command": "rust-analyzer.run",
1512 "when": "inRustProject"
1515 "command": "rust-analyzer.debug",
1516 "when": "inRustProject"
1519 "command": "rust-analyzer.newDebugConfig",
1520 "when": "inRustProject"
1523 "command": "rust-analyzer.analyzerStatus",
1524 "when": "inRustProject"
1527 "command": "rust-analyzer.memoryUsage",
1528 "when": "inRustProject"
1531 "command": "rust-analyzer.reloadWorkspace",
1532 "when": "inRustProject"
1535 "command": "rust-analyzer.reload",
1536 "when": "inRustProject"
1539 "command": "rust-analyzer.onEnter",
1540 "when": "inRustProject"
1543 "command": "rust-analyzer.ssr",
1544 "when": "inRustProject"
1547 "command": "rust-analyzer.serverVersion",
1548 "when": "inRustProject"
1551 "command": "rust-analyzer.toggleInlayHints",
1552 "when": "inRustProject"
1555 "command": "rust-analyzer.openDocs",
1556 "when": "inRustProject"
1559 "command": "rust-analyzer.openCargoToml",
1560 "when": "inRustProject"
1565 "command": "rust-analyzer.peekTests",
1566 "when": "inRustProject",
1567 "group": "navigation@1000"