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 "vscode-languageclient": "8.0.0-next.2",
41 "d3-graphviz": "^4.0.0"
44 "@types/node": "~14.17.5",
45 "@types/vscode": "~1.63.0",
46 "@typescript-eslint/eslint-plugin": "^5.5.0",
47 "@typescript-eslint/parser": "^5.5.0",
48 "@vscode/test-electron": "^1.6.2",
52 "typescript": "^4.5.2",
53 "typescript-formatter": "^7.2.2",
58 "onCommand:rust-analyzer.analyzerStatus",
59 "onCommand:rust-analyzer.memoryUsage",
60 "onCommand:rust-analyzer.reloadWorkspace",
61 "workspaceContains:*/Cargo.toml",
62 "workspaceContains:*/rust-project.json"
87 "patternProperties": {
98 "command": "rust-analyzer.syntaxTree",
99 "title": "Show Syntax Tree",
100 "category": "Rust Analyzer"
103 "command": "rust-analyzer.viewHir",
105 "category": "Rust Analyzer"
108 "command": "rust-analyzer.viewItemTree",
109 "title": "Debug ItemTree",
110 "category": "Rust Analyzer"
113 "command": "rust-analyzer.viewCrateGraph",
114 "title": "View Crate Graph",
115 "category": "Rust Analyzer"
118 "command": "rust-analyzer.viewFullCrateGraph",
119 "title": "View Crate Graph (Full)",
120 "category": "Rust Analyzer"
123 "command": "rust-analyzer.expandMacro",
124 "title": "Expand macro recursively",
125 "category": "Rust Analyzer"
128 "command": "rust-analyzer.matchingBrace",
129 "title": "Find matching brace",
130 "category": "Rust Analyzer"
133 "command": "rust-analyzer.parentModule",
134 "title": "Locate parent module",
135 "category": "Rust Analyzer"
138 "command": "rust-analyzer.joinLines",
139 "title": "Join lines",
140 "category": "Rust Analyzer"
143 "command": "rust-analyzer.run",
145 "category": "Rust Analyzer"
148 "command": "rust-analyzer.copyRunCommandLine",
149 "title": "Copy Run Command Line",
150 "category": "Rust Analyzer"
153 "command": "rust-analyzer.debug",
155 "category": "Rust Analyzer"
158 "command": "rust-analyzer.newDebugConfig",
159 "title": "Generate launch configuration",
160 "category": "Rust Analyzer"
163 "command": "rust-analyzer.analyzerStatus",
165 "category": "Rust Analyzer"
168 "command": "rust-analyzer.memoryUsage",
169 "title": "Memory Usage (Clears Database)",
170 "category": "Rust Analyzer"
173 "command": "rust-analyzer.shuffleCrateGraph",
174 "title": "Shuffle Crate Graph",
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.server.path": {
311 "scope": "machine-overridable",
313 "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"
315 "rust-analyzer.server.extraEnv": {
321 "markdownDescription": "Extra environment variables that will be passed to the rust-analyzer executable. Useful for passing e.g. `RA_LOG` for debugging."
323 "rust-analyzer.trace.server": {
331 "enumDescriptions": [
337 "description": "Trace requests to the rust-analyzer (this is usually overly verbose and not recommended for regular users)."
339 "rust-analyzer.trace.extension": {
340 "description": "Enable logging of VS Code extensions itself.",
344 "rust-analyzer.debug.engine": {
348 "vadimcn.vscode-lldb",
352 "description": "Preferred debug engine.",
353 "markdownEnumDescriptions": [
354 "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).",
355 "Use [CodeLLDB](https://marketplace.visualstudio.com/items?itemName=vadimcn.vscode-lldb)",
356 "Use [MS C++ tools](https://marketplace.visualstudio.com/items?itemName=ms-vscode.cpptools)"
359 "rust-analyzer.debug.sourceFileMap": {
365 "description": "Optional source file mappings passed to the debug engine.",
367 "/rustc/<id>": "${env:USERPROFILE}/.rustup/toolchains/<toolchain-id>/lib/rustlib/src/rust"
370 "rust-analyzer.debug.openDebugPane": {
371 "markdownDescription": "Whether to open up the `Debug Panel` on debugging start.",
375 "rust-analyzer.debug.engineSettings": {
378 "markdownDescription": "Optional settings passed to the debug engine. Example: `{ \"lldb\": { \"terminal\":\"external\"} }`"
380 "$generated-start": {},
381 "rust-analyzer.assist.importGranularity": {
382 "markdownDescription": "How imports should be grouped into use statements.",
391 "enumDescriptions": [
392 "Do not change the granularity of any imports and preserve the original structure written by the developer.",
393 "Merge imports from the same crate into a single use statement. Conversely, imports from different crates are split into separate statements.",
394 "Merge imports from the same module into a single use statement. Conversely, imports from different modules are split into separate statements.",
395 "Flatten imports so that each has its own use statement."
398 "rust-analyzer.assist.importEnforceGranularity": {
399 "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.",
403 "rust-analyzer.assist.importPrefix": {
404 "markdownDescription": "The path structure for newly inserted paths to use.",
412 "enumDescriptions": [
413 "Insert import paths relative to the current module, using up to one `super` prefix if the parent module contains the requested item.",
414 "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.",
415 "Force import paths to be absolute by always starting them with `crate` or the extern crate name they come from."
418 "rust-analyzer.assist.importGroup": {
419 "markdownDescription": "Group inserted imports by the [following order](https://rust-analyzer.github.io/manual.html#auto-import). Groups are separated by newlines.",
423 "rust-analyzer.assist.allowMergingIntoGlobImports": {
424 "markdownDescription": "Whether to allow import insertion to merge new imports into single path glob imports like `use std::fmt::*;`.",
428 "rust-analyzer.cache.warmup": {
429 "markdownDescription": "Warm up caches on project load.",
433 "rust-analyzer.callInfo.full": {
434 "markdownDescription": "Show function name and docs in parameter hints.",
438 "rust-analyzer.cargo.autoreload": {
439 "markdownDescription": "Automatically refresh project info via `cargo metadata` on\n`Cargo.toml` changes.",
443 "rust-analyzer.cargo.allFeatures": {
444 "markdownDescription": "Activate all available features (`--all-features`).",
448 "rust-analyzer.cargo.unsetTest": {
449 "markdownDescription": "Unsets `#[cfg(test)]` for the specified crates.",
458 "rust-analyzer.cargo.features": {
459 "markdownDescription": "List of features to activate.",
466 "rust-analyzer.cargo.runBuildScripts": {
467 "markdownDescription": "Run build scripts (`build.rs`) for more precise code analysis.",
471 "rust-analyzer.cargo.useRustcWrapperForBuildScripts": {
472 "markdownDescription": "Use `RUSTC_WRAPPER=rust-analyzer` when running build scripts to\navoid compiling unnecessary things.",
476 "rust-analyzer.cargo.noDefaultFeatures": {
477 "markdownDescription": "Do not activate the `default` feature.",
481 "rust-analyzer.cargo.target": {
482 "markdownDescription": "Compilation target (target triple).",
489 "rust-analyzer.cargo.noSysroot": {
490 "markdownDescription": "Internal config for debugging, disables loading of sysroot crates.",
494 "rust-analyzer.checkOnSave.enable": {
495 "markdownDescription": "Run specified `cargo check` command for diagnostics on save.",
499 "rust-analyzer.checkOnSave.allFeatures": {
500 "markdownDescription": "Check with all features (`--all-features`).\nDefaults to `#rust-analyzer.cargo.allFeatures#`.",
507 "rust-analyzer.checkOnSave.allTargets": {
508 "markdownDescription": "Check all targets and tests (`--all-targets`).",
512 "rust-analyzer.checkOnSave.command": {
513 "markdownDescription": "Cargo command to use for `cargo check`.",
517 "rust-analyzer.checkOnSave.noDefaultFeatures": {
518 "markdownDescription": "Do not activate the `default` feature.",
525 "rust-analyzer.checkOnSave.target": {
526 "markdownDescription": "Check for a specific target. Defaults to\n`#rust-analyzer.cargo.target#`.",
533 "rust-analyzer.checkOnSave.extraArgs": {
534 "markdownDescription": "Extra arguments for `cargo check`.",
541 "rust-analyzer.checkOnSave.features": {
542 "markdownDescription": "List of features to activate. Defaults to\n`#rust-analyzer.cargo.features#`.",
552 "rust-analyzer.checkOnSave.overrideCommand": {
553 "markdownDescription": "Advanced option, fully override the command rust-analyzer uses for\nchecking. The command should include `--message-format=json` or\nsimilar option.",
563 "rust-analyzer.completion.addCallArgumentSnippets": {
564 "markdownDescription": "Whether to add argument snippets when completing functions.\nOnly applies when `#rust-analyzer.completion.addCallParenthesis#` is set.",
568 "rust-analyzer.completion.addCallParenthesis": {
569 "markdownDescription": "Whether to add parenthesis when completing functions.",
573 "rust-analyzer.completion.snippets": {
574 "markdownDescription": "Custom completion snippets.",
578 "body": "Arc::new(${receiver})",
579 "requires": "std::sync::Arc",
580 "description": "Put the expression into an `Arc`",
585 "body": "Rc::new(${receiver})",
586 "requires": "std::rc::Rc",
587 "description": "Put the expression into an `Rc`",
592 "body": "Box::pin(${receiver})",
593 "requires": "std::boxed::Box",
594 "description": "Put the expression into a pinned `Box`",
599 "body": "Ok(${receiver})",
600 "description": "Wrap the expression in a `Result::Ok`",
605 "body": "Err(${receiver})",
606 "description": "Wrap the expression in a `Result::Err`",
611 "body": "Some(${receiver})",
612 "description": "Wrap the expression in an `Option::Some`",
618 "rust-analyzer.completion.postfix.enable": {
619 "markdownDescription": "Whether to show postfix snippets like `dbg`, `if`, `not`, etc.",
623 "rust-analyzer.completion.autoimport.enable": {
624 "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.",
628 "rust-analyzer.completion.autoself.enable": {
629 "markdownDescription": "Toggles the additional completions that automatically show method calls and field accesses\nwith `self` prefixed to them when inside a method.",
633 "rust-analyzer.diagnostics.enable": {
634 "markdownDescription": "Whether to show native rust-analyzer diagnostics.",
638 "rust-analyzer.diagnostics.enableExperimental": {
639 "markdownDescription": "Whether to show experimental rust-analyzer diagnostics that might\nhave more false positives than usual.",
643 "rust-analyzer.diagnostics.disabled": {
644 "markdownDescription": "List of rust-analyzer diagnostics to disable.",
652 "rust-analyzer.diagnostics.remapPrefix": {
653 "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`.",
657 "rust-analyzer.diagnostics.warningsAsHint": {
658 "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`.",
665 "rust-analyzer.diagnostics.warningsAsInfo": {
666 "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`.",
673 "rust-analyzer.experimental.procAttrMacros": {
674 "markdownDescription": "Expand attribute macros.",
678 "rust-analyzer.files.watcher": {
679 "markdownDescription": "Controls file watching implementation.",
683 "rust-analyzer.files.excludeDirs": {
684 "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`.",
691 "rust-analyzer.highlightRelated.references": {
692 "markdownDescription": "Enables highlighting of related references while hovering your mouse above any identifier.",
696 "rust-analyzer.highlightRelated.exitPoints": {
697 "markdownDescription": "Enables highlighting of all exit points while hovering your mouse above any `return`, `?`, or return type arrow (`->`).",
701 "rust-analyzer.highlightRelated.breakPoints": {
702 "markdownDescription": "Enables highlighting of related references while hovering your mouse `break`, `loop`, `while`, or `for` keywords.",
706 "rust-analyzer.highlightRelated.yieldPoints": {
707 "markdownDescription": "Enables highlighting of all break points for a loop or block context while hovering your mouse above any `async` or `await` keywords.",
711 "rust-analyzer.highlighting.strings": {
712 "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.",
716 "rust-analyzer.hover.documentation": {
717 "markdownDescription": "Whether to show documentation on hover.",
721 "rust-analyzer.hover.linksInHover": {
722 "markdownDescription": "Use markdown syntax for links in hover.",
726 "rust-analyzer.hoverActions.debug": {
727 "markdownDescription": "Whether to show `Debug` action. Only applies when\n`#rust-analyzer.hoverActions.enable#` is set.",
731 "rust-analyzer.hoverActions.enable": {
732 "markdownDescription": "Whether to show HoverActions in Rust files.",
736 "rust-analyzer.hoverActions.gotoTypeDef": {
737 "markdownDescription": "Whether to show `Go to Type Definition` action. Only applies when\n`#rust-analyzer.hoverActions.enable#` is set.",
741 "rust-analyzer.hoverActions.implementations": {
742 "markdownDescription": "Whether to show `Implementations` action. Only applies when\n`#rust-analyzer.hoverActions.enable#` is set.",
746 "rust-analyzer.hoverActions.references": {
747 "markdownDescription": "Whether to show `References` action. Only applies when\n`#rust-analyzer.hoverActions.enable#` is set.",
751 "rust-analyzer.hoverActions.run": {
752 "markdownDescription": "Whether to show `Run` action. Only applies when\n`#rust-analyzer.hoverActions.enable#` is set.",
756 "rust-analyzer.inlayHints.chainingHints": {
757 "markdownDescription": "Whether to show inlay type hints for method chains.",
761 "rust-analyzer.inlayHints.maxLength": {
762 "markdownDescription": "Maximum length for inlay hints. Set to null to have an unlimited length.",
770 "rust-analyzer.inlayHints.parameterHints": {
771 "markdownDescription": "Whether to show function parameter name inlay hints at the call\nsite.",
775 "rust-analyzer.inlayHints.typeHints": {
776 "markdownDescription": "Whether to show inlay type hints for variables.",
780 "rust-analyzer.inlayHints.hideNamedConstructorHints": {
781 "markdownDescription": "Whether to hide inlay hints for constructors.",
785 "rust-analyzer.joinLines.joinElseIf": {
786 "markdownDescription": "Join lines inserts else between consecutive ifs.",
790 "rust-analyzer.joinLines.removeTrailingComma": {
791 "markdownDescription": "Join lines removes trailing commas.",
795 "rust-analyzer.joinLines.unwrapTrivialBlock": {
796 "markdownDescription": "Join lines unwraps trivial blocks.",
800 "rust-analyzer.joinLines.joinAssignments": {
801 "markdownDescription": "Join lines merges consecutive declaration and initialization of an assignment.",
805 "rust-analyzer.lens.debug": {
806 "markdownDescription": "Whether to show `Debug` lens. Only applies when\n`#rust-analyzer.lens.enable#` is set.",
810 "rust-analyzer.lens.enable": {
811 "markdownDescription": "Whether to show CodeLens in Rust files.",
815 "rust-analyzer.lens.implementations": {
816 "markdownDescription": "Whether to show `Implementations` lens. Only applies when\n`#rust-analyzer.lens.enable#` is set.",
820 "rust-analyzer.lens.run": {
821 "markdownDescription": "Whether to show `Run` lens. Only applies when\n`#rust-analyzer.lens.enable#` is set.",
825 "rust-analyzer.lens.methodReferences": {
826 "markdownDescription": "Whether to show `Method References` lens. Only applies when\n`#rust-analyzer.lens.enable#` is set.",
830 "rust-analyzer.lens.references": {
831 "markdownDescription": "Whether to show `References` lens for Struct, Enum, Union and Trait.\nOnly applies when `#rust-analyzer.lens.enable#` is set.",
835 "rust-analyzer.lens.enumVariantReferences": {
836 "markdownDescription": "Whether to show `References` lens for Enum Variants.\nOnly applies when `#rust-analyzer.lens.enable#` is set.",
840 "rust-analyzer.lens.forceCustomCommands": {
841 "markdownDescription": "Internal config: use custom client-side commands even when the\nclient doesn't set the corresponding capability.",
845 "rust-analyzer.linkedProjects": {
846 "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.",
856 "rust-analyzer.lruCapacity": {
857 "markdownDescription": "Number of syntax trees rust-analyzer keeps in memory. Defaults to 128.",
865 "rust-analyzer.notifications.cargoTomlNotFound": {
866 "markdownDescription": "Whether to show `can't find Cargo.toml` error message.",
870 "rust-analyzer.procMacro.enable": {
871 "markdownDescription": "Enable support for procedural macros, implies `#rust-analyzer.cargo.runBuildScripts#`.",
875 "rust-analyzer.procMacro.server": {
876 "markdownDescription": "Internal config, path to proc-macro server executable (typically,\nthis is rust-analyzer itself, but we override this in tests).",
883 "rust-analyzer.runnables.overrideCargo": {
884 "markdownDescription": "Command to be executed instead of 'cargo' for runnables.",
891 "rust-analyzer.runnables.cargoExtraArgs": {
892 "markdownDescription": "Additional arguments to be passed to cargo for runnables such as\ntests or binaries. For example, it may be `--release`.",
899 "rust-analyzer.rustcSource": {
900 "markdownDescription": "Path to the Cargo.toml of the rust compiler workspace, for usage in rustc_private\nprojects, or \"discover\" to try to automatically find it if the `rustc-dev` component\nis installed.\n\nAny project which uses rust-analyzer with the rustcPrivate\ncrates must set `[package.metadata.rust-analyzer] rustc_private=true` to use it.\n\nThis option does not take effect until rust-analyzer is restarted.",
907 "rust-analyzer.rustfmt.extraArgs": {
908 "markdownDescription": "Additional arguments to `rustfmt`.",
915 "rust-analyzer.rustfmt.overrideCommand": {
916 "markdownDescription": "Advanced option, fully override the command rust-analyzer uses for\nformatting.",
926 "rust-analyzer.rustfmt.enableRangeFormatting": {
927 "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.",
931 "rust-analyzer.workspace.symbol.search.scope": {
932 "markdownDescription": "Workspace symbol search scope.",
933 "default": "workspace",
937 "workspace_and_dependencies"
939 "enumDescriptions": [
940 "Search in current workspace only",
941 "Search in current workspace and dependencies"
944 "rust-analyzer.workspace.symbol.search.kind": {
945 "markdownDescription": "Workspace symbol search kind.",
946 "default": "only_types",
952 "enumDescriptions": [
953 "Search for types only",
954 "Search for all symbols kinds"
965 "regexp": "^(warning|warn|error)(?:\\[(.*?)\\])?: (.*)$",
971 "regexp": "^[\\s->=]*(.*?):(\\d*):(\\d*)\\s*$",
979 "name": "rustc-json",
982 "regexp": "^.*\"message\":{\"message\":\"([^\"]*).*?\"file_name\":\"([^\"]+).*?\"line_start\":(\\d+).*?\"line_end\":(\\d+).*?\"column_start\":(\\d+).*?\"column_end\":(\\d+).*}$",
995 "id": "ra_syntax_tree",
1009 "configuration": "language-configuration.json"
1014 "language": "ra_syntax_tree",
1015 "scopeName": "source.ra_syntax_tree",
1016 "path": "ra_syntax_tree.tmGrammar.json"
1019 "problemMatchers": [
1031 "name": "rustc-json",
1038 "pattern": "$rustc-json"
1041 "name": "rustc-watch",
1049 "beginsPattern": "^\\[Running\\b",
1050 "endsPattern": "^\\[Finished running\\b"
1057 "id": "rust_analyzer.inlayHints.foreground",
1058 "description": "Foreground color of inlay hints (is overriden by more specific rust_analyzer.inlayHints.foreground.* configurations)",
1060 "dark": "#A0A0A0F0",
1062 "highContrast": "#BEBEBE"
1066 "id": "rust_analyzer.inlayHints.background",
1067 "description": "Background color of inlay hints (is overriden by more specific rust_analyzer.inlayHints.background.* configurations)",
1069 "dark": "#11223300",
1070 "light": "#11223300",
1071 "highContrast": "#11223300"
1075 "id": "rust_analyzer.inlayHints.foreground.typeHints",
1076 "description": "Foreground color of inlay type hints for variables (overrides rust_analyzer.inlayHints.foreground)",
1078 "dark": "rust_analyzer.inlayHints.foreground",
1079 "light": "rust_analyzer.inlayHints.foreground",
1080 "highContrast": "rust_analyzer.inlayHints.foreground"
1084 "id": "rust_analyzer.inlayHints.foreground.chainingHints",
1085 "description": "Foreground color of inlay type hints for method chains (overrides rust_analyzer.inlayHints.foreground)",
1087 "dark": "rust_analyzer.inlayHints.foreground",
1088 "light": "rust_analyzer.inlayHints.foreground",
1089 "highContrast": "rust_analyzer.inlayHints.foreground"
1093 "id": "rust_analyzer.inlayHints.foreground.parameterHints",
1094 "description": "Foreground color of function parameter name inlay hints at the call site (overrides rust_analyzer.inlayHints.foreground)",
1096 "dark": "rust_analyzer.inlayHints.foreground",
1097 "light": "rust_analyzer.inlayHints.foreground",
1098 "highContrast": "rust_analyzer.inlayHints.foreground"
1102 "id": "rust_analyzer.inlayHints.background.typeHints",
1103 "description": "Background color of inlay type hints for variables (overrides rust_analyzer.inlayHints.background)",
1105 "dark": "rust_analyzer.inlayHints.background",
1106 "light": "rust_analyzer.inlayHints.background",
1107 "highContrast": "rust_analyzer.inlayHints.background"
1111 "id": "rust_analyzer.inlayHints.background.chainingHints",
1112 "description": "Background color of inlay type hints for method chains (overrides rust_analyzer.inlayHints.background)",
1114 "dark": "rust_analyzer.inlayHints.background",
1115 "light": "rust_analyzer.inlayHints.background",
1116 "highContrast": "rust_analyzer.inlayHints.background"
1120 "id": "rust_analyzer.inlayHints.background.parameterHints",
1121 "description": "Background color of function parameter name inlay hints at the call site (overrides rust_analyzer.inlayHints.background)",
1123 "dark": "rust_analyzer.inlayHints.background",
1124 "light": "rust_analyzer.inlayHints.background",
1125 "highContrast": "rust_analyzer.inlayHints.background"
1129 "id": "rust_analyzer.syntaxTreeBorder",
1130 "description": "Color of the border displayed in the Rust source code for the selected syntax node (see \"Show Syntax Tree\" command)",
1134 "highContrast": "#b700ff"
1138 "semanticTokenTypes": [
1141 "description": "Style for < or >",
1142 "superType": "punctuation"
1146 "description": "Style for arithmetic operators",
1147 "superType": "operator"
1151 "description": "Style for attributes"
1154 "id": "attributeBracket",
1155 "description": "Style for attribute invocation brackets, that is the `#[` and `]` tokens",
1156 "superType": "punctuation"
1160 "description": "Style for bitwise operators",
1161 "superType": "operator"
1165 "description": "Style for boolean literals",
1166 "superType": "keyword"
1170 "description": "Style for { or }",
1171 "superType": "punctuation"
1175 "description": "Style for [ or ]",
1176 "superType": "punctuation"
1179 "id": "builtinAttribute",
1180 "description": "Style for builtin attributes",
1181 "superType": "attribute"
1184 "id": "builtinType",
1185 "description": "Style for builtin types",
1190 "description": "Style for character literals",
1195 "description": "Style for :",
1196 "superType": "punctuation"
1200 "description": "Style for ,",
1201 "superType": "punctuation"
1205 "description": "Style for comparison operators",
1206 "superType": "operator"
1209 "id": "constParameter",
1210 "description": "Style for const generics"
1214 "description": "Style for derives",
1215 "superType": "attribute"
1219 "description": "Style for .",
1220 "superType": "punctuation"
1223 "id": "escapeSequence",
1224 "description": "Style for char escapes in strings"
1227 "id": "formatSpecifier",
1228 "description": "Style for {} placeholders in format strings"
1232 "description": "Style for labels"
1236 "description": "Style for lifetimes"
1240 "description": "Style for logic operators",
1241 "superType": "operator"
1245 "description": "Style for operators",
1246 "superType": "punctuation"
1249 "id": "parenthesis",
1250 "description": "Style for ( or )",
1251 "superType": "punctuation"
1254 "id": "punctuation",
1255 "description": "Style for generic punctuation"
1258 "id": "selfKeyword",
1259 "description": "Style for the self keyword",
1260 "superType": "keyword"
1264 "description": "Style for ;",
1265 "superType": "punctuation"
1269 "description": "Style for type aliases",
1274 "description": "Style for C-style untagged unions",
1278 "id": "unresolvedReference",
1279 "description": "Style for names which can not be resolved due to compilation errors"
1282 "semanticTokenModifiers": [
1285 "description": "Style for async functions and the `async` and `await` keywords"
1289 "description": "Style for elements within attributes"
1293 "description": "Style for locals whose types implements one of the `Fn*` traits"
1297 "description": "Style for compile-time constants"
1301 "description": "Style for locals that are being consumed when use in a function call"
1304 "id": "controlFlow",
1305 "description": "Style for control-flow related tokens, this includes the `?` operator"
1309 "description": "Style for names resolving to a crate root"
1313 "description": "Style for doc-string injected highlighting like rust source blocks in documentation"
1316 "id": "intraDocLink",
1317 "description": "Style for intra doc links in doc-strings"
1321 "description": "Style for items that are defined outside of the current crate"
1325 "description": "Style for mutable locals and statics as well as functions taking `&mut self`"
1329 "description": "Style tems that are from the current crate and are `pub`"
1333 "description": "Style for locals behind a reference and functions taking `self` by reference"
1337 "description": "Style for associated trait items"
1341 "description": "Style for unsafe operations, like unsafe function calls, as well as the `unsafe` token"
1344 "semanticTokenScopes": [
1349 "meta.attribute.rust"
1352 "constant.language.boolean.rust"
1355 "support.type.primitive.rust"
1358 "constant.other.caps.rust"
1361 "entity.name.type.enum.rust"
1363 "formatSpecifier": [
1364 "punctuation.section.embedded.rust"
1367 "entity.name.function.rust"
1370 "entity.name.type.trait.rust"
1373 "keyword.other.rust"
1375 "keyword.controlFlow": [
1376 "keyword.control.rust"
1379 "storage.modifier.lifetime.rust"
1382 "entity.name.function.rust"
1385 "entity.name.type.struct.rust"
1388 "entity.name.type.declaration.rust"
1391 "entity.name.type.union.rust"
1394 "variable.other.rust"
1396 "variable.constant": [
1397 "variable.other.constant.rust"
1408 "command": "rust-analyzer.syntaxTree",
1409 "when": "inRustProject"
1412 "command": "rust-analyzer.viewHir",
1413 "when": "inRustProject"
1416 "command": "rust-analyzer.expandMacro",
1417 "when": "inRustProject"
1420 "command": "rust-analyzer.matchingBrace",
1421 "when": "inRustProject"
1424 "command": "rust-analyzer.parentModule",
1425 "when": "inRustProject"
1428 "command": "rust-analyzer.joinLines",
1429 "when": "inRustProject"
1432 "command": "rust-analyzer.run",
1433 "when": "inRustProject"
1436 "command": "rust-analyzer.debug",
1437 "when": "inRustProject"
1440 "command": "rust-analyzer.newDebugConfig",
1441 "when": "inRustProject"
1444 "command": "rust-analyzer.analyzerStatus",
1445 "when": "inRustProject"
1448 "command": "rust-analyzer.memoryUsage",
1449 "when": "inRustProject"
1452 "command": "rust-analyzer.reloadWorkspace",
1453 "when": "inRustProject"
1456 "command": "rust-analyzer.reload",
1457 "when": "inRustProject"
1460 "command": "rust-analyzer.updateGithubToken",
1461 "when": "inRustProject"
1464 "command": "rust-analyzer.onEnter",
1465 "when": "inRustProject"
1468 "command": "rust-analyzer.ssr",
1469 "when": "inRustProject"
1472 "command": "rust-analyzer.serverVersion",
1473 "when": "inRustProject"
1476 "command": "rust-analyzer.toggleInlayHints",
1477 "when": "inRustProject"
1480 "command": "rust-analyzer.openDocs",
1481 "when": "inRustProject"
1484 "command": "rust-analyzer.openCargoToml",
1485 "when": "inRustProject"
1490 "command": "rust-analyzer.peekTests",
1491 "when": "inRustProject",
1492 "group": "navigation@1000"