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": "8.0.0-next.2",
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",
69 "workspaceContains:*/rust-project.json"
94 "patternProperties": {
105 "command": "rust-analyzer.syntaxTree",
106 "title": "Show Syntax Tree",
107 "category": "Rust Analyzer"
110 "command": "rust-analyzer.viewHir",
112 "category": "Rust Analyzer"
115 "command": "rust-analyzer.viewItemTree",
116 "title": "Debug ItemTree",
117 "category": "Rust Analyzer"
120 "command": "rust-analyzer.viewCrateGraph",
121 "title": "View Crate Graph",
122 "category": "Rust Analyzer"
125 "command": "rust-analyzer.viewFullCrateGraph",
126 "title": "View Crate Graph (Full)",
127 "category": "Rust Analyzer"
130 "command": "rust-analyzer.expandMacro",
131 "title": "Expand macro recursively",
132 "category": "Rust Analyzer"
135 "command": "rust-analyzer.matchingBrace",
136 "title": "Find matching brace",
137 "category": "Rust Analyzer"
140 "command": "rust-analyzer.parentModule",
141 "title": "Locate parent module",
142 "category": "Rust Analyzer"
145 "command": "rust-analyzer.joinLines",
146 "title": "Join lines",
147 "category": "Rust Analyzer"
150 "command": "rust-analyzer.run",
152 "category": "Rust Analyzer"
155 "command": "rust-analyzer.copyRunCommandLine",
156 "title": "Copy Run Command Line",
157 "category": "Rust Analyzer"
160 "command": "rust-analyzer.debug",
162 "category": "Rust Analyzer"
165 "command": "rust-analyzer.newDebugConfig",
166 "title": "Generate launch configuration",
167 "category": "Rust Analyzer"
170 "command": "rust-analyzer.analyzerStatus",
172 "category": "Rust Analyzer"
175 "command": "rust-analyzer.memoryUsage",
176 "title": "Memory Usage (Clears Database)",
177 "category": "Rust Analyzer"
180 "command": "rust-analyzer.reloadWorkspace",
181 "title": "Reload workspace",
182 "category": "Rust Analyzer"
185 "command": "rust-analyzer.reload",
186 "title": "Restart server",
187 "category": "Rust Analyzer"
190 "command": "rust-analyzer.updateGithubToken",
191 "title": "Update Github API token",
192 "category": "Rust Analyzer"
195 "command": "rust-analyzer.onEnter",
196 "title": "Enhanced enter key",
197 "category": "Rust Analyzer"
200 "command": "rust-analyzer.ssr",
201 "title": "Structural Search Replace",
202 "category": "Rust Analyzer"
205 "command": "rust-analyzer.serverVersion",
206 "title": "Show RA Version",
207 "category": "Rust Analyzer"
210 "command": "rust-analyzer.toggleInlayHints",
211 "title": "Toggle inlay hints",
212 "category": "Rust Analyzer"
215 "command": "rust-analyzer.openDocs",
216 "title": "Open docs under cursor",
217 "category": "Rust Analyzer"
220 "command": "rust-analyzer.openCargoToml",
221 "title": "Open Cargo.toml",
222 "category": "Rust Analyzer"
225 "command": "rust-analyzer.peekTests",
226 "title": "Peek related tests",
227 "category": "Rust Analyzer"
230 "command": "rust-analyzer.moveItemUp",
231 "title": "Move item up",
232 "category": "Rust Analyzer"
235 "command": "rust-analyzer.moveItemDown",
236 "title": "Move item down",
237 "category": "Rust Analyzer"
242 "command": "rust-analyzer.parentModule",
243 "key": "ctrl+shift+u",
244 "when": "editorTextFocus && editorLangId == rust"
247 "command": "rust-analyzer.matchingBrace",
248 "key": "ctrl+shift+m",
249 "when": "editorTextFocus && editorLangId == rust"
252 "command": "rust-analyzer.joinLines",
253 "key": "ctrl+shift+j",
254 "when": "editorTextFocus && editorLangId == rust"
259 "title": "Rust Analyzer",
261 "rust-analyzer.cargoRunner": {
267 "description": "Custom cargo runner extension ID."
269 "rust-analyzer.runnableEnv": {
281 "description": "Runnable name mask"
285 "description": "Variables in form of { \"key\": \"value\"}"
292 "description": "Variables in form of { \"key\": \"value\"}"
296 "markdownDescription": "Environment variables passed to the runnable launched using `Test` or `Debug` lens or `rust-analyzer.run` command."
298 "rust-analyzer.inlayHints.enable": {
301 "description": "Whether to show inlay hints."
303 "rust-analyzer.inlayHints.smallerHints": {
306 "description": "Whether inlay hints font size should be smaller than editor's font size."
308 "rust-analyzer.updates.channel": {
315 "markdownEnumDescriptions": [
316 "`stable` updates are shipped weekly, they don't contain cutting-edge features from VSCode proposed APIs but have less bugs in general.",
317 "`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**."
319 "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."
321 "rust-analyzer.updates.askBeforeDownload": {
324 "description": "Whether to ask for permission before downloading any files from the Internet."
326 "rust-analyzer.server.path": {
331 "scope": "machine-overridable",
333 "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"
335 "rust-analyzer.server.extraEnv": {
341 "markdownDescription": "Extra environment variables that will be passed to the rust-analyzer executable. Useful for passing e.g. `RA_LOG` for debugging."
343 "rust-analyzer.trace.server": {
351 "enumDescriptions": [
357 "description": "Trace requests to the rust-analyzer (this is usually overly verbose and not recommended for regular users)."
359 "rust-analyzer.trace.extension": {
360 "description": "Enable logging of VS Code extensions itself.",
364 "rust-analyzer.debug.engine": {
368 "vadimcn.vscode-lldb",
372 "description": "Preferred debug engine.",
373 "markdownEnumDescriptions": [
374 "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).",
375 "Use [CodeLLDB](https://marketplace.visualstudio.com/items?itemName=vadimcn.vscode-lldb)",
376 "Use [MS C++ tools](https://marketplace.visualstudio.com/items?itemName=ms-vscode.cpptools)"
379 "rust-analyzer.debug.sourceFileMap": {
385 "description": "Optional source file mappings passed to the debug engine.",
387 "/rustc/<id>": "${env:USERPROFILE}/.rustup/toolchains/<toolchain-id>/lib/rustlib/src/rust"
390 "rust-analyzer.debug.openDebugPane": {
391 "markdownDescription": "Whether to open up the `Debug Panel` on debugging start.",
395 "rust-analyzer.debug.engineSettings": {
398 "markdownDescription": "Optional settings passed to the debug engine. Example: `{ \"lldb\": { \"terminal\":\"external\"} }`"
400 "$generated-start": {},
401 "rust-analyzer.assist.importGranularity": {
402 "markdownDescription": "How imports should be grouped into use statements.",
411 "enumDescriptions": [
412 "Do not change the granularity of any imports and preserve the original structure written by the developer.",
413 "Merge imports from the same crate into a single use statement. Conversely, imports from different crates are split into separate statements.",
414 "Merge imports from the same module into a single use statement. Conversely, imports from different modules are split into separate statements.",
415 "Flatten imports so that each has its own use statement."
418 "rust-analyzer.assist.importEnforceGranularity": {
419 "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.",
423 "rust-analyzer.assist.importPrefix": {
424 "markdownDescription": "The path structure for newly inserted paths to use.",
432 "enumDescriptions": [
433 "Insert import paths relative to the current module, using up to one `super` prefix if the parent module contains the requested item.",
434 "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.",
435 "Force import paths to be absolute by always starting them with `crate` or the extern crate name they come from."
438 "rust-analyzer.assist.importGroup": {
439 "markdownDescription": "Group inserted imports by the https://rust-analyzer.github.io/manual.html#auto-import[following order]. Groups are separated by newlines.",
443 "rust-analyzer.assist.allowMergingIntoGlobImports": {
444 "markdownDescription": "Whether to allow import insertion to merge new imports into single path glob imports like `use std::fmt::*;`.",
448 "rust-analyzer.callInfo.full": {
449 "markdownDescription": "Show function name and docs in parameter hints.",
453 "rust-analyzer.cargo.autoreload": {
454 "markdownDescription": "Automatically refresh project info via `cargo metadata` on\n`Cargo.toml` changes.",
458 "rust-analyzer.cargo.allFeatures": {
459 "markdownDescription": "Activate all available features (`--all-features`).",
463 "rust-analyzer.cargo.unsetTest": {
464 "markdownDescription": "Unsets `#[cfg(test)]` for the specified crates.",
473 "rust-analyzer.cargo.features": {
474 "markdownDescription": "List of features to activate.",
481 "rust-analyzer.cargo.runBuildScripts": {
482 "markdownDescription": "Run build scripts (`build.rs`) for more precise code analysis.",
486 "rust-analyzer.cargo.useRustcWrapperForBuildScripts": {
487 "markdownDescription": "Use `RUSTC_WRAPPER=rust-analyzer` when running build scripts to\navoid compiling unnecessary things.",
491 "rust-analyzer.cargo.noDefaultFeatures": {
492 "markdownDescription": "Do not activate the `default` feature.",
496 "rust-analyzer.cargo.target": {
497 "markdownDescription": "Compilation target (target triple).",
504 "rust-analyzer.cargo.noSysroot": {
505 "markdownDescription": "Internal config for debugging, disables loading of sysroot crates.",
509 "rust-analyzer.checkOnSave.enable": {
510 "markdownDescription": "Run specified `cargo check` command for diagnostics on save.",
514 "rust-analyzer.checkOnSave.allFeatures": {
515 "markdownDescription": "Check with all features (`--all-features`).\nDefaults to `#rust-analyzer.cargo.allFeatures#`.",
522 "rust-analyzer.checkOnSave.allTargets": {
523 "markdownDescription": "Check all targets and tests (`--all-targets`).",
527 "rust-analyzer.checkOnSave.command": {
528 "markdownDescription": "Cargo command to use for `cargo check`.",
532 "rust-analyzer.checkOnSave.noDefaultFeatures": {
533 "markdownDescription": "Do not activate the `default` feature.",
540 "rust-analyzer.checkOnSave.target": {
541 "markdownDescription": "Check for a specific target. Defaults to\n`#rust-analyzer.cargo.target#`.",
548 "rust-analyzer.checkOnSave.extraArgs": {
549 "markdownDescription": "Extra arguments for `cargo check`.",
556 "rust-analyzer.checkOnSave.features": {
557 "markdownDescription": "List of features to activate. Defaults to\n`#rust-analyzer.cargo.features#`.",
567 "rust-analyzer.checkOnSave.overrideCommand": {
568 "markdownDescription": "Advanced option, fully override the command rust-analyzer uses for\nchecking. The command should include `--message-format=json` or\nsimilar option.",
578 "rust-analyzer.completion.addCallArgumentSnippets": {
579 "markdownDescription": "Whether to add argument snippets when completing functions.\nOnly applies when `#rust-analyzer.completion.addCallParenthesis#` is set.",
583 "rust-analyzer.completion.addCallParenthesis": {
584 "markdownDescription": "Whether to add parenthesis when completing functions.",
588 "rust-analyzer.completion.postfix.enable": {
589 "markdownDescription": "Whether to show postfix snippets like `dbg`, `if`, `not`, etc.",
593 "rust-analyzer.completion.autoimport.enable": {
594 "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.",
598 "rust-analyzer.completion.autoself.enable": {
599 "markdownDescription": "Toggles the additional completions that automatically show method calls and field accesses\nwith `self` prefixed to them when inside a method.",
603 "rust-analyzer.diagnostics.enable": {
604 "markdownDescription": "Whether to show native rust-analyzer diagnostics.",
608 "rust-analyzer.diagnostics.enableExperimental": {
609 "markdownDescription": "Whether to show experimental rust-analyzer diagnostics that might\nhave more false positives than usual.",
613 "rust-analyzer.diagnostics.disabled": {
614 "markdownDescription": "List of rust-analyzer diagnostics to disable.",
622 "rust-analyzer.diagnostics.remapPrefix": {
623 "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`.",
627 "rust-analyzer.diagnostics.warningsAsHint": {
628 "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`.",
635 "rust-analyzer.diagnostics.warningsAsInfo": {
636 "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`.",
643 "rust-analyzer.experimental.procAttrMacros": {
644 "markdownDescription": "Expand attribute macros.",
648 "rust-analyzer.files.watcher": {
649 "markdownDescription": "Controls file watching implementation.",
653 "rust-analyzer.files.excludeDirs": {
654 "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`.",
661 "rust-analyzer.highlightRelated.references": {
662 "markdownDescription": "Enables highlighting of related references while hovering your mouse above any identifier.",
666 "rust-analyzer.highlightRelated.exitPoints": {
667 "markdownDescription": "Enables highlighting of all exit points while hovering your mouse above any `return`, `?`, or return type arrow (`->`).",
671 "rust-analyzer.highlightRelated.breakPoints": {
672 "markdownDescription": "Enables highlighting of related references while hovering your mouse `break`, `loop`, `while`, or `for` keywords.",
676 "rust-analyzer.highlightRelated.yieldPoints": {
677 "markdownDescription": "Enables highlighting of all break points for a loop or block context while hovering your mouse above any `async` or `await` keywords.",
681 "rust-analyzer.highlighting.strings": {
682 "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.",
686 "rust-analyzer.hover.documentation": {
687 "markdownDescription": "Whether to show documentation on hover.",
691 "rust-analyzer.hover.linksInHover": {
692 "markdownDescription": "Use markdown syntax for links in hover.",
696 "rust-analyzer.hoverActions.debug": {
697 "markdownDescription": "Whether to show `Debug` action. Only applies when\n`#rust-analyzer.hoverActions.enable#` is set.",
701 "rust-analyzer.hoverActions.enable": {
702 "markdownDescription": "Whether to show HoverActions in Rust files.",
706 "rust-analyzer.hoverActions.gotoTypeDef": {
707 "markdownDescription": "Whether to show `Go to Type Definition` action. Only applies when\n`#rust-analyzer.hoverActions.enable#` is set.",
711 "rust-analyzer.hoverActions.implementations": {
712 "markdownDescription": "Whether to show `Implementations` action. Only applies when\n`#rust-analyzer.hoverActions.enable#` is set.",
716 "rust-analyzer.hoverActions.references": {
717 "markdownDescription": "Whether to show `References` action. Only applies when\n`#rust-analyzer.hoverActions.enable#` is set.",
721 "rust-analyzer.hoverActions.run": {
722 "markdownDescription": "Whether to show `Run` action. Only applies when\n`#rust-analyzer.hoverActions.enable#` is set.",
726 "rust-analyzer.inlayHints.chainingHints": {
727 "markdownDescription": "Whether to show inlay type hints for method chains.",
731 "rust-analyzer.inlayHints.maxLength": {
732 "markdownDescription": "Maximum length for inlay hints. Set to null to have an unlimited length.",
740 "rust-analyzer.inlayHints.parameterHints": {
741 "markdownDescription": "Whether to show function parameter name inlay hints at the call\nsite.",
745 "rust-analyzer.inlayHints.typeHints": {
746 "markdownDescription": "Whether to show inlay type hints for variables.",
750 "rust-analyzer.joinLines.joinElseIf": {
751 "markdownDescription": "Join lines inserts else between consecutive ifs.",
755 "rust-analyzer.joinLines.removeTrailingComma": {
756 "markdownDescription": "Join lines removes trailing commas.",
760 "rust-analyzer.joinLines.unwrapTrivialBlock": {
761 "markdownDescription": "Join lines unwraps trivial blocks.",
765 "rust-analyzer.joinLines.joinAssignments": {
766 "markdownDescription": "Join lines merges consecutive declaration and initialization of an assignment.",
770 "rust-analyzer.lens.debug": {
771 "markdownDescription": "Whether to show `Debug` lens. Only applies when\n`#rust-analyzer.lens.enable#` is set.",
775 "rust-analyzer.lens.enable": {
776 "markdownDescription": "Whether to show CodeLens in Rust files.",
780 "rust-analyzer.lens.implementations": {
781 "markdownDescription": "Whether to show `Implementations` lens. Only applies when\n`#rust-analyzer.lens.enable#` is set.",
785 "rust-analyzer.lens.run": {
786 "markdownDescription": "Whether to show `Run` lens. Only applies when\n`#rust-analyzer.lens.enable#` is set.",
790 "rust-analyzer.lens.methodReferences": {
791 "markdownDescription": "Whether to show `Method References` lens. Only applies when\n`#rust-analyzer.lens.enable#` is set.",
795 "rust-analyzer.lens.references": {
796 "markdownDescription": "Whether to show `References` lens. Only applies when\n`#rust-analyzer.lens.enable#` is set.",
800 "rust-analyzer.lens.forceCustomCommands": {
801 "markdownDescription": "Internal config: use custom client-side commands even when the\nclient doesn't set the corresponding capability.",
805 "rust-analyzer.linkedProjects": {
806 "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.",
816 "rust-analyzer.lruCapacity": {
817 "markdownDescription": "Number of syntax trees rust-analyzer keeps in memory. Defaults to 128.",
825 "rust-analyzer.notifications.cargoTomlNotFound": {
826 "markdownDescription": "Whether to show `can't find Cargo.toml` error message.",
830 "rust-analyzer.procMacro.enable": {
831 "markdownDescription": "Enable support for procedural macros, implies `#rust-analyzer.cargo.runBuildScripts#`.",
835 "rust-analyzer.procMacro.server": {
836 "markdownDescription": "Internal config, path to proc-macro server executable (typically,\nthis is rust-analyzer itself, but we override this in tests).",
843 "rust-analyzer.runnables.overrideCargo": {
844 "markdownDescription": "Command to be executed instead of 'cargo' for runnables.",
851 "rust-analyzer.runnables.cargoExtraArgs": {
852 "markdownDescription": "Additional arguments to be passed to cargo for runnables such as\ntests or binaries. For example, it may be `--release`.",
859 "rust-analyzer.rustcSource": {
860 "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.",
867 "rust-analyzer.rustfmt.extraArgs": {
868 "markdownDescription": "Additional arguments to `rustfmt`.",
875 "rust-analyzer.rustfmt.overrideCommand": {
876 "markdownDescription": "Advanced option, fully override the command rust-analyzer uses for\nformatting.",
886 "rust-analyzer.rustfmt.enableRangeFormatting": {
887 "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.",
891 "rust-analyzer.workspace.symbol.search.scope": {
892 "markdownDescription": "Workspace symbol search scope.",
893 "default": "workspace",
897 "workspace_and_dependencies"
899 "enumDescriptions": [
900 "Search in current workspace only",
901 "Search in current workspace and dependencies"
904 "rust-analyzer.workspace.symbol.search.kind": {
905 "markdownDescription": "Workspace symbol search kind.",
906 "default": "only_types",
912 "enumDescriptions": [
913 "Search for types only",
914 "Search for all symbols kinds"
925 "regexp": "^(warning|warn|error)(?:\\[(.*?)\\])?: (.*)$",
931 "regexp": "^[\\s->=]*(.*?):(\\d*):(\\d*)\\s*$",
939 "name": "rustc-json",
942 "regexp": "^.*\"message\":{\"message\":\"([^\"]*).*?\"file_name\":\"([^\"]+).*?\"line_start\":(\\d+).*?\"line_end\":(\\d+).*?\"column_start\":(\\d+).*?\"column_end\":(\\d+).*}$",
955 "id": "ra_syntax_tree",
969 "configuration": "language-configuration.json"
974 "language": "ra_syntax_tree",
975 "scopeName": "source.ra_syntax_tree",
976 "path": "ra_syntax_tree.tmGrammar.json"
991 "name": "rustc-json",
998 "pattern": "$rustc-json"
1001 "name": "rustc-watch",
1009 "beginsPattern": "^\\[Running\\b",
1010 "endsPattern": "^\\[Finished running\\b"
1017 "id": "rust_analyzer.inlayHints.foreground",
1018 "description": "Foreground color of inlay hints (is overriden by more specific rust_analyzer.inlayHints.foreground.* configurations)",
1020 "dark": "#A0A0A0F0",
1022 "highContrast": "#BEBEBE"
1026 "id": "rust_analyzer.inlayHints.background",
1027 "description": "Background color of inlay hints (is overriden by more specific rust_analyzer.inlayHints.background.* configurations)",
1029 "dark": "#11223300",
1030 "light": "#11223300",
1031 "highContrast": "#11223300"
1035 "id": "rust_analyzer.inlayHints.foreground.typeHints",
1036 "description": "Foreground color of inlay type hints for variables (overrides rust_analyzer.inlayHints.foreground)",
1038 "dark": "rust_analyzer.inlayHints.foreground",
1039 "light": "rust_analyzer.inlayHints.foreground",
1040 "highContrast": "rust_analyzer.inlayHints.foreground"
1044 "id": "rust_analyzer.inlayHints.foreground.chainingHints",
1045 "description": "Foreground color of inlay type hints for method chains (overrides rust_analyzer.inlayHints.foreground)",
1047 "dark": "rust_analyzer.inlayHints.foreground",
1048 "light": "rust_analyzer.inlayHints.foreground",
1049 "highContrast": "rust_analyzer.inlayHints.foreground"
1053 "id": "rust_analyzer.inlayHints.foreground.parameterHints",
1054 "description": "Foreground color of function parameter name inlay hints at the call site (overrides rust_analyzer.inlayHints.foreground)",
1056 "dark": "rust_analyzer.inlayHints.foreground",
1057 "light": "rust_analyzer.inlayHints.foreground",
1058 "highContrast": "rust_analyzer.inlayHints.foreground"
1062 "id": "rust_analyzer.inlayHints.background.typeHints",
1063 "description": "Background color of inlay type hints for variables (overrides rust_analyzer.inlayHints.background)",
1065 "dark": "rust_analyzer.inlayHints.background",
1066 "light": "rust_analyzer.inlayHints.background",
1067 "highContrast": "rust_analyzer.inlayHints.background"
1071 "id": "rust_analyzer.inlayHints.background.chainingHints",
1072 "description": "Background color of inlay type hints for method chains (overrides rust_analyzer.inlayHints.background)",
1074 "dark": "rust_analyzer.inlayHints.background",
1075 "light": "rust_analyzer.inlayHints.background",
1076 "highContrast": "rust_analyzer.inlayHints.background"
1080 "id": "rust_analyzer.inlayHints.background.parameterHints",
1081 "description": "Background color of function parameter name inlay hints at the call site (overrides rust_analyzer.inlayHints.background)",
1083 "dark": "rust_analyzer.inlayHints.background",
1084 "light": "rust_analyzer.inlayHints.background",
1085 "highContrast": "rust_analyzer.inlayHints.background"
1089 "id": "rust_analyzer.syntaxTreeBorder",
1090 "description": "Color of the border displayed in the Rust source code for the selected syntax node (see \"Show Syntax Tree\" command)",
1094 "highContrast": "#b700ff"
1098 "semanticTokenTypes": [
1101 "description": "Style for attributes"
1105 "description": "Style for boolean literals",
1106 "superType": "keyword"
1109 "id": "builtinType",
1110 "description": "Style for builtin types",
1115 "description": "Style for lifetimes"
1118 "id": "selfKeyword",
1119 "description": "Style for the self keyword",
1120 "superType": "keyword"
1124 "description": "Style for type aliases",
1129 "description": "Style for C-style untagged unions",
1133 "id": "unresolvedReference",
1134 "description": "Style for names which can not be resolved due to compilation errors"
1137 "id": "formatSpecifier",
1138 "description": "Style for {} placeholders in format strings"
1141 "id": "punctuation",
1142 "description": "generic punctuation"
1145 "id": "parenthesis",
1146 "description": "( or )",
1147 "superType": "punctuation"
1151 "description": "[ or ]",
1152 "superType": "punctuation"
1156 "description": "{ or }",
1157 "superType": "punctuation"
1161 "description": "< or >",
1162 "superType": "punctuation"
1167 "superType": "punctuation"
1172 "superType": "punctuation"
1177 "superType": "punctuation"
1182 "superType": "punctuation"
1185 "semanticTokenModifiers": [
1188 "description": "Style for async functions and the `async` and `await` keywords"
1192 "description": "Style for elements within attributes"
1196 "description": "Style for compile-time constants"
1200 "description": "Style for locals whose types implements one of the `Fn*` traits"
1204 "description": "Style for locals that are being consumed when use in a function call"
1207 "id": "controlFlow",
1208 "description": "Style for control-flow related tokens, this includes the `?` operator"
1212 "description": "Style for mutable bindings"
1216 "description": "Style for doc-string injected highlighting like rust source blocks in documentation"
1219 "id": "intraDocLink",
1220 "description": "Style for intra doc links in doc-strings"
1224 "description": "Style for items that are defined outside of the current crate"
1228 "description": "Style for mutable locals and statics as well as functions taking `&mut self`"
1232 "description": "Style tems that are from the current crate and are `pub`"
1236 "description": "Style for locals behind a reference and functions taking `self` by reference"
1240 "description": "Style for associated trait items"
1244 "description": "Style for unsafe operations, like unsafe function calls, as well as the `unsafe` token"
1247 "semanticTokenScopes": [
1252 "meta.attribute.rust"
1254 "function.attribute": [
1255 "entity.name.function.attribute.rust"
1258 "constant.language.boolean.rust"
1261 "support.type.primitive.rust"
1264 "storage.modifier.lifetime.rust"
1267 "entity.name.type.typeAlias.rust"
1270 "entity.name.type.union.rust"
1273 "entity.name.type.struct.rust"
1276 "keyword.other.rust"
1278 "keyword.controlFlow": [
1279 "keyword.control.rust"
1281 "variable.constant": [
1282 "variable.other.constant.rust"
1284 "formatSpecifier": [
1285 "punctuation.section.embedded.rust"
1296 "command": "rust-analyzer.syntaxTree",
1297 "when": "inRustProject"
1300 "command": "rust-analyzer.viewHir",
1301 "when": "inRustProject"
1304 "command": "rust-analyzer.expandMacro",
1305 "when": "inRustProject"
1308 "command": "rust-analyzer.matchingBrace",
1309 "when": "inRustProject"
1312 "command": "rust-analyzer.parentModule",
1313 "when": "inRustProject"
1316 "command": "rust-analyzer.joinLines",
1317 "when": "inRustProject"
1320 "command": "rust-analyzer.run",
1321 "when": "inRustProject"
1324 "command": "rust-analyzer.debug",
1325 "when": "inRustProject"
1328 "command": "rust-analyzer.newDebugConfig",
1329 "when": "inRustProject"
1332 "command": "rust-analyzer.analyzerStatus",
1333 "when": "inRustProject"
1336 "command": "rust-analyzer.memoryUsage",
1337 "when": "inRustProject"
1340 "command": "rust-analyzer.reloadWorkspace",
1341 "when": "inRustProject"
1344 "command": "rust-analyzer.reload",
1345 "when": "inRustProject"
1348 "command": "rust-analyzer.updateGithubToken",
1349 "when": "inRustProject"
1352 "command": "rust-analyzer.onEnter",
1353 "when": "inRustProject"
1356 "command": "rust-analyzer.ssr",
1357 "when": "inRustProject"
1360 "command": "rust-analyzer.serverVersion",
1361 "when": "inRustProject"
1364 "command": "rust-analyzer.toggleInlayHints",
1365 "when": "inRustProject"
1368 "command": "rust-analyzer.openDocs",
1369 "when": "inRustProject"
1372 "command": "rust-analyzer.openCargoToml",
1373 "when": "inRustProject"
1378 "command": "rust-analyzer.peekTests",
1379 "when": "inRustProject",
1380 "group": "navigation@1000"