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",
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"
44 "@types/glob": "^7.1.4",
45 "@types/mocha": "^8.2.3",
46 "@types/node": "~14.17.5",
47 "@types/node-fetch": "^2.5.11",
48 "@types/vscode": "^1.57.0",
49 "@typescript-eslint/eslint-plugin": "^4.28.2",
50 "@typescript-eslint/parser": "^4.28.2",
51 "esbuild": "^0.12.19",
56 "typescript": "^4.3.5",
57 "typescript-formatter": "^7.2.2",
59 "vscode-test": "^1.5.1"
63 "onCommand:rust-analyzer.analyzerStatus",
64 "onCommand:rust-analyzer.memoryUsage",
65 "onCommand:rust-analyzer.reloadWorkspace",
66 "workspaceContains:**/Cargo.toml"
91 "patternProperties": {
102 "command": "rust-analyzer.syntaxTree",
103 "title": "Show Syntax Tree",
104 "category": "Rust Analyzer"
107 "command": "rust-analyzer.viewHir",
109 "category": "Rust Analyzer"
112 "command": "rust-analyzer.viewItemTree",
113 "title": "Debug ItemTree",
114 "category": "Rust Analyzer"
117 "command": "rust-analyzer.viewCrateGraph",
118 "title": "View Crate Graph",
119 "category": "Rust Analyzer"
122 "command": "rust-analyzer.viewFullCrateGraph",
123 "title": "View Crate Graph (Full)",
124 "category": "Rust Analyzer"
127 "command": "rust-analyzer.expandMacro",
128 "title": "Expand macro recursively",
129 "category": "Rust Analyzer"
132 "command": "rust-analyzer.matchingBrace",
133 "title": "Find matching brace",
134 "category": "Rust Analyzer"
137 "command": "rust-analyzer.parentModule",
138 "title": "Locate parent module",
139 "category": "Rust Analyzer"
142 "command": "rust-analyzer.joinLines",
143 "title": "Join lines",
144 "category": "Rust Analyzer"
147 "command": "rust-analyzer.run",
149 "category": "Rust Analyzer"
152 "command": "rust-analyzer.copyRunCommandLine",
153 "title": "Copy Run Command Line",
154 "category": "Rust Analyzer"
157 "command": "rust-analyzer.debug",
159 "category": "Rust Analyzer"
162 "command": "rust-analyzer.newDebugConfig",
163 "title": "Generate launch configuration",
164 "category": "Rust Analyzer"
167 "command": "rust-analyzer.analyzerStatus",
169 "category": "Rust Analyzer"
172 "command": "rust-analyzer.memoryUsage",
173 "title": "Memory Usage (Clears Database)",
174 "category": "Rust Analyzer"
177 "command": "rust-analyzer.reloadWorkspace",
178 "title": "Reload workspace",
179 "category": "Rust Analyzer"
182 "command": "rust-analyzer.reload",
183 "title": "Restart server",
184 "category": "Rust Analyzer"
187 "command": "rust-analyzer.updateGithubToken",
188 "title": "Update Github API token",
189 "category": "Rust Analyzer"
192 "command": "rust-analyzer.onEnter",
193 "title": "Enhanced enter key",
194 "category": "Rust Analyzer"
197 "command": "rust-analyzer.ssr",
198 "title": "Structural Search Replace",
199 "category": "Rust Analyzer"
202 "command": "rust-analyzer.serverVersion",
203 "title": "Show RA Version",
204 "category": "Rust Analyzer"
207 "command": "rust-analyzer.toggleInlayHints",
208 "title": "Toggle inlay hints",
209 "category": "Rust Analyzer"
212 "command": "rust-analyzer.openDocs",
213 "title": "Open docs under cursor",
214 "category": "Rust Analyzer"
217 "command": "rust-analyzer.openCargoToml",
218 "title": "Open Cargo.toml",
219 "category": "Rust Analyzer"
222 "command": "rust-analyzer.peekTests",
223 "title": "Peek related tests",
224 "category": "Rust Analyzer"
227 "command": "rust-analyzer.moveItemUp",
228 "title": "Move item up",
229 "category": "Rust Analyzer"
232 "command": "rust-analyzer.moveItemDown",
233 "title": "Move item down",
234 "category": "Rust Analyzer"
239 "command": "rust-analyzer.parentModule",
240 "key": "ctrl+shift+u",
241 "when": "editorTextFocus && editorLangId == rust"
244 "command": "rust-analyzer.matchingBrace",
245 "key": "ctrl+shift+m",
246 "when": "editorTextFocus && editorLangId == rust"
249 "command": "rust-analyzer.joinLines",
250 "key": "ctrl+shift+j",
251 "when": "editorTextFocus && editorLangId == rust"
256 "title": "Rust Analyzer",
258 "rust-analyzer.cargoRunner": {
264 "description": "Custom cargo runner extension ID."
266 "rust-analyzer.runnableEnv": {
278 "description": "Runnable name mask"
282 "description": "Variables in form of { \"key\": \"value\"}"
289 "description": "Variables in form of { \"key\": \"value\"}"
293 "markdownDescription": "Environment variables passed to the runnable launched using `Test` or `Debug` lens or `rust-analyzer.run` command."
295 "rust-analyzer.inlayHints.enable": {
298 "description": "Whether to show inlay hints."
300 "rust-analyzer.inlayHints.smallerHints": {
303 "description": "Whether inlay hints font size should be smaller than editor's font size."
305 "rust-analyzer.updates.channel": {
312 "markdownEnumDescriptions": [
313 "`stable` updates are shipped weekly, they don't contain cutting-edge features from VSCode proposed APIs but have less bugs in general.",
314 "`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**."
316 "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."
318 "rust-analyzer.updates.askBeforeDownload": {
321 "description": "Whether to ask for permission before downloading any files from the Internet."
323 "rust-analyzer.server.path": {
328 "scope": "machine-overridable",
330 "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"
332 "rust-analyzer.server.extraEnv": {
338 "markdownDescription": "Extra environment variables that will be passed to the rust-analyzer executable. Useful for passing e.g. `RA_LOG` for debugging."
340 "rust-analyzer.trace.server": {
348 "enumDescriptions": [
354 "description": "Trace requests to the rust-analyzer (this is usually overly verbose and not recommended for regular users)."
356 "rust-analyzer.trace.extension": {
357 "description": "Enable logging of VS Code extensions itself.",
361 "rust-analyzer.debug.engine": {
365 "vadimcn.vscode-lldb",
369 "description": "Preferred debug engine.",
370 "markdownEnumDescriptions": [
371 "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).",
372 "Use [CodeLLDB](https://marketplace.visualstudio.com/items?itemName=vadimcn.vscode-lldb)",
373 "Use [MS C++ tools](https://marketplace.visualstudio.com/items?itemName=ms-vscode.cpptools)"
376 "rust-analyzer.debug.sourceFileMap": {
382 "description": "Optional source file mappings passed to the debug engine.",
384 "/rustc/<id>": "${env:USERPROFILE}/.rustup/toolchains/<toolchain-id>/lib/rustlib/src/rust"
387 "rust-analyzer.debug.openDebugPane": {
388 "markdownDescription": "Whether to open up the `Debug Panel` on debugging start.",
392 "rust-analyzer.debug.engineSettings": {
395 "markdownDescription": "Optional settings passed to the debug engine. Example: `{ \"lldb\": { \"terminal\":\"external\"} }`"
397 "$generated-start": {},
398 "rust-analyzer.assist.importGranularity": {
399 "markdownDescription": "How imports should be grouped into use statements.",
408 "enumDescriptions": [
409 "Do not change the granularity of any imports and preserve the original structure written by the developer.",
410 "Merge imports from the same crate into a single use statement. Conversely, imports from different crates are split into separate statements.",
411 "Merge imports from the same module into a single use statement. Conversely, imports from different modules are split into separate statements.",
412 "Flatten imports so that each has its own use statement."
415 "rust-analyzer.assist.importEnforceGranularity": {
416 "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.",
420 "rust-analyzer.assist.importPrefix": {
421 "markdownDescription": "The path structure for newly inserted paths to use.",
429 "enumDescriptions": [
430 "Insert import paths relative to the current module, using up to one `super` prefix if the parent module contains the requested item.",
431 "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.",
432 "Force import paths to be absolute by always starting them with `crate` or the extern crate name they come from."
435 "rust-analyzer.assist.importGroup": {
436 "markdownDescription": "Group inserted imports by the [following order](https://rust-analyzer.github.io/manual.html#auto-import). Groups are separated by newlines.",
440 "rust-analyzer.assist.allowMergingIntoGlobImports": {
441 "markdownDescription": "Whether to allow import insertion to merge new imports into single path glob imports like `use std::fmt::*;`.",
445 "rust-analyzer.callInfo.full": {
446 "markdownDescription": "Show function name and docs in parameter hints.",
450 "rust-analyzer.cargo.autoreload": {
451 "markdownDescription": "Automatically refresh project info via `cargo metadata` on\n`Cargo.toml` changes.",
455 "rust-analyzer.cargo.allFeatures": {
456 "markdownDescription": "Activate all available features (`--all-features`).",
460 "rust-analyzer.cargo.unsetTest": {
461 "markdownDescription": "Unsets `#[cfg(test)]` for the specified crates.",
470 "rust-analyzer.cargo.features": {
471 "markdownDescription": "List of features to activate.",
478 "rust-analyzer.cargo.runBuildScripts": {
479 "markdownDescription": "Run build scripts (`build.rs`) for more precise code analysis.",
483 "rust-analyzer.cargo.useRustcWrapperForBuildScripts": {
484 "markdownDescription": "Use `RUSTC_WRAPPER=rust-analyzer` when running build scripts to\navoid compiling unnecessary things.",
488 "rust-analyzer.cargo.noDefaultFeatures": {
489 "markdownDescription": "Do not activate the `default` feature.",
493 "rust-analyzer.cargo.target": {
494 "markdownDescription": "Compilation target (target triple).",
501 "rust-analyzer.cargo.noSysroot": {
502 "markdownDescription": "Internal config for debugging, disables loading of sysroot crates.",
506 "rust-analyzer.checkOnSave.enable": {
507 "markdownDescription": "Run specified `cargo check` command for diagnostics on save.",
511 "rust-analyzer.checkOnSave.allFeatures": {
512 "markdownDescription": "Check with all features (`--all-features`).\nDefaults to `#rust-analyzer.cargo.allFeatures#`.",
519 "rust-analyzer.checkOnSave.allTargets": {
520 "markdownDescription": "Check all targets and tests (`--all-targets`).",
524 "rust-analyzer.checkOnSave.command": {
525 "markdownDescription": "Cargo command to use for `cargo check`.",
529 "rust-analyzer.checkOnSave.noDefaultFeatures": {
530 "markdownDescription": "Do not activate the `default` feature.",
537 "rust-analyzer.checkOnSave.target": {
538 "markdownDescription": "Check for a specific target. Defaults to\n`#rust-analyzer.cargo.target#`.",
545 "rust-analyzer.checkOnSave.extraArgs": {
546 "markdownDescription": "Extra arguments for `cargo check`.",
553 "rust-analyzer.checkOnSave.features": {
554 "markdownDescription": "List of features to activate. Defaults to\n`#rust-analyzer.cargo.features#`.",
564 "rust-analyzer.checkOnSave.overrideCommand": {
565 "markdownDescription": "Advanced option, fully override the command rust-analyzer uses for\nchecking. The command should include `--message-format=json` or\nsimilar option.",
575 "rust-analyzer.completion.addCallArgumentSnippets": {
576 "markdownDescription": "Whether to add argument snippets when completing functions.\nOnly applies when `#rust-analyzer.completion.addCallParenthesis#` is set.",
580 "rust-analyzer.completion.addCallParenthesis": {
581 "markdownDescription": "Whether to add parenthesis when completing functions.",
585 "rust-analyzer.completion.postfix.enable": {
586 "markdownDescription": "Whether to show postfix snippets like `dbg`, `if`, `not`, etc.",
590 "rust-analyzer.completion.autoimport.enable": {
591 "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.",
595 "rust-analyzer.completion.autoself.enable": {
596 "markdownDescription": "Toggles the additional completions that automatically show method calls and field accesses\nwith `self` prefixed to them when inside a method.",
600 "rust-analyzer.diagnostics.enable": {
601 "markdownDescription": "Whether to show native rust-analyzer diagnostics.",
605 "rust-analyzer.diagnostics.enableExperimental": {
606 "markdownDescription": "Whether to show experimental rust-analyzer diagnostics that might\nhave more false positives than usual.",
610 "rust-analyzer.diagnostics.disabled": {
611 "markdownDescription": "List of rust-analyzer diagnostics to disable.",
619 "rust-analyzer.diagnostics.remapPrefix": {
620 "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`.",
624 "rust-analyzer.diagnostics.warningsAsHint": {
625 "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`.",
632 "rust-analyzer.diagnostics.warningsAsInfo": {
633 "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`.",
640 "rust-analyzer.experimental.procAttrMacros": {
641 "markdownDescription": "Expand attribute macros.",
645 "rust-analyzer.files.watcher": {
646 "markdownDescription": "Controls file watching implementation.",
650 "rust-analyzer.files.excludeDirs": {
651 "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`.",
658 "rust-analyzer.highlightRelated.references": {
659 "markdownDescription": "Enables highlighting of related references while hovering your mouse above any identifier.",
663 "rust-analyzer.highlightRelated.exitPoints": {
664 "markdownDescription": "Enables highlighting of all exit points while hovering your mouse above any `return`, `?`, or return type arrow (`->`).",
668 "rust-analyzer.highlightRelated.breakPoints": {
669 "markdownDescription": "Enables highlighting of related references while hovering your mouse `break`, `loop`, `while`, or `for` keywords.",
673 "rust-analyzer.highlightRelated.yieldPoints": {
674 "markdownDescription": "Enables highlighting of all break points for a loop or block context while hovering your mouse above any `async` or `await` keywords.",
678 "rust-analyzer.highlighting.strings": {
679 "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.",
683 "rust-analyzer.hover.documentation": {
684 "markdownDescription": "Whether to show documentation on hover.",
688 "rust-analyzer.hover.linksInHover": {
689 "markdownDescription": "Use markdown syntax for links in hover.",
693 "rust-analyzer.hoverActions.debug": {
694 "markdownDescription": "Whether to show `Debug` action. Only applies when\n`#rust-analyzer.hoverActions.enable#` is set.",
698 "rust-analyzer.hoverActions.enable": {
699 "markdownDescription": "Whether to show HoverActions in Rust files.",
703 "rust-analyzer.hoverActions.gotoTypeDef": {
704 "markdownDescription": "Whether to show `Go to Type Definition` action. Only applies when\n`#rust-analyzer.hoverActions.enable#` is set.",
708 "rust-analyzer.hoverActions.implementations": {
709 "markdownDescription": "Whether to show `Implementations` action. Only applies when\n`#rust-analyzer.hoverActions.enable#` is set.",
713 "rust-analyzer.hoverActions.references": {
714 "markdownDescription": "Whether to show `References` action. Only applies when\n`#rust-analyzer.hoverActions.enable#` is set.",
718 "rust-analyzer.hoverActions.run": {
719 "markdownDescription": "Whether to show `Run` action. Only applies when\n`#rust-analyzer.hoverActions.enable#` is set.",
723 "rust-analyzer.inlayHints.chainingHints": {
724 "markdownDescription": "Whether to show inlay type hints for method chains.",
728 "rust-analyzer.inlayHints.maxLength": {
729 "markdownDescription": "Maximum length for inlay hints. Set to null to have an unlimited length.",
737 "rust-analyzer.inlayHints.parameterHints": {
738 "markdownDescription": "Whether to show function parameter name inlay hints at the call\nsite.",
742 "rust-analyzer.inlayHints.typeHints": {
743 "markdownDescription": "Whether to show inlay type hints for variables.",
747 "rust-analyzer.joinLines.joinElseIf": {
748 "markdownDescription": "Join lines inserts else between consecutive ifs.",
752 "rust-analyzer.joinLines.removeTrailingComma": {
753 "markdownDescription": "Join lines removes trailing commas.",
757 "rust-analyzer.joinLines.unwrapTrivialBlock": {
758 "markdownDescription": "Join lines unwraps trivial blocks.",
762 "rust-analyzer.lens.debug": {
763 "markdownDescription": "Whether to show `Debug` lens. Only applies when\n`#rust-analyzer.lens.enable#` is set.",
767 "rust-analyzer.lens.enable": {
768 "markdownDescription": "Whether to show CodeLens in Rust files.",
772 "rust-analyzer.lens.implementations": {
773 "markdownDescription": "Whether to show `Implementations` lens. Only applies when\n`#rust-analyzer.lens.enable#` is set.",
777 "rust-analyzer.lens.run": {
778 "markdownDescription": "Whether to show `Run` lens. Only applies when\n`#rust-analyzer.lens.enable#` is set.",
782 "rust-analyzer.lens.methodReferences": {
783 "markdownDescription": "Whether to show `Method References` lens. Only applies when\n`#rust-analyzer.lens.enable#` is set.",
787 "rust-analyzer.lens.references": {
788 "markdownDescription": "Whether to show `References` lens. Only applies when\n`#rust-analyzer.lens.enable#` is set.",
792 "rust-analyzer.lens.forceCustomCommands": {
793 "markdownDescription": "Internal config: use custom client-side commands even when the\nclient doesn't set the corresponding capability.",
797 "rust-analyzer.linkedProjects": {
798 "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.",
808 "rust-analyzer.lruCapacity": {
809 "markdownDescription": "Number of syntax trees rust-analyzer keeps in memory. Defaults to 128.",
817 "rust-analyzer.notifications.cargoTomlNotFound": {
818 "markdownDescription": "Whether to show `can't find Cargo.toml` error message.",
822 "rust-analyzer.procMacro.enable": {
823 "markdownDescription": "Enable support for procedural macros, implies `#rust-analyzer.cargo.runBuildScripts#`.",
827 "rust-analyzer.procMacro.server": {
828 "markdownDescription": "Internal config, path to proc-macro server executable (typically,\nthis is rust-analyzer itself, but we override this in tests).",
835 "rust-analyzer.runnables.overrideCargo": {
836 "markdownDescription": "Command to be executed instead of 'cargo' for runnables.",
843 "rust-analyzer.runnables.cargoExtraArgs": {
844 "markdownDescription": "Additional arguments to be passed to cargo for runnables such as\ntests or binaries. For example, it may be `--release`.",
851 "rust-analyzer.rustcSource": {
852 "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.",
859 "rust-analyzer.rustfmt.extraArgs": {
860 "markdownDescription": "Additional arguments to `rustfmt`.",
867 "rust-analyzer.rustfmt.overrideCommand": {
868 "markdownDescription": "Advanced option, fully override the command rust-analyzer uses for\nformatting.",
878 "rust-analyzer.rustfmt.enableRangeFormatting": {
879 "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.",
883 "rust-analyzer.workspace.symbol.search.scope": {
884 "markdownDescription": "Workspace symbol search scope.",
885 "default": "workspace",
889 "workspace_and_dependencies"
891 "enumDescriptions": [
892 "Search in current workspace only",
893 "Search in current workspace and dependencies"
896 "rust-analyzer.workspace.symbol.search.kind": {
897 "markdownDescription": "Workspace symbol search kind.",
898 "default": "only_types",
904 "enumDescriptions": [
905 "Search for types only",
906 "Search for all symbols kinds"
917 "regexp": "^(warning|warn|error)(?:\\[(.*?)\\])?: (.*)$",
923 "regexp": "^[\\s->=]*(.*?):(\\d*):(\\d*)\\s*$",
931 "name": "rustc-json",
934 "regexp": "^.*\"message\":{\"message\":\"([^\"]*).*?\"file_name\":\"([^\"]+).*?\"line_start\":(\\d+).*?\"line_end\":(\\d+).*?\"column_start\":(\\d+).*?\"column_end\":(\\d+).*}$",
947 "id": "ra_syntax_tree",
961 "configuration": "language-configuration.json"
966 "language": "ra_syntax_tree",
967 "scopeName": "source.ra_syntax_tree",
968 "path": "ra_syntax_tree.tmGrammar.json"
983 "name": "rustc-json",
990 "pattern": "$rustc-json"
993 "name": "rustc-watch",
1001 "beginsPattern": "^\\[Running\\b",
1002 "endsPattern": "^\\[Finished running\\b"
1009 "id": "rust_analyzer.inlayHints.foreground",
1010 "description": "Foreground color of inlay hints (is overriden by more specific rust_analyzer.inlayHints.foreground.* configurations)",
1012 "dark": "#A0A0A0F0",
1014 "highContrast": "#BEBEBE"
1018 "id": "rust_analyzer.inlayHints.background",
1019 "description": "Background color of inlay hints (is overriden by more specific rust_analyzer.inlayHints.background.* configurations)",
1021 "dark": "#11223300",
1022 "light": "#11223300",
1023 "highContrast": "#11223300"
1027 "id": "rust_analyzer.inlayHints.foreground.typeHints",
1028 "description": "Foreground color of inlay type hints for variables (overrides rust_analyzer.inlayHints.foreground)",
1030 "dark": "rust_analyzer.inlayHints.foreground",
1031 "light": "rust_analyzer.inlayHints.foreground",
1032 "highContrast": "rust_analyzer.inlayHints.foreground"
1036 "id": "rust_analyzer.inlayHints.foreground.chainingHints",
1037 "description": "Foreground color of inlay type hints for method chains (overrides rust_analyzer.inlayHints.foreground)",
1039 "dark": "rust_analyzer.inlayHints.foreground",
1040 "light": "rust_analyzer.inlayHints.foreground",
1041 "highContrast": "rust_analyzer.inlayHints.foreground"
1045 "id": "rust_analyzer.inlayHints.foreground.parameterHints",
1046 "description": "Foreground color of function parameter name inlay hints at the call site (overrides rust_analyzer.inlayHints.foreground)",
1048 "dark": "rust_analyzer.inlayHints.foreground",
1049 "light": "rust_analyzer.inlayHints.foreground",
1050 "highContrast": "rust_analyzer.inlayHints.foreground"
1054 "id": "rust_analyzer.inlayHints.background.typeHints",
1055 "description": "Background color of inlay type hints for variables (overrides rust_analyzer.inlayHints.background)",
1057 "dark": "rust_analyzer.inlayHints.background",
1058 "light": "rust_analyzer.inlayHints.background",
1059 "highContrast": "rust_analyzer.inlayHints.background"
1063 "id": "rust_analyzer.inlayHints.background.chainingHints",
1064 "description": "Background color of inlay type hints for method chains (overrides rust_analyzer.inlayHints.background)",
1066 "dark": "rust_analyzer.inlayHints.background",
1067 "light": "rust_analyzer.inlayHints.background",
1068 "highContrast": "rust_analyzer.inlayHints.background"
1072 "id": "rust_analyzer.inlayHints.background.parameterHints",
1073 "description": "Background color of function parameter name inlay hints at the call site (overrides rust_analyzer.inlayHints.background)",
1075 "dark": "rust_analyzer.inlayHints.background",
1076 "light": "rust_analyzer.inlayHints.background",
1077 "highContrast": "rust_analyzer.inlayHints.background"
1081 "id": "rust_analyzer.syntaxTreeBorder",
1082 "description": "Color of the border displayed in the Rust source code for the selected syntax node (see \"Show Syntax Tree\" command)",
1086 "highContrast": "#b700ff"
1090 "semanticTokenTypes": [
1093 "description": "Style for attributes"
1097 "description": "Style for boolean literals",
1098 "superType": "keyword"
1101 "id": "builtinType",
1102 "description": "Style for builtin types",
1107 "description": "Style for lifetimes"
1110 "id": "selfKeyword",
1111 "description": "Style for the self keyword",
1112 "superType": "keyword"
1116 "description": "Style for type aliases",
1121 "description": "Style for C-style untagged unions",
1125 "id": "unresolvedReference",
1126 "description": "Style for names which can not be resolved due to compilation errors"
1129 "id": "formatSpecifier",
1130 "description": "Style for {} placeholders in format strings"
1133 "id": "punctuation",
1134 "description": "generic punctuation"
1137 "id": "parenthesis",
1138 "description": "( or )",
1139 "superType": "punctuation"
1143 "description": "[ or ]",
1144 "superType": "punctuation"
1148 "description": "{ or }",
1149 "superType": "punctuation"
1153 "description": "< or >",
1154 "superType": "punctuation"
1159 "superType": "punctuation"
1164 "superType": "punctuation"
1169 "superType": "punctuation"
1174 "superType": "punctuation"
1177 "semanticTokenModifiers": [
1180 "description": "Style for elements within attributes"
1184 "description": "Style for compile-time constants"
1187 "id": "controlFlow",
1188 "description": "Style for control flow keywords"
1192 "description": "Style for mutable bindings"
1196 "description": "Style for unsafe operations"
1200 "description": "Style for non-Copy lvalues consumed by method/function call"
1204 "description": "Style for variables/parameters that can be used in call expressions"
1207 "semanticTokenScopes": [
1212 "meta.attribute.rust"
1214 "function.attribute": [
1215 "entity.name.function.attribute.rust"
1218 "constant.language.boolean.rust"
1221 "support.type.primitive.rust"
1224 "storage.modifier.lifetime.rust"
1227 "entity.name.type.typeAlias.rust"
1230 "entity.name.type.union.rust"
1233 "entity.name.type.struct.rust"
1236 "keyword.other.rust"
1238 "keyword.controlFlow": [
1239 "keyword.control.rust"
1241 "variable.constant": [
1242 "variable.other.constant.rust"
1244 "formatSpecifier": [
1245 "punctuation.section.embedded.rust"
1256 "command": "rust-analyzer.syntaxTree",
1257 "when": "inRustProject"
1260 "command": "rust-analyzer.viewHir",
1261 "when": "inRustProject"
1264 "command": "rust-analyzer.expandMacro",
1265 "when": "inRustProject"
1268 "command": "rust-analyzer.matchingBrace",
1269 "when": "inRustProject"
1272 "command": "rust-analyzer.parentModule",
1273 "when": "inRustProject"
1276 "command": "rust-analyzer.joinLines",
1277 "when": "inRustProject"
1280 "command": "rust-analyzer.run",
1281 "when": "inRustProject"
1284 "command": "rust-analyzer.debug",
1285 "when": "inRustProject"
1288 "command": "rust-analyzer.newDebugConfig",
1289 "when": "inRustProject"
1292 "command": "rust-analyzer.analyzerStatus",
1293 "when": "inRustProject"
1296 "command": "rust-analyzer.memoryUsage",
1297 "when": "inRustProject"
1300 "command": "rust-analyzer.reloadWorkspace",
1301 "when": "inRustProject"
1304 "command": "rust-analyzer.reload",
1305 "when": "inRustProject"
1308 "command": "rust-analyzer.updateGithubToken",
1309 "when": "inRustProject"
1312 "command": "rust-analyzer.onEnter",
1313 "when": "inRustProject"
1316 "command": "rust-analyzer.ssr",
1317 "when": "inRustProject"
1320 "command": "rust-analyzer.serverVersion",
1321 "when": "inRustProject"
1324 "command": "rust-analyzer.toggleInlayHints",
1325 "when": "inRustProject"
1328 "command": "rust-analyzer.openDocs",
1329 "when": "inRustProject"
1332 "command": "rust-analyzer.openCargoToml",
1333 "when": "inRustProject"
1338 "command": "rust-analyzer.peekTests",
1339 "when": "inRustProject",
1340 "group": "navigation@1000"