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 "enableProposedApi": true,
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=node14",
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 "https-proxy-agent": "^5.0.0",
40 "node-fetch": "^2.6.1",
41 "vscode-languageclient": "^7.1.0-next.5",
43 "d3-graphviz": "^4.0.0"
46 "@types/glob": "^7.1.4",
47 "@types/mocha": "^8.2.3",
48 "@types/node": "~14.17.5",
49 "@types/node-fetch": "^2.5.11",
50 "@types/vscode": "^1.57.0",
51 "@typescript-eslint/eslint-plugin": "^4.28.2",
52 "@typescript-eslint/parser": "^4.28.2",
53 "esbuild": "^0.12.19",
58 "typescript": "^4.3.5",
59 "typescript-formatter": "^7.2.2",
61 "vscode-test": "^1.5.1"
65 "onCommand:rust-analyzer.analyzerStatus",
66 "onCommand:rust-analyzer.memoryUsage",
67 "onCommand:rust-analyzer.reloadWorkspace",
68 "workspaceContains:**/Cargo.toml"
93 "patternProperties": {
104 "command": "rust-analyzer.syntaxTree",
105 "title": "Show Syntax Tree",
106 "category": "Rust Analyzer"
109 "command": "rust-analyzer.viewHir",
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.reloadWorkspace",
180 "title": "Reload workspace",
181 "category": "Rust Analyzer"
184 "command": "rust-analyzer.reload",
185 "title": "Restart server",
186 "category": "Rust Analyzer"
189 "command": "rust-analyzer.updateGithubToken",
190 "title": "Update Github API token",
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.inlayHints.enable": {
300 "description": "Whether to show inlay hints."
302 "rust-analyzer.inlayHints.smallerHints": {
305 "description": "Whether inlay hints font size should be smaller than editor's font size."
307 "rust-analyzer.updates.channel": {
314 "markdownEnumDescriptions": [
315 "`stable` updates are shipped weekly, they don't contain cutting-edge features from VSCode proposed APIs but have less bugs in general.",
316 "`nightly` updates are shipped daily (extension updates automatically by downloading artifacts directly from GitHub), they contain cutting-edge features and latest bug fixes. These releases help us get your feedback very quickly and speed up rust-analyzer development **drastically**."
318 "markdownDescription": "Choose `nightly` updates to get the latest features and bug fixes every day. While `stable` releases occur weekly and don't contain cutting-edge features from VSCode proposed APIs."
320 "rust-analyzer.updates.askBeforeDownload": {
323 "description": "Whether to ask for permission before downloading any files from the Internet."
325 "rust-analyzer.server.path": {
330 "scope": "machine-overridable",
332 "markdownDescription": "Path to rust-analyzer executable (points to bundled binary by default). If this is set, then `#rust-analyzer.updates.channel#` setting is not used"
334 "rust-analyzer.server.extraEnv": {
340 "markdownDescription": "Extra environment variables that will be passed to the rust-analyzer executable. Useful for passing e.g. `RA_LOG` for debugging."
342 "rust-analyzer.trace.server": {
350 "enumDescriptions": [
356 "description": "Trace requests to the rust-analyzer (this is usually overly verbose and not recommended for regular users)."
358 "rust-analyzer.trace.extension": {
359 "description": "Enable logging of VS Code extensions itself.",
363 "rust-analyzer.debug.engine": {
367 "vadimcn.vscode-lldb",
371 "description": "Preferred debug engine.",
372 "markdownEnumDescriptions": [
373 "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).",
374 "Use [CodeLLDB](https://marketplace.visualstudio.com/items?itemName=vadimcn.vscode-lldb)",
375 "Use [MS C++ tools](https://marketplace.visualstudio.com/items?itemName=ms-vscode.cpptools)"
378 "rust-analyzer.debug.sourceFileMap": {
384 "description": "Optional source file mappings passed to the debug engine.",
386 "/rustc/<id>": "${env:USERPROFILE}/.rustup/toolchains/<toolchain-id>/lib/rustlib/src/rust"
389 "rust-analyzer.debug.openDebugPane": {
390 "markdownDescription": "Whether to open up the `Debug Panel` on debugging start.",
394 "rust-analyzer.debug.engineSettings": {
397 "markdownDescription": "Optional settings passed to the debug engine. Example: `{ \"lldb\": { \"terminal\":\"external\"} }`"
399 "$generated-start": {},
400 "rust-analyzer.assist.importGranularity": {
401 "markdownDescription": "How imports should be grouped into use statements.",
410 "enumDescriptions": [
411 "Do not change the granularity of any imports and preserve the original structure written by the developer.",
412 "Merge imports from the same crate into a single use statement. Conversely, imports from different crates are split into separate statements.",
413 "Merge imports from the same module into a single use statement. Conversely, imports from different modules are split into separate statements.",
414 "Flatten imports so that each has its own use statement."
417 "rust-analyzer.assist.importEnforceGranularity": {
418 "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.",
422 "rust-analyzer.assist.importPrefix": {
423 "markdownDescription": "The path structure for newly inserted paths to use.",
431 "enumDescriptions": [
432 "Insert import paths relative to the current module, using up to one `super` prefix if the parent module contains the requested item.",
433 "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.",
434 "Force import paths to be absolute by always starting them with `crate` or the extern crate name they come from."
437 "rust-analyzer.assist.importGroup": {
438 "markdownDescription": "Group inserted imports by the https://rust-analyzer.github.io/manual.html#auto-import[following order]. Groups are separated by newlines.",
442 "rust-analyzer.assist.allowMergingIntoGlobImports": {
443 "markdownDescription": "Whether to allow import insertion to merge new imports into single path glob imports like `use std::fmt::*;`.",
447 "rust-analyzer.callInfo.full": {
448 "markdownDescription": "Show function name and docs in parameter hints.",
452 "rust-analyzer.cargo.autoreload": {
453 "markdownDescription": "Automatically refresh project info via `cargo metadata` on\n`Cargo.toml` changes.",
457 "rust-analyzer.cargo.allFeatures": {
458 "markdownDescription": "Activate all available features (`--all-features`).",
462 "rust-analyzer.cargo.unsetTest": {
463 "markdownDescription": "Unsets `#[cfg(test)]` for the specified crates.",
472 "rust-analyzer.cargo.features": {
473 "markdownDescription": "List of features to activate.",
480 "rust-analyzer.cargo.runBuildScripts": {
481 "markdownDescription": "Run build scripts (`build.rs`) for more precise code analysis.",
485 "rust-analyzer.cargo.useRustcWrapperForBuildScripts": {
486 "markdownDescription": "Use `RUSTC_WRAPPER=rust-analyzer` when running build scripts to\navoid compiling unnecessary things.",
490 "rust-analyzer.cargo.noDefaultFeatures": {
491 "markdownDescription": "Do not activate the `default` feature.",
495 "rust-analyzer.cargo.target": {
496 "markdownDescription": "Compilation target (target triple).",
503 "rust-analyzer.cargo.noSysroot": {
504 "markdownDescription": "Internal config for debugging, disables loading of sysroot crates.",
508 "rust-analyzer.checkOnSave.enable": {
509 "markdownDescription": "Run specified `cargo check` command for diagnostics on save.",
513 "rust-analyzer.checkOnSave.allFeatures": {
514 "markdownDescription": "Check with all features (`--all-features`).\nDefaults to `#rust-analyzer.cargo.allFeatures#`.",
521 "rust-analyzer.checkOnSave.allTargets": {
522 "markdownDescription": "Check all targets and tests (`--all-targets`).",
526 "rust-analyzer.checkOnSave.command": {
527 "markdownDescription": "Cargo command to use for `cargo check`.",
531 "rust-analyzer.checkOnSave.noDefaultFeatures": {
532 "markdownDescription": "Do not activate the `default` feature.",
539 "rust-analyzer.checkOnSave.target": {
540 "markdownDescription": "Check for a specific target. Defaults to\n`#rust-analyzer.cargo.target#`.",
547 "rust-analyzer.checkOnSave.extraArgs": {
548 "markdownDescription": "Extra arguments for `cargo check`.",
555 "rust-analyzer.checkOnSave.features": {
556 "markdownDescription": "List of features to activate. Defaults to\n`#rust-analyzer.cargo.features#`.",
566 "rust-analyzer.checkOnSave.overrideCommand": {
567 "markdownDescription": "Advanced option, fully override the command rust-analyzer uses for\nchecking. The command should include `--message-format=json` or\nsimilar option.",
577 "rust-analyzer.completion.addCallArgumentSnippets": {
578 "markdownDescription": "Whether to add argument snippets when completing functions.\nOnly applies when `#rust-analyzer.completion.addCallParenthesis#` is set.",
582 "rust-analyzer.completion.addCallParenthesis": {
583 "markdownDescription": "Whether to add parenthesis when completing functions.",
587 "rust-analyzer.completion.postfix.enable": {
588 "markdownDescription": "Whether to show postfix snippets like `dbg`, `if`, `not`, etc.",
592 "rust-analyzer.completion.autoimport.enable": {
593 "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.",
597 "rust-analyzer.completion.autoself.enable": {
598 "markdownDescription": "Toggles the additional completions that automatically show method calls and field accesses\nwith `self` prefixed to them when inside a method.",
602 "rust-analyzer.diagnostics.enable": {
603 "markdownDescription": "Whether to show native rust-analyzer diagnostics.",
607 "rust-analyzer.diagnostics.enableExperimental": {
608 "markdownDescription": "Whether to show experimental rust-analyzer diagnostics that might\nhave more false positives than usual.",
612 "rust-analyzer.diagnostics.disabled": {
613 "markdownDescription": "List of rust-analyzer diagnostics to disable.",
621 "rust-analyzer.diagnostics.remapPrefix": {
622 "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`.",
626 "rust-analyzer.diagnostics.warningsAsHint": {
627 "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`.",
634 "rust-analyzer.diagnostics.warningsAsInfo": {
635 "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`.",
642 "rust-analyzer.experimental.procAttrMacros": {
643 "markdownDescription": "Expand attribute macros.",
647 "rust-analyzer.files.watcher": {
648 "markdownDescription": "Controls file watching implementation.",
652 "rust-analyzer.files.excludeDirs": {
653 "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`.",
660 "rust-analyzer.highlightRelated.references": {
661 "markdownDescription": "Enables highlighting of related references while hovering your mouse above any identifier.",
665 "rust-analyzer.highlightRelated.exitPoints": {
666 "markdownDescription": "Enables highlighting of all exit points while hovering your mouse above any `return`, `?`, or return type arrow (`->`).",
670 "rust-analyzer.highlightRelated.breakPoints": {
671 "markdownDescription": "Enables highlighting of related references while hovering your mouse `break`, `loop`, `while`, or `for` keywords.",
675 "rust-analyzer.highlightRelated.yieldPoints": {
676 "markdownDescription": "Enables highlighting of all break points for a loop or block context while hovering your mouse above any `async` or `await` keywords.",
680 "rust-analyzer.highlighting.strings": {
681 "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.",
685 "rust-analyzer.hover.documentation": {
686 "markdownDescription": "Whether to show documentation on hover.",
690 "rust-analyzer.hover.linksInHover": {
691 "markdownDescription": "Use markdown syntax for links in hover.",
695 "rust-analyzer.hoverActions.debug": {
696 "markdownDescription": "Whether to show `Debug` action. Only applies when\n`#rust-analyzer.hoverActions.enable#` is set.",
700 "rust-analyzer.hoverActions.enable": {
701 "markdownDescription": "Whether to show HoverActions in Rust files.",
705 "rust-analyzer.hoverActions.gotoTypeDef": {
706 "markdownDescription": "Whether to show `Go to Type Definition` action. Only applies when\n`#rust-analyzer.hoverActions.enable#` is set.",
710 "rust-analyzer.hoverActions.implementations": {
711 "markdownDescription": "Whether to show `Implementations` action. Only applies when\n`#rust-analyzer.hoverActions.enable#` is set.",
715 "rust-analyzer.hoverActions.references": {
716 "markdownDescription": "Whether to show `References` action. Only applies when\n`#rust-analyzer.hoverActions.enable#` is set.",
720 "rust-analyzer.hoverActions.run": {
721 "markdownDescription": "Whether to show `Run` action. Only applies when\n`#rust-analyzer.hoverActions.enable#` is set.",
725 "rust-analyzer.inlayHints.chainingHints": {
726 "markdownDescription": "Whether to show inlay type hints for method chains.",
730 "rust-analyzer.inlayHints.maxLength": {
731 "markdownDescription": "Maximum length for inlay hints. Set to null to have an unlimited length.",
739 "rust-analyzer.inlayHints.parameterHints": {
740 "markdownDescription": "Whether to show function parameter name inlay hints at the call\nsite.",
744 "rust-analyzer.inlayHints.typeHints": {
745 "markdownDescription": "Whether to show inlay type hints for variables.",
749 "rust-analyzer.joinLines.joinElseIf": {
750 "markdownDescription": "Join lines inserts else between consecutive ifs.",
754 "rust-analyzer.joinLines.removeTrailingComma": {
755 "markdownDescription": "Join lines removes trailing commas.",
759 "rust-analyzer.joinLines.unwrapTrivialBlock": {
760 "markdownDescription": "Join lines unwraps trivial blocks.",
764 "rust-analyzer.joinLines.joinAssignments": {
765 "markdownDescription": "Join lines merges consecutive declaration and initialization of an assignment.",
769 "rust-analyzer.lens.debug": {
770 "markdownDescription": "Whether to show `Debug` lens. Only applies when\n`#rust-analyzer.lens.enable#` is set.",
774 "rust-analyzer.lens.enable": {
775 "markdownDescription": "Whether to show CodeLens in Rust files.",
779 "rust-analyzer.lens.implementations": {
780 "markdownDescription": "Whether to show `Implementations` lens. Only applies when\n`#rust-analyzer.lens.enable#` is set.",
784 "rust-analyzer.lens.run": {
785 "markdownDescription": "Whether to show `Run` lens. Only applies when\n`#rust-analyzer.lens.enable#` is set.",
789 "rust-analyzer.lens.methodReferences": {
790 "markdownDescription": "Whether to show `Method References` lens. Only applies when\n`#rust-analyzer.lens.enable#` is set.",
794 "rust-analyzer.lens.references": {
795 "markdownDescription": "Whether to show `References` lens. Only applies when\n`#rust-analyzer.lens.enable#` is set.",
799 "rust-analyzer.lens.forceCustomCommands": {
800 "markdownDescription": "Internal config: use custom client-side commands even when the\nclient doesn't set the corresponding capability.",
804 "rust-analyzer.linkedProjects": {
805 "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.",
815 "rust-analyzer.lruCapacity": {
816 "markdownDescription": "Number of syntax trees rust-analyzer keeps in memory. Defaults to 128.",
824 "rust-analyzer.notifications.cargoTomlNotFound": {
825 "markdownDescription": "Whether to show `can't find Cargo.toml` error message.",
829 "rust-analyzer.procMacro.enable": {
830 "markdownDescription": "Enable support for procedural macros, implies `#rust-analyzer.cargo.runBuildScripts#`.",
834 "rust-analyzer.procMacro.server": {
835 "markdownDescription": "Internal config, path to proc-macro server executable (typically,\nthis is rust-analyzer itself, but we override this in tests).",
842 "rust-analyzer.runnables.overrideCargo": {
843 "markdownDescription": "Command to be executed instead of 'cargo' for runnables.",
850 "rust-analyzer.runnables.cargoExtraArgs": {
851 "markdownDescription": "Additional arguments to be passed to cargo for runnables such as\ntests or binaries. For example, it may be `--release`.",
858 "rust-analyzer.rustcSource": {
859 "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.\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 is not reloaded automatically; you must restart rust-analyzer for it to take effect.",
866 "rust-analyzer.rustfmt.extraArgs": {
867 "markdownDescription": "Additional arguments to `rustfmt`.",
874 "rust-analyzer.rustfmt.overrideCommand": {
875 "markdownDescription": "Advanced option, fully override the command rust-analyzer uses for\nformatting.",
885 "rust-analyzer.rustfmt.enableRangeFormatting": {
886 "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.",
890 "rust-analyzer.workspace.symbol.search.scope": {
891 "markdownDescription": "Workspace symbol search scope.",
892 "default": "workspace",
896 "workspace_and_dependencies"
898 "enumDescriptions": [
899 "Search in current workspace only",
900 "Search in current workspace and dependencies"
903 "rust-analyzer.workspace.symbol.search.kind": {
904 "markdownDescription": "Workspace symbol search kind.",
905 "default": "only_types",
911 "enumDescriptions": [
912 "Search for types only",
913 "Search for all symbols kinds"
924 "regexp": "^(warning|warn|error)(?:\\[(.*?)\\])?: (.*)$",
930 "regexp": "^[\\s->=]*(.*?):(\\d*):(\\d*)\\s*$",
938 "name": "rustc-json",
941 "regexp": "^.*\"message\":{\"message\":\"([^\"]*).*?\"file_name\":\"([^\"]+).*?\"line_start\":(\\d+).*?\"line_end\":(\\d+).*?\"column_start\":(\\d+).*?\"column_end\":(\\d+).*}$",
954 "id": "ra_syntax_tree",
968 "configuration": "language-configuration.json"
973 "language": "ra_syntax_tree",
974 "scopeName": "source.ra_syntax_tree",
975 "path": "ra_syntax_tree.tmGrammar.json"
990 "name": "rustc-json",
997 "pattern": "$rustc-json"
1000 "name": "rustc-watch",
1008 "beginsPattern": "^\\[Running\\b",
1009 "endsPattern": "^\\[Finished running\\b"
1016 "id": "rust_analyzer.inlayHints.foreground",
1017 "description": "Foreground color of inlay hints (is overriden by more specific rust_analyzer.inlayHints.foreground.* configurations)",
1019 "dark": "#A0A0A0F0",
1021 "highContrast": "#BEBEBE"
1025 "id": "rust_analyzer.inlayHints.background",
1026 "description": "Background color of inlay hints (is overriden by more specific rust_analyzer.inlayHints.background.* configurations)",
1028 "dark": "#11223300",
1029 "light": "#11223300",
1030 "highContrast": "#11223300"
1034 "id": "rust_analyzer.inlayHints.foreground.typeHints",
1035 "description": "Foreground color of inlay type hints for variables (overrides rust_analyzer.inlayHints.foreground)",
1037 "dark": "rust_analyzer.inlayHints.foreground",
1038 "light": "rust_analyzer.inlayHints.foreground",
1039 "highContrast": "rust_analyzer.inlayHints.foreground"
1043 "id": "rust_analyzer.inlayHints.foreground.chainingHints",
1044 "description": "Foreground color of inlay type hints for method chains (overrides rust_analyzer.inlayHints.foreground)",
1046 "dark": "rust_analyzer.inlayHints.foreground",
1047 "light": "rust_analyzer.inlayHints.foreground",
1048 "highContrast": "rust_analyzer.inlayHints.foreground"
1052 "id": "rust_analyzer.inlayHints.foreground.parameterHints",
1053 "description": "Foreground color of function parameter name inlay hints at the call site (overrides rust_analyzer.inlayHints.foreground)",
1055 "dark": "rust_analyzer.inlayHints.foreground",
1056 "light": "rust_analyzer.inlayHints.foreground",
1057 "highContrast": "rust_analyzer.inlayHints.foreground"
1061 "id": "rust_analyzer.inlayHints.background.typeHints",
1062 "description": "Background color of inlay type hints for variables (overrides rust_analyzer.inlayHints.background)",
1064 "dark": "rust_analyzer.inlayHints.background",
1065 "light": "rust_analyzer.inlayHints.background",
1066 "highContrast": "rust_analyzer.inlayHints.background"
1070 "id": "rust_analyzer.inlayHints.background.chainingHints",
1071 "description": "Background color of inlay type hints for method chains (overrides rust_analyzer.inlayHints.background)",
1073 "dark": "rust_analyzer.inlayHints.background",
1074 "light": "rust_analyzer.inlayHints.background",
1075 "highContrast": "rust_analyzer.inlayHints.background"
1079 "id": "rust_analyzer.inlayHints.background.parameterHints",
1080 "description": "Background color of function parameter name inlay hints at the call site (overrides rust_analyzer.inlayHints.background)",
1082 "dark": "rust_analyzer.inlayHints.background",
1083 "light": "rust_analyzer.inlayHints.background",
1084 "highContrast": "rust_analyzer.inlayHints.background"
1088 "id": "rust_analyzer.syntaxTreeBorder",
1089 "description": "Color of the border displayed in the Rust source code for the selected syntax node (see \"Show Syntax Tree\" command)",
1093 "highContrast": "#b700ff"
1097 "semanticTokenTypes": [
1100 "description": "Style for attributes"
1104 "description": "Style for boolean literals",
1105 "superType": "keyword"
1108 "id": "builtinType",
1109 "description": "Style for builtin types",
1114 "description": "Style for lifetimes"
1117 "id": "selfKeyword",
1118 "description": "Style for the self keyword",
1119 "superType": "keyword"
1123 "description": "Style for type aliases",
1128 "description": "Style for C-style untagged unions",
1132 "id": "unresolvedReference",
1133 "description": "Style for names which can not be resolved due to compilation errors"
1136 "id": "formatSpecifier",
1137 "description": "Style for {} placeholders in format strings"
1140 "id": "punctuation",
1141 "description": "generic punctuation"
1144 "id": "parenthesis",
1145 "description": "( or )",
1146 "superType": "punctuation"
1150 "description": "[ or ]",
1151 "superType": "punctuation"
1155 "description": "{ or }",
1156 "superType": "punctuation"
1160 "description": "< or >",
1161 "superType": "punctuation"
1166 "superType": "punctuation"
1171 "superType": "punctuation"
1176 "superType": "punctuation"
1181 "superType": "punctuation"
1184 "semanticTokenModifiers": [
1187 "description": "Style for async functions and the `async` and `await` keywords"
1191 "description": "Style for elements within attributes"
1195 "description": "Style for compile-time constants"
1199 "description": "Style for locals whose types implements one of the `Fn*` traits"
1203 "description": "Style for locals that are being consumed when use in a function call"
1206 "id": "controlFlow",
1207 "description": "Style for control-flow related tokens, this includes the `?` operator"
1211 "description": "Style for mutable bindings"
1215 "description": "Style for doc-string injected highlighting like rust source blocks in documentation"
1218 "id": "intraDocLink",
1219 "description": "Style for intra doc links in doc-strings"
1223 "description": "Style for items that are defined outside of the current crate"
1227 "description": "Style for mutable locals and statics as well as functions taking `&mut self`"
1231 "description": "Style tems that are from the current crate and are `pub`"
1235 "description": "Style for locals behind a reference and functions taking `self` by reference"
1239 "description": "Style for associated trait items"
1243 "description": "Style for unsafe operations, like unsafe function calls, as well as the `unsafe` token"
1246 "semanticTokenScopes": [
1251 "meta.attribute.rust"
1253 "function.attribute": [
1254 "entity.name.function.attribute.rust"
1257 "constant.language.boolean.rust"
1260 "support.type.primitive.rust"
1263 "storage.modifier.lifetime.rust"
1266 "entity.name.type.typeAlias.rust"
1269 "entity.name.type.union.rust"
1272 "entity.name.type.struct.rust"
1275 "keyword.other.rust"
1277 "keyword.controlFlow": [
1278 "keyword.control.rust"
1280 "variable.constant": [
1281 "variable.other.constant.rust"
1283 "formatSpecifier": [
1284 "punctuation.section.embedded.rust"
1295 "command": "rust-analyzer.syntaxTree",
1296 "when": "inRustProject"
1299 "command": "rust-analyzer.viewHir",
1300 "when": "inRustProject"
1303 "command": "rust-analyzer.expandMacro",
1304 "when": "inRustProject"
1307 "command": "rust-analyzer.matchingBrace",
1308 "when": "inRustProject"
1311 "command": "rust-analyzer.parentModule",
1312 "when": "inRustProject"
1315 "command": "rust-analyzer.joinLines",
1316 "when": "inRustProject"
1319 "command": "rust-analyzer.run",
1320 "when": "inRustProject"
1323 "command": "rust-analyzer.debug",
1324 "when": "inRustProject"
1327 "command": "rust-analyzer.newDebugConfig",
1328 "when": "inRustProject"
1331 "command": "rust-analyzer.analyzerStatus",
1332 "when": "inRustProject"
1335 "command": "rust-analyzer.memoryUsage",
1336 "when": "inRustProject"
1339 "command": "rust-analyzer.reloadWorkspace",
1340 "when": "inRustProject"
1343 "command": "rust-analyzer.reload",
1344 "when": "inRustProject"
1347 "command": "rust-analyzer.updateGithubToken",
1348 "when": "inRustProject"
1351 "command": "rust-analyzer.onEnter",
1352 "when": "inRustProject"
1355 "command": "rust-analyzer.ssr",
1356 "when": "inRustProject"
1359 "command": "rust-analyzer.serverVersion",
1360 "when": "inRustProject"
1363 "command": "rust-analyzer.toggleInlayHints",
1364 "when": "inRustProject"
1367 "command": "rust-analyzer.openDocs",
1368 "when": "inRustProject"
1371 "command": "rust-analyzer.openCargoToml",
1372 "when": "inRustProject"
1377 "command": "rust-analyzer.peekTests",
1378 "when": "inRustProject",
1379 "group": "navigation@1000"