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": "tsc && rollup -c",
29 "package": "vsce package -o rust-analyzer.vsix",
31 "watch": "tsc --watch",
32 "lint": "tsfmt --verify && eslint -c .eslintrc.js --ext ts ./src ./tests",
33 "fix": " tsfmt -r && eslint -c .eslintrc.js --ext ts ./src ./tests --fix",
34 "pretest": "npm run build",
35 "test": "node ./out/tests/runTests.js"
38 "https-proxy-agent": "^5.0.0",
39 "node-fetch": "^2.6.1",
40 "vscode-languageclient": "^7.1.0-next.5"
43 "@rollup/plugin-commonjs": "^17.0.0",
44 "@rollup/plugin-node-resolve": "^13.0.0",
45 "@types/glob": "^7.1.4",
46 "@types/mocha": "^8.2.3",
47 "@types/node": "~14.17.5",
48 "@types/node-fetch": "^2.5.11",
49 "@types/vscode": "^1.57.0",
50 "@typescript-eslint/eslint-plugin": "^4.28.2",
51 "@typescript-eslint/parser": "^4.28.2",
57 "typescript": "^4.3.5",
58 "typescript-formatter": "^7.2.2",
60 "vscode-test": "^1.5.1"
64 "onCommand:rust-analyzer.analyzerStatus",
65 "onCommand:rust-analyzer.memoryUsage",
66 "onCommand:rust-analyzer.reloadWorkspace",
67 "workspaceContains:**/Cargo.toml"
69 "main": "./out/src/main",
92 "patternProperties": {
103 "command": "rust-analyzer.syntaxTree",
104 "title": "Show Syntax Tree",
105 "category": "Rust Analyzer"
108 "command": "rust-analyzer.viewHir",
110 "category": "Rust Analyzer"
113 "command": "rust-analyzer.viewItemTree",
114 "title": "Debug ItemTree",
115 "category": "Rust Analyzer"
118 "command": "rust-analyzer.viewCrateGraph",
119 "title": "View Crate Graph",
120 "category": "Rust Analyzer"
123 "command": "rust-analyzer.viewFullCrateGraph",
124 "title": "View Crate Graph (Full)",
125 "category": "Rust Analyzer"
128 "command": "rust-analyzer.expandMacro",
129 "title": "Expand macro recursively",
130 "category": "Rust Analyzer"
133 "command": "rust-analyzer.matchingBrace",
134 "title": "Find matching brace",
135 "category": "Rust Analyzer"
138 "command": "rust-analyzer.parentModule",
139 "title": "Locate parent module",
140 "category": "Rust Analyzer"
143 "command": "rust-analyzer.joinLines",
144 "title": "Join lines",
145 "category": "Rust Analyzer"
148 "command": "rust-analyzer.run",
150 "category": "Rust Analyzer"
153 "command": "rust-analyzer.copyRunCommandLine",
154 "title": "Copy Run Command Line",
155 "category": "Rust Analyzer"
158 "command": "rust-analyzer.debug",
160 "category": "Rust Analyzer"
163 "command": "rust-analyzer.newDebugConfig",
164 "title": "Generate launch configuration",
165 "category": "Rust Analyzer"
168 "command": "rust-analyzer.analyzerStatus",
170 "category": "Rust Analyzer"
173 "command": "rust-analyzer.memoryUsage",
174 "title": "Memory Usage (Clears Database)",
175 "category": "Rust Analyzer"
178 "command": "rust-analyzer.reloadWorkspace",
179 "title": "Reload workspace",
180 "category": "Rust Analyzer"
183 "command": "rust-analyzer.reload",
184 "title": "Restart server",
185 "category": "Rust Analyzer"
188 "command": "rust-analyzer.updateGithubToken",
189 "title": "Update Github API token",
190 "category": "Rust Analyzer"
193 "command": "rust-analyzer.onEnter",
194 "title": "Enhanced enter key",
195 "category": "Rust Analyzer"
198 "command": "rust-analyzer.ssr",
199 "title": "Structural Search Replace",
200 "category": "Rust Analyzer"
203 "command": "rust-analyzer.serverVersion",
204 "title": "Show RA Version",
205 "category": "Rust Analyzer"
208 "command": "rust-analyzer.toggleInlayHints",
209 "title": "Toggle inlay hints",
210 "category": "Rust Analyzer"
213 "command": "rust-analyzer.openDocs",
214 "title": "Open docs under cursor",
215 "category": "Rust Analyzer"
218 "command": "rust-analyzer.openCargoToml",
219 "title": "Open Cargo.toml",
220 "category": "Rust Analyzer"
223 "command": "rust-analyzer.peekTests",
224 "title": "Peek related tests",
225 "category": "Rust Analyzer"
228 "command": "rust-analyzer.moveItemUp",
229 "title": "Move item up",
230 "category": "Rust Analyzer"
233 "command": "rust-analyzer.moveItemDown",
234 "title": "Move item down",
235 "category": "Rust Analyzer"
240 "command": "rust-analyzer.parentModule",
241 "key": "ctrl+shift+u",
242 "when": "editorTextFocus && editorLangId == rust"
245 "command": "rust-analyzer.matchingBrace",
246 "key": "ctrl+shift+m",
247 "when": "editorTextFocus && editorLangId == rust"
250 "command": "rust-analyzer.joinLines",
251 "key": "ctrl+shift+j",
252 "when": "editorTextFocus && editorLangId == rust"
257 "title": "Rust Analyzer",
259 "rust-analyzer.cargoRunner": {
265 "description": "Custom cargo runner extension ID."
267 "rust-analyzer.runnableEnv": {
279 "description": "Runnable name mask"
283 "description": "Variables in form of { \"key\": \"value\"}"
290 "description": "Variables in form of { \"key\": \"value\"}"
294 "markdownDescription": "Environment variables passed to the runnable launched using `Test` or `Debug` lens or `rust-analyzer.run` command."
296 "rust-analyzer.inlayHints.enable": {
299 "description": "Whether to show inlay hints."
301 "rust-analyzer.inlayHints.smallerHints": {
304 "description": "Whether inlay hints font size should be smaller than editor's font size."
306 "rust-analyzer.updates.channel": {
313 "markdownEnumDescriptions": [
314 "`stable` updates are shipped weekly, they don't contain cutting-edge features from VSCode proposed APIs but have less bugs in general.",
315 "`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**."
317 "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."
319 "rust-analyzer.updates.askBeforeDownload": {
322 "description": "Whether to ask for permission before downloading any files from the Internet."
324 "rust-analyzer.server.path": {
329 "scope": "machine-overridable",
331 "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"
333 "rust-analyzer.server.extraEnv": {
339 "markdownDescription": "Extra environment variables that will be passed to the rust-analyzer executable. Useful for passing e.g. `RA_LOG` for debugging."
341 "rust-analyzer.trace.server": {
349 "enumDescriptions": [
355 "description": "Trace requests to the rust-analyzer (this is usually overly verbose and not recommended for regular users)."
357 "rust-analyzer.trace.extension": {
358 "description": "Enable logging of VS Code extensions itself.",
362 "rust-analyzer.debug.engine": {
366 "vadimcn.vscode-lldb",
370 "description": "Preferred debug engine.",
371 "markdownEnumDescriptions": [
372 "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).",
373 "Use [CodeLLDB](https://marketplace.visualstudio.com/items?itemName=vadimcn.vscode-lldb)",
374 "Use [MS C++ tools](https://marketplace.visualstudio.com/items?itemName=ms-vscode.cpptools)"
377 "rust-analyzer.debug.sourceFileMap": {
383 "description": "Optional source file mappings passed to the debug engine.",
385 "/rustc/<id>": "${env:USERPROFILE}/.rustup/toolchains/<toolchain-id>/lib/rustlib/src/rust"
388 "rust-analyzer.debug.openDebugPane": {
389 "markdownDescription": "Whether to open up the `Debug Panel` on debugging start.",
393 "rust-analyzer.debug.engineSettings": {
396 "markdownDescription": "Optional settings passed to the debug engine. Example: `{ \"lldb\": { \"terminal\":\"external\"} }`"
398 "$generated-start": {},
399 "rust-analyzer.assist.importGranularity": {
400 "markdownDescription": "How imports should be grouped into use statements.",
409 "enumDescriptions": [
410 "Do not change the granularity of any imports and preserve the original structure written by the developer.",
411 "Merge imports from the same crate into a single use statement. Conversely, imports from different crates are split into separate statements.",
412 "Merge imports from the same module into a single use statement. Conversely, imports from different modules are split into separate statements.",
413 "Flatten imports so that each has its own use statement."
416 "rust-analyzer.assist.importEnforceGranularity": {
417 "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.",
421 "rust-analyzer.assist.importPrefix": {
422 "markdownDescription": "The path structure for newly inserted paths to use.",
430 "enumDescriptions": [
431 "Insert import paths relative to the current module, using up to one `super` prefix if the parent module contains the requested item.",
432 "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.",
433 "Force import paths to be absolute by always starting them with `crate` or the extern crate name they come from."
436 "rust-analyzer.assist.importGroup": {
437 "markdownDescription": "Group inserted imports by the [following order](https://rust-analyzer.github.io/manual.html#auto-import). Groups are separated by newlines.",
441 "rust-analyzer.assist.allowMergingIntoGlobImports": {
442 "markdownDescription": "Whether to allow import insertion to merge new imports into single path glob imports like `use std::fmt::*;`.",
446 "rust-analyzer.callInfo.full": {
447 "markdownDescription": "Show function name and docs in parameter hints.",
451 "rust-analyzer.cargo.autoreload": {
452 "markdownDescription": "Automatically refresh project info via `cargo metadata` on\n`Cargo.toml` changes.",
456 "rust-analyzer.cargo.allFeatures": {
457 "markdownDescription": "Activate all available features (`--all-features`).",
461 "rust-analyzer.cargo.unsetTest": {
462 "markdownDescription": "Unsets `#[cfg(test)]` for the specified crates.",
471 "rust-analyzer.cargo.features": {
472 "markdownDescription": "List of features to activate.",
479 "rust-analyzer.cargo.runBuildScripts": {
480 "markdownDescription": "Run build scripts (`build.rs`) for more precise code analysis.",
484 "rust-analyzer.cargo.useRustcWrapperForBuildScripts": {
485 "markdownDescription": "Use `RUSTC_WRAPPER=rust-analyzer` when running build scripts to\navoid compiling unnecessary things.",
489 "rust-analyzer.cargo.noDefaultFeatures": {
490 "markdownDescription": "Do not activate the `default` feature.",
494 "rust-analyzer.cargo.target": {
495 "markdownDescription": "Compilation target (target triple).",
502 "rust-analyzer.cargo.noSysroot": {
503 "markdownDescription": "Internal config for debugging, disables loading of sysroot crates.",
507 "rust-analyzer.checkOnSave.enable": {
508 "markdownDescription": "Run specified `cargo check` command for diagnostics on save.",
512 "rust-analyzer.checkOnSave.allFeatures": {
513 "markdownDescription": "Check with all features (`--all-features`).\nDefaults to `#rust-analyzer.cargo.allFeatures#`.",
520 "rust-analyzer.checkOnSave.allTargets": {
521 "markdownDescription": "Check all targets and tests (`--all-targets`).",
525 "rust-analyzer.checkOnSave.command": {
526 "markdownDescription": "Cargo command to use for `cargo check`.",
530 "rust-analyzer.checkOnSave.noDefaultFeatures": {
531 "markdownDescription": "Do not activate the `default` feature.",
538 "rust-analyzer.checkOnSave.target": {
539 "markdownDescription": "Check for a specific target. Defaults to\n`#rust-analyzer.cargo.target#`.",
546 "rust-analyzer.checkOnSave.extraArgs": {
547 "markdownDescription": "Extra arguments for `cargo check`.",
554 "rust-analyzer.checkOnSave.features": {
555 "markdownDescription": "List of features to activate. Defaults to\n`#rust-analyzer.cargo.features#`.",
565 "rust-analyzer.checkOnSave.overrideCommand": {
566 "markdownDescription": "Advanced option, fully override the command rust-analyzer uses for\nchecking. The command should include `--message-format=json` or\nsimilar option.",
576 "rust-analyzer.completion.addCallArgumentSnippets": {
577 "markdownDescription": "Whether to add argument snippets when completing functions.\nOnly applies when `#rust-analyzer.completion.addCallParenthesis#` is set.",
581 "rust-analyzer.completion.addCallParenthesis": {
582 "markdownDescription": "Whether to add parenthesis when completing functions.",
586 "rust-analyzer.completion.postfix.enable": {
587 "markdownDescription": "Whether to show postfix snippets like `dbg`, `if`, `not`, etc.",
591 "rust-analyzer.completion.autoimport.enable": {
592 "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.",
596 "rust-analyzer.completion.autoself.enable": {
597 "markdownDescription": "Toggles the additional completions that automatically show method calls and field accesses\nwith `self` prefixed to them when inside a method.",
601 "rust-analyzer.diagnostics.enable": {
602 "markdownDescription": "Whether to show native rust-analyzer diagnostics.",
606 "rust-analyzer.diagnostics.enableExperimental": {
607 "markdownDescription": "Whether to show experimental rust-analyzer diagnostics that might\nhave more false positives than usual.",
611 "rust-analyzer.diagnostics.disabled": {
612 "markdownDescription": "List of rust-analyzer diagnostics to disable.",
620 "rust-analyzer.diagnostics.remapPrefix": {
621 "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`.",
625 "rust-analyzer.diagnostics.warningsAsHint": {
626 "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`.",
633 "rust-analyzer.diagnostics.warningsAsInfo": {
634 "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`.",
641 "rust-analyzer.experimental.procAttrMacros": {
642 "markdownDescription": "Expand attribute macros.",
646 "rust-analyzer.files.watcher": {
647 "markdownDescription": "Controls file watching implementation.",
651 "rust-analyzer.files.excludeDirs": {
652 "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`.",
659 "rust-analyzer.highlightRelated.references": {
660 "markdownDescription": "Enables highlighting of related references while hovering your mouse above any identifier.",
664 "rust-analyzer.highlightRelated.exitPoints": {
665 "markdownDescription": "Enables highlighting of all exit points while hovering your mouse above any `return`, `?`, or return type arrow (`->`).",
669 "rust-analyzer.highlightRelated.breakPoints": {
670 "markdownDescription": "Enables highlighting of related references while hovering your mouse `break`, `loop`, `while`, or `for` keywords.",
674 "rust-analyzer.highlightRelated.yieldPoints": {
675 "markdownDescription": "Enables highlighting of all break points for a loop or block context while hovering your mouse above any `async` or `await` keywords.",
679 "rust-analyzer.highlighting.strings": {
680 "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.",
684 "rust-analyzer.hover.documentation": {
685 "markdownDescription": "Whether to show documentation on hover.",
689 "rust-analyzer.hover.linksInHover": {
690 "markdownDescription": "Use markdown syntax for links in hover.",
694 "rust-analyzer.hoverActions.debug": {
695 "markdownDescription": "Whether to show `Debug` action. Only applies when\n`#rust-analyzer.hoverActions.enable#` is set.",
699 "rust-analyzer.hoverActions.enable": {
700 "markdownDescription": "Whether to show HoverActions in Rust files.",
704 "rust-analyzer.hoverActions.gotoTypeDef": {
705 "markdownDescription": "Whether to show `Go to Type Definition` action. Only applies when\n`#rust-analyzer.hoverActions.enable#` is set.",
709 "rust-analyzer.hoverActions.implementations": {
710 "markdownDescription": "Whether to show `Implementations` action. Only applies when\n`#rust-analyzer.hoverActions.enable#` is set.",
714 "rust-analyzer.hoverActions.references": {
715 "markdownDescription": "Whether to show `References` action. Only applies when\n`#rust-analyzer.hoverActions.enable#` is set.",
719 "rust-analyzer.hoverActions.run": {
720 "markdownDescription": "Whether to show `Run` action. Only applies when\n`#rust-analyzer.hoverActions.enable#` is set.",
724 "rust-analyzer.inlayHints.chainingHints": {
725 "markdownDescription": "Whether to show inlay type hints for method chains.",
729 "rust-analyzer.inlayHints.maxLength": {
730 "markdownDescription": "Maximum length for inlay hints. Set to null to have an unlimited length.",
738 "rust-analyzer.inlayHints.parameterHints": {
739 "markdownDescription": "Whether to show function parameter name inlay hints at the call\nsite.",
743 "rust-analyzer.inlayHints.typeHints": {
744 "markdownDescription": "Whether to show inlay type hints for variables.",
748 "rust-analyzer.joinLines.joinElseIf": {
749 "markdownDescription": "Join lines inserts else between consecutive ifs.",
753 "rust-analyzer.joinLines.removeTrailingComma": {
754 "markdownDescription": "Join lines removes trailing commas.",
758 "rust-analyzer.joinLines.unwrapTrivialBlock": {
759 "markdownDescription": "Join lines unwraps trivial blocks.",
763 "rust-analyzer.lens.debug": {
764 "markdownDescription": "Whether to show `Debug` lens. Only applies when\n`#rust-analyzer.lens.enable#` is set.",
768 "rust-analyzer.lens.enable": {
769 "markdownDescription": "Whether to show CodeLens in Rust files.",
773 "rust-analyzer.lens.implementations": {
774 "markdownDescription": "Whether to show `Implementations` lens. Only applies when\n`#rust-analyzer.lens.enable#` is set.",
778 "rust-analyzer.lens.run": {
779 "markdownDescription": "Whether to show `Run` lens. Only applies when\n`#rust-analyzer.lens.enable#` is set.",
783 "rust-analyzer.lens.methodReferences": {
784 "markdownDescription": "Whether to show `Method References` lens. Only applies when\n`#rust-analyzer.lens.enable#` is set.",
788 "rust-analyzer.lens.references": {
789 "markdownDescription": "Whether to show `References` lens. Only applies when\n`#rust-analyzer.lens.enable#` is set.",
793 "rust-analyzer.lens.forceCustomCommands": {
794 "markdownDescription": "Internal config: use custom client-side commands even when the\nclient doesn't set the corresponding capability.",
798 "rust-analyzer.linkedProjects": {
799 "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.",
809 "rust-analyzer.lruCapacity": {
810 "markdownDescription": "Number of syntax trees rust-analyzer keeps in memory. Defaults to 128.",
818 "rust-analyzer.notifications.cargoTomlNotFound": {
819 "markdownDescription": "Whether to show `can't find Cargo.toml` error message.",
823 "rust-analyzer.procMacro.enable": {
824 "markdownDescription": "Enable support for procedural macros, implies `#rust-analyzer.cargo.runBuildScripts#`.",
828 "rust-analyzer.procMacro.server": {
829 "markdownDescription": "Internal config, path to proc-macro server executable (typically,\nthis is rust-analyzer itself, but we override this in tests).",
836 "rust-analyzer.runnables.overrideCargo": {
837 "markdownDescription": "Command to be executed instead of 'cargo' for runnables.",
844 "rust-analyzer.runnables.cargoExtraArgs": {
845 "markdownDescription": "Additional arguments to be passed to cargo for runnables such as\ntests or binaries. For example, it may be `--release`.",
852 "rust-analyzer.rustcSource": {
853 "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.",
860 "rust-analyzer.rustfmt.extraArgs": {
861 "markdownDescription": "Additional arguments to `rustfmt`.",
868 "rust-analyzer.rustfmt.overrideCommand": {
869 "markdownDescription": "Advanced option, fully override the command rust-analyzer uses for\nformatting.",
879 "rust-analyzer.rustfmt.enableRangeFormatting": {
880 "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.",
884 "rust-analyzer.workspace.symbol.search.scope": {
885 "markdownDescription": "Workspace symbol search scope.",
886 "default": "workspace",
890 "workspace_and_dependencies"
892 "enumDescriptions": [
893 "Search in current workspace only",
894 "Search in current workspace and dependencies"
897 "rust-analyzer.workspace.symbol.search.kind": {
898 "markdownDescription": "Workspace symbol search kind.",
899 "default": "only_types",
905 "enumDescriptions": [
906 "Search for types only",
907 "Search for all symbols kinds"
918 "regexp": "^(warning|warn|error)(?:\\[(.*?)\\])?: (.*)$",
924 "regexp": "^[\\s->=]*(.*?):(\\d*):(\\d*)\\s*$",
932 "name": "rustc-json",
935 "regexp": "^.*\"message\":{\"message\":\"([^\"]*).*?\"file_name\":\"([^\"]+).*?\"line_start\":(\\d+).*?\"line_end\":(\\d+).*?\"column_start\":(\\d+).*?\"column_end\":(\\d+).*}$",
948 "id": "ra_syntax_tree",
962 "configuration": "language-configuration.json"
967 "language": "ra_syntax_tree",
968 "scopeName": "source.ra_syntax_tree",
969 "path": "ra_syntax_tree.tmGrammar.json"
984 "name": "rustc-json",
991 "pattern": "$rustc-json"
994 "name": "rustc-watch",
1002 "beginsPattern": "^\\[Running\\b",
1003 "endsPattern": "^\\[Finished running\\b"
1010 "id": "rust_analyzer.inlayHints.foreground",
1011 "description": "Foreground color of inlay hints (is overriden by more specific rust_analyzer.inlayHints.foreground.* configurations)",
1013 "dark": "#A0A0A0F0",
1015 "highContrast": "#BEBEBE"
1019 "id": "rust_analyzer.inlayHints.background",
1020 "description": "Background color of inlay hints (is overriden by more specific rust_analyzer.inlayHints.background.* configurations)",
1022 "dark": "#11223300",
1023 "light": "#11223300",
1024 "highContrast": "#11223300"
1028 "id": "rust_analyzer.inlayHints.foreground.typeHints",
1029 "description": "Foreground color of inlay type hints for variables (overrides rust_analyzer.inlayHints.foreground)",
1031 "dark": "rust_analyzer.inlayHints.foreground",
1032 "light": "rust_analyzer.inlayHints.foreground",
1033 "highContrast": "rust_analyzer.inlayHints.foreground"
1037 "id": "rust_analyzer.inlayHints.foreground.chainingHints",
1038 "description": "Foreground color of inlay type hints for method chains (overrides rust_analyzer.inlayHints.foreground)",
1040 "dark": "rust_analyzer.inlayHints.foreground",
1041 "light": "rust_analyzer.inlayHints.foreground",
1042 "highContrast": "rust_analyzer.inlayHints.foreground"
1046 "id": "rust_analyzer.inlayHints.foreground.parameterHints",
1047 "description": "Foreground color of function parameter name inlay hints at the call site (overrides rust_analyzer.inlayHints.foreground)",
1049 "dark": "rust_analyzer.inlayHints.foreground",
1050 "light": "rust_analyzer.inlayHints.foreground",
1051 "highContrast": "rust_analyzer.inlayHints.foreground"
1055 "id": "rust_analyzer.inlayHints.background.typeHints",
1056 "description": "Background color of inlay type hints for variables (overrides rust_analyzer.inlayHints.background)",
1058 "dark": "rust_analyzer.inlayHints.background",
1059 "light": "rust_analyzer.inlayHints.background",
1060 "highContrast": "rust_analyzer.inlayHints.background"
1064 "id": "rust_analyzer.inlayHints.background.chainingHints",
1065 "description": "Background color of inlay type hints for method chains (overrides rust_analyzer.inlayHints.background)",
1067 "dark": "rust_analyzer.inlayHints.background",
1068 "light": "rust_analyzer.inlayHints.background",
1069 "highContrast": "rust_analyzer.inlayHints.background"
1073 "id": "rust_analyzer.inlayHints.background.parameterHints",
1074 "description": "Background color of function parameter name inlay hints at the call site (overrides rust_analyzer.inlayHints.background)",
1076 "dark": "rust_analyzer.inlayHints.background",
1077 "light": "rust_analyzer.inlayHints.background",
1078 "highContrast": "rust_analyzer.inlayHints.background"
1082 "id": "rust_analyzer.syntaxTreeBorder",
1083 "description": "Color of the border displayed in the Rust source code for the selected syntax node (see \"Show Syntax Tree\" command)",
1087 "highContrast": "#b700ff"
1091 "semanticTokenTypes": [
1094 "description": "Style for attributes"
1098 "description": "Style for boolean literals",
1099 "superType": "keyword"
1102 "id": "builtinType",
1103 "description": "Style for builtin types",
1108 "description": "Style for lifetimes"
1111 "id": "selfKeyword",
1112 "description": "Style for the self keyword",
1113 "superType": "keyword"
1117 "description": "Style for type aliases",
1122 "description": "Style for C-style untagged unions",
1126 "id": "unresolvedReference",
1127 "description": "Style for names which can not be resolved due to compilation errors"
1130 "id": "formatSpecifier",
1131 "description": "Style for {} placeholders in format strings"
1134 "id": "punctuation",
1135 "description": "generic punctuation"
1138 "id": "parenthesis",
1139 "description": "( or )",
1140 "superType": "punctuation"
1144 "description": "[ or ]",
1145 "superType": "punctuation"
1149 "description": "{ or }",
1150 "superType": "punctuation"
1154 "description": "< or >",
1155 "superType": "punctuation"
1160 "superType": "punctuation"
1165 "superType": "punctuation"
1170 "superType": "punctuation"
1175 "superType": "punctuation"
1178 "semanticTokenModifiers": [
1181 "description": "Style for elements within attributes"
1185 "description": "Style for compile-time constants"
1188 "id": "controlFlow",
1189 "description": "Style for control flow keywords"
1193 "description": "Style for mutable bindings"
1197 "description": "Style for unsafe operations"
1201 "description": "Style for non-Copy lvalues consumed by method/function call"
1205 "description": "Style for variables/parameters that can be used in call expressions"
1208 "semanticTokenScopes": [
1213 "meta.attribute.rust"
1215 "function.attribute": [
1216 "entity.name.function.attribute.rust"
1219 "constant.language.boolean.rust"
1222 "support.type.primitive.rust"
1225 "storage.modifier.lifetime.rust"
1228 "entity.name.type.typeAlias.rust"
1231 "entity.name.type.union.rust"
1234 "entity.name.type.struct.rust"
1237 "keyword.other.rust"
1239 "keyword.controlFlow": [
1240 "keyword.control.rust"
1242 "variable.constant": [
1243 "variable.other.constant.rust"
1245 "formatSpecifier": [
1246 "punctuation.section.embedded.rust"
1257 "command": "rust-analyzer.syntaxTree",
1258 "when": "inRustProject"
1261 "command": "rust-analyzer.viewHir",
1262 "when": "inRustProject"
1265 "command": "rust-analyzer.expandMacro",
1266 "when": "inRustProject"
1269 "command": "rust-analyzer.matchingBrace",
1270 "when": "inRustProject"
1273 "command": "rust-analyzer.parentModule",
1274 "when": "inRustProject"
1277 "command": "rust-analyzer.joinLines",
1278 "when": "inRustProject"
1281 "command": "rust-analyzer.run",
1282 "when": "inRustProject"
1285 "command": "rust-analyzer.debug",
1286 "when": "inRustProject"
1289 "command": "rust-analyzer.newDebugConfig",
1290 "when": "inRustProject"
1293 "command": "rust-analyzer.analyzerStatus",
1294 "when": "inRustProject"
1297 "command": "rust-analyzer.memoryUsage",
1298 "when": "inRustProject"
1301 "command": "rust-analyzer.reloadWorkspace",
1302 "when": "inRustProject"
1305 "command": "rust-analyzer.reload",
1306 "when": "inRustProject"
1309 "command": "rust-analyzer.updateGithubToken",
1310 "when": "inRustProject"
1313 "command": "rust-analyzer.onEnter",
1314 "when": "inRustProject"
1317 "command": "rust-analyzer.ssr",
1318 "when": "inRustProject"
1321 "command": "rust-analyzer.serverVersion",
1322 "when": "inRustProject"
1325 "command": "rust-analyzer.toggleInlayHints",
1326 "when": "inRustProject"
1329 "command": "rust-analyzer.openDocs",
1330 "when": "inRustProject"
1333 "command": "rust-analyzer.openCargoToml",
1334 "when": "inRustProject"
1339 "command": "rust-analyzer.peekTests",
1340 "when": "inRustProject",
1341 "group": "navigation@1000"