2 "name": "rust-analyzer",
3 "displayName": "rust-analyzer",
4 "description": "An alternative rust language server to the RLS",
8 "version": "0.4.0-dev",
10 "publisher": "matklad",
12 "url": "https://github.com/rust-analyzer/rust-analyzer.git",
15 "homepage": "https://rust-analyzer.github.io/",
16 "license": "MIT OR Apache-2.0",
21 "Programming Languages"
26 "enableProposedApi": true,
28 "vscode:prepublish": "npm run build-base -- --minify",
29 "package": "vsce package -o rust-analyzer.vsix",
30 "build-base": "esbuild ./src/main.ts --bundle --outfile=out/main.js --external:vscode --format=cjs --platform=node --target=node14",
31 "build": "npm run build-base -- --sourcemap",
32 "watch": "npm run build-base -- --sourcemap --watch",
33 "lint": "tsfmt --verify && eslint -c .eslintrc.js --ext ts ./src ./tests",
34 "fix": " tsfmt -r && eslint -c .eslintrc.js --ext ts ./src ./tests --fix",
35 "pretest": "tsc && npm run build",
36 "test": "node ./out/tests/runTests.js"
39 "https-proxy-agent": "^5.0.0",
40 "node-fetch": "^3.0.3",
41 "vscode-languageclient": "8.0.0-next.2",
43 "d3-graphviz": "^4.0.0"
46 "@types/node": "~14.17.5",
47 "@types/vscode": "^1.61.0",
48 "@typescript-eslint/eslint-plugin": "^5.5.0",
49 "@typescript-eslint/parser": "^5.5.0",
50 "@vscode/test-electron": "^1.6.2",
54 "typescript": "^4.5.2",
55 "typescript-formatter": "^7.2.2",
60 "onCommand:rust-analyzer.analyzerStatus",
61 "onCommand:rust-analyzer.memoryUsage",
62 "onCommand:rust-analyzer.reloadWorkspace",
63 "workspaceContains:*/Cargo.toml",
64 "workspaceContains:*/rust-project.json"
89 "patternProperties": {
100 "command": "rust-analyzer.syntaxTree",
101 "title": "Show Syntax Tree",
102 "category": "Rust Analyzer"
105 "command": "rust-analyzer.viewHir",
107 "category": "Rust Analyzer"
110 "command": "rust-analyzer.viewItemTree",
111 "title": "Debug ItemTree",
112 "category": "Rust Analyzer"
115 "command": "rust-analyzer.viewCrateGraph",
116 "title": "View Crate Graph",
117 "category": "Rust Analyzer"
120 "command": "rust-analyzer.viewFullCrateGraph",
121 "title": "View Crate Graph (Full)",
122 "category": "Rust Analyzer"
125 "command": "rust-analyzer.expandMacro",
126 "title": "Expand macro recursively",
127 "category": "Rust Analyzer"
130 "command": "rust-analyzer.matchingBrace",
131 "title": "Find matching brace",
132 "category": "Rust Analyzer"
135 "command": "rust-analyzer.parentModule",
136 "title": "Locate parent module",
137 "category": "Rust Analyzer"
140 "command": "rust-analyzer.joinLines",
141 "title": "Join lines",
142 "category": "Rust Analyzer"
145 "command": "rust-analyzer.run",
147 "category": "Rust Analyzer"
150 "command": "rust-analyzer.copyRunCommandLine",
151 "title": "Copy Run Command Line",
152 "category": "Rust Analyzer"
155 "command": "rust-analyzer.debug",
157 "category": "Rust Analyzer"
160 "command": "rust-analyzer.newDebugConfig",
161 "title": "Generate launch configuration",
162 "category": "Rust Analyzer"
165 "command": "rust-analyzer.analyzerStatus",
167 "category": "Rust Analyzer"
170 "command": "rust-analyzer.memoryUsage",
171 "title": "Memory Usage (Clears Database)",
172 "category": "Rust Analyzer"
175 "command": "rust-analyzer.reloadWorkspace",
176 "title": "Reload workspace",
177 "category": "Rust Analyzer"
180 "command": "rust-analyzer.reload",
181 "title": "Restart server",
182 "category": "Rust Analyzer"
185 "command": "rust-analyzer.updateGithubToken",
186 "title": "Update Github API token",
187 "category": "Rust Analyzer"
190 "command": "rust-analyzer.onEnter",
191 "title": "Enhanced enter key",
192 "category": "Rust Analyzer"
195 "command": "rust-analyzer.ssr",
196 "title": "Structural Search Replace",
197 "category": "Rust Analyzer"
200 "command": "rust-analyzer.serverVersion",
201 "title": "Show RA Version",
202 "category": "Rust Analyzer"
205 "command": "rust-analyzer.toggleInlayHints",
206 "title": "Toggle inlay hints",
207 "category": "Rust Analyzer"
210 "command": "rust-analyzer.openDocs",
211 "title": "Open docs under cursor",
212 "category": "Rust Analyzer"
215 "command": "rust-analyzer.openCargoToml",
216 "title": "Open Cargo.toml",
217 "category": "Rust Analyzer"
220 "command": "rust-analyzer.peekTests",
221 "title": "Peek related tests",
222 "category": "Rust Analyzer"
225 "command": "rust-analyzer.moveItemUp",
226 "title": "Move item up",
227 "category": "Rust Analyzer"
230 "command": "rust-analyzer.moveItemDown",
231 "title": "Move item down",
232 "category": "Rust Analyzer"
237 "command": "rust-analyzer.parentModule",
238 "key": "ctrl+shift+u",
239 "when": "editorTextFocus && editorLangId == rust"
242 "command": "rust-analyzer.matchingBrace",
243 "key": "ctrl+shift+m",
244 "when": "editorTextFocus && editorLangId == rust"
247 "command": "rust-analyzer.joinLines",
248 "key": "ctrl+shift+j",
249 "when": "editorTextFocus && editorLangId == rust"
254 "title": "Rust Analyzer",
256 "rust-analyzer.cargoRunner": {
262 "description": "Custom cargo runner extension ID."
264 "rust-analyzer.runnableEnv": {
276 "description": "Runnable name mask"
280 "description": "Variables in form of { \"key\": \"value\"}"
287 "description": "Variables in form of { \"key\": \"value\"}"
291 "markdownDescription": "Environment variables passed to the runnable launched using `Test` or `Debug` lens or `rust-analyzer.run` command."
293 "rust-analyzer.inlayHints.enable": {
296 "description": "Whether to show inlay hints."
298 "rust-analyzer.inlayHints.smallerHints": {
301 "description": "Whether inlay hints font size should be smaller than editor's font size."
303 "rust-analyzer.updates.channel": {
310 "markdownEnumDescriptions": [
311 "`stable` updates are shipped weekly, they don't contain cutting-edge features from VSCode proposed APIs but have less bugs in general.",
312 "`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**."
314 "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."
316 "rust-analyzer.updates.askBeforeDownload": {
319 "description": "Whether to ask for permission before downloading any files from the Internet."
321 "rust-analyzer.server.path": {
326 "scope": "machine-overridable",
328 "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"
330 "rust-analyzer.server.extraEnv": {
336 "markdownDescription": "Extra environment variables that will be passed to the rust-analyzer executable. Useful for passing e.g. `RA_LOG` for debugging."
338 "rust-analyzer.trace.server": {
346 "enumDescriptions": [
352 "description": "Trace requests to the rust-analyzer (this is usually overly verbose and not recommended for regular users)."
354 "rust-analyzer.trace.extension": {
355 "description": "Enable logging of VS Code extensions itself.",
359 "rust-analyzer.debug.engine": {
363 "vadimcn.vscode-lldb",
367 "description": "Preferred debug engine.",
368 "markdownEnumDescriptions": [
369 "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).",
370 "Use [CodeLLDB](https://marketplace.visualstudio.com/items?itemName=vadimcn.vscode-lldb)",
371 "Use [MS C++ tools](https://marketplace.visualstudio.com/items?itemName=ms-vscode.cpptools)"
374 "rust-analyzer.debug.sourceFileMap": {
380 "description": "Optional source file mappings passed to the debug engine.",
382 "/rustc/<id>": "${env:USERPROFILE}/.rustup/toolchains/<toolchain-id>/lib/rustlib/src/rust"
385 "rust-analyzer.debug.openDebugPane": {
386 "markdownDescription": "Whether to open up the `Debug Panel` on debugging start.",
390 "rust-analyzer.debug.engineSettings": {
393 "markdownDescription": "Optional settings passed to the debug engine. Example: `{ \"lldb\": { \"terminal\":\"external\"} }`"
395 "$generated-start": {},
396 "rust-analyzer.assist.importGranularity": {
397 "markdownDescription": "How imports should be grouped into use statements.",
406 "enumDescriptions": [
407 "Do not change the granularity of any imports and preserve the original structure written by the developer.",
408 "Merge imports from the same crate into a single use statement. Conversely, imports from different crates are split into separate statements.",
409 "Merge imports from the same module into a single use statement. Conversely, imports from different modules are split into separate statements.",
410 "Flatten imports so that each has its own use statement."
413 "rust-analyzer.assist.importEnforceGranularity": {
414 "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.",
418 "rust-analyzer.assist.importPrefix": {
419 "markdownDescription": "The path structure for newly inserted paths to use.",
427 "enumDescriptions": [
428 "Insert import paths relative to the current module, using up to one `super` prefix if the parent module contains the requested item.",
429 "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.",
430 "Force import paths to be absolute by always starting them with `crate` or the extern crate name they come from."
433 "rust-analyzer.assist.importGroup": {
434 "markdownDescription": "Group inserted imports by the [following order](https://rust-analyzer.github.io/manual.html#auto-import). Groups are separated by newlines.",
438 "rust-analyzer.assist.allowMergingIntoGlobImports": {
439 "markdownDescription": "Whether to allow import insertion to merge new imports into single path glob imports like `use std::fmt::*;`.",
443 "rust-analyzer.cache.warmup": {
444 "markdownDescription": "Warm up caches on project load.",
448 "rust-analyzer.callInfo.full": {
449 "markdownDescription": "Show function name and docs in parameter hints.",
453 "rust-analyzer.cargo.autoreload": {
454 "markdownDescription": "Automatically refresh project info via `cargo metadata` on\n`Cargo.toml` changes.",
458 "rust-analyzer.cargo.allFeatures": {
459 "markdownDescription": "Activate all available features (`--all-features`).",
463 "rust-analyzer.cargo.unsetTest": {
464 "markdownDescription": "Unsets `#[cfg(test)]` for the specified crates.",
473 "rust-analyzer.cargo.features": {
474 "markdownDescription": "List of features to activate.",
481 "rust-analyzer.cargo.runBuildScripts": {
482 "markdownDescription": "Run build scripts (`build.rs`) for more precise code analysis.",
486 "rust-analyzer.cargo.useRustcWrapperForBuildScripts": {
487 "markdownDescription": "Use `RUSTC_WRAPPER=rust-analyzer` when running build scripts to\navoid compiling unnecessary things.",
491 "rust-analyzer.cargo.noDefaultFeatures": {
492 "markdownDescription": "Do not activate the `default` feature.",
496 "rust-analyzer.cargo.target": {
497 "markdownDescription": "Compilation target (target triple).",
504 "rust-analyzer.cargo.noSysroot": {
505 "markdownDescription": "Internal config for debugging, disables loading of sysroot crates.",
509 "rust-analyzer.checkOnSave.enable": {
510 "markdownDescription": "Run specified `cargo check` command for diagnostics on save.",
514 "rust-analyzer.checkOnSave.allFeatures": {
515 "markdownDescription": "Check with all features (`--all-features`).\nDefaults to `#rust-analyzer.cargo.allFeatures#`.",
522 "rust-analyzer.checkOnSave.allTargets": {
523 "markdownDescription": "Check all targets and tests (`--all-targets`).",
527 "rust-analyzer.checkOnSave.command": {
528 "markdownDescription": "Cargo command to use for `cargo check`.",
532 "rust-analyzer.checkOnSave.noDefaultFeatures": {
533 "markdownDescription": "Do not activate the `default` feature.",
540 "rust-analyzer.checkOnSave.target": {
541 "markdownDescription": "Check for a specific target. Defaults to\n`#rust-analyzer.cargo.target#`.",
548 "rust-analyzer.checkOnSave.extraArgs": {
549 "markdownDescription": "Extra arguments for `cargo check`.",
556 "rust-analyzer.checkOnSave.features": {
557 "markdownDescription": "List of features to activate. Defaults to\n`#rust-analyzer.cargo.features#`.",
567 "rust-analyzer.checkOnSave.overrideCommand": {
568 "markdownDescription": "Advanced option, fully override the command rust-analyzer uses for\nchecking. The command should include `--message-format=json` or\nsimilar option.",
578 "rust-analyzer.completion.addCallArgumentSnippets": {
579 "markdownDescription": "Whether to add argument snippets when completing functions.\nOnly applies when `#rust-analyzer.completion.addCallParenthesis#` is set.",
583 "rust-analyzer.completion.addCallParenthesis": {
584 "markdownDescription": "Whether to add parenthesis when completing functions.",
588 "rust-analyzer.completion.snippets": {
589 "markdownDescription": "Custom completion snippets.",
593 "rust-analyzer.completion.postfix.enable": {
594 "markdownDescription": "Whether to show postfix snippets like `dbg`, `if`, `not`, etc.",
598 "rust-analyzer.completion.autoimport.enable": {
599 "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.",
603 "rust-analyzer.completion.autoself.enable": {
604 "markdownDescription": "Toggles the additional completions that automatically show method calls and field accesses\nwith `self` prefixed to them when inside a method.",
608 "rust-analyzer.diagnostics.enable": {
609 "markdownDescription": "Whether to show native rust-analyzer diagnostics.",
613 "rust-analyzer.diagnostics.enableExperimental": {
614 "markdownDescription": "Whether to show experimental rust-analyzer diagnostics that might\nhave more false positives than usual.",
618 "rust-analyzer.diagnostics.disabled": {
619 "markdownDescription": "List of rust-analyzer diagnostics to disable.",
627 "rust-analyzer.diagnostics.remapPrefix": {
628 "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`.",
632 "rust-analyzer.diagnostics.warningsAsHint": {
633 "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`.",
640 "rust-analyzer.diagnostics.warningsAsInfo": {
641 "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`.",
648 "rust-analyzer.experimental.procAttrMacros": {
649 "markdownDescription": "Expand attribute macros.",
653 "rust-analyzer.files.watcher": {
654 "markdownDescription": "Controls file watching implementation.",
658 "rust-analyzer.files.excludeDirs": {
659 "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`.",
666 "rust-analyzer.highlightRelated.references": {
667 "markdownDescription": "Enables highlighting of related references while hovering your mouse above any identifier.",
671 "rust-analyzer.highlightRelated.exitPoints": {
672 "markdownDescription": "Enables highlighting of all exit points while hovering your mouse above any `return`, `?`, or return type arrow (`->`).",
676 "rust-analyzer.highlightRelated.breakPoints": {
677 "markdownDescription": "Enables highlighting of related references while hovering your mouse `break`, `loop`, `while`, or `for` keywords.",
681 "rust-analyzer.highlightRelated.yieldPoints": {
682 "markdownDescription": "Enables highlighting of all break points for a loop or block context while hovering your mouse above any `async` or `await` keywords.",
686 "rust-analyzer.highlighting.strings": {
687 "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.",
691 "rust-analyzer.hover.documentation": {
692 "markdownDescription": "Whether to show documentation on hover.",
696 "rust-analyzer.hover.linksInHover": {
697 "markdownDescription": "Use markdown syntax for links in hover.",
701 "rust-analyzer.hoverActions.debug": {
702 "markdownDescription": "Whether to show `Debug` action. Only applies when\n`#rust-analyzer.hoverActions.enable#` is set.",
706 "rust-analyzer.hoverActions.enable": {
707 "markdownDescription": "Whether to show HoverActions in Rust files.",
711 "rust-analyzer.hoverActions.gotoTypeDef": {
712 "markdownDescription": "Whether to show `Go to Type Definition` action. Only applies when\n`#rust-analyzer.hoverActions.enable#` is set.",
716 "rust-analyzer.hoverActions.implementations": {
717 "markdownDescription": "Whether to show `Implementations` action. Only applies when\n`#rust-analyzer.hoverActions.enable#` is set.",
721 "rust-analyzer.hoverActions.references": {
722 "markdownDescription": "Whether to show `References` action. Only applies when\n`#rust-analyzer.hoverActions.enable#` is set.",
726 "rust-analyzer.hoverActions.run": {
727 "markdownDescription": "Whether to show `Run` action. Only applies when\n`#rust-analyzer.hoverActions.enable#` is set.",
731 "rust-analyzer.inlayHints.chainingHints": {
732 "markdownDescription": "Whether to show inlay type hints for method chains.",
736 "rust-analyzer.inlayHints.maxLength": {
737 "markdownDescription": "Maximum length for inlay hints. Set to null to have an unlimited length.",
745 "rust-analyzer.inlayHints.parameterHints": {
746 "markdownDescription": "Whether to show function parameter name inlay hints at the call\nsite.",
750 "rust-analyzer.inlayHints.typeHints": {
751 "markdownDescription": "Whether to show inlay type hints for variables.",
755 "rust-analyzer.inlayHints.hideNamedConstructorHints": {
756 "markdownDescription": "Whether to hide inlay hints for constructors.",
760 "rust-analyzer.joinLines.joinElseIf": {
761 "markdownDescription": "Join lines inserts else between consecutive ifs.",
765 "rust-analyzer.joinLines.removeTrailingComma": {
766 "markdownDescription": "Join lines removes trailing commas.",
770 "rust-analyzer.joinLines.unwrapTrivialBlock": {
771 "markdownDescription": "Join lines unwraps trivial blocks.",
775 "rust-analyzer.joinLines.joinAssignments": {
776 "markdownDescription": "Join lines merges consecutive declaration and initialization of an assignment.",
780 "rust-analyzer.lens.debug": {
781 "markdownDescription": "Whether to show `Debug` lens. Only applies when\n`#rust-analyzer.lens.enable#` is set.",
785 "rust-analyzer.lens.enable": {
786 "markdownDescription": "Whether to show CodeLens in Rust files.",
790 "rust-analyzer.lens.implementations": {
791 "markdownDescription": "Whether to show `Implementations` lens. Only applies when\n`#rust-analyzer.lens.enable#` is set.",
795 "rust-analyzer.lens.run": {
796 "markdownDescription": "Whether to show `Run` lens. Only applies when\n`#rust-analyzer.lens.enable#` is set.",
800 "rust-analyzer.lens.methodReferences": {
801 "markdownDescription": "Whether to show `Method References` lens. Only applies when\n`#rust-analyzer.lens.enable#` is set.",
805 "rust-analyzer.lens.references": {
806 "markdownDescription": "Whether to show `References` lens for Struct, Enum, Union and Trait.\nOnly applies when `#rust-analyzer.lens.enable#` is set.",
810 "rust-analyzer.lens.enumVariantReferences": {
811 "markdownDescription": "Whether to show `References` lens for Enum Variants.\nOnly applies when `#rust-analyzer.lens.enable#` is set.",
815 "rust-analyzer.lens.forceCustomCommands": {
816 "markdownDescription": "Internal config: use custom client-side commands even when the\nclient doesn't set the corresponding capability.",
820 "rust-analyzer.linkedProjects": {
821 "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.",
831 "rust-analyzer.lruCapacity": {
832 "markdownDescription": "Number of syntax trees rust-analyzer keeps in memory. Defaults to 128.",
840 "rust-analyzer.notifications.cargoTomlNotFound": {
841 "markdownDescription": "Whether to show `can't find Cargo.toml` error message.",
845 "rust-analyzer.procMacro.enable": {
846 "markdownDescription": "Enable support for procedural macros, implies `#rust-analyzer.cargo.runBuildScripts#`.",
850 "rust-analyzer.procMacro.server": {
851 "markdownDescription": "Internal config, path to proc-macro server executable (typically,\nthis is rust-analyzer itself, but we override this in tests).",
858 "rust-analyzer.runnables.overrideCargo": {
859 "markdownDescription": "Command to be executed instead of 'cargo' for runnables.",
866 "rust-analyzer.runnables.cargoExtraArgs": {
867 "markdownDescription": "Additional arguments to be passed to cargo for runnables such as\ntests or binaries. For example, it may be `--release`.",
874 "rust-analyzer.rustcSource": {
875 "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.",
882 "rust-analyzer.rustfmt.extraArgs": {
883 "markdownDescription": "Additional arguments to `rustfmt`.",
890 "rust-analyzer.rustfmt.overrideCommand": {
891 "markdownDescription": "Advanced option, fully override the command rust-analyzer uses for\nformatting.",
901 "rust-analyzer.rustfmt.enableRangeFormatting": {
902 "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.",
906 "rust-analyzer.workspace.symbol.search.scope": {
907 "markdownDescription": "Workspace symbol search scope.",
908 "default": "workspace",
912 "workspace_and_dependencies"
914 "enumDescriptions": [
915 "Search in current workspace only",
916 "Search in current workspace and dependencies"
919 "rust-analyzer.workspace.symbol.search.kind": {
920 "markdownDescription": "Workspace symbol search kind.",
921 "default": "only_types",
927 "enumDescriptions": [
928 "Search for types only",
929 "Search for all symbols kinds"
940 "regexp": "^(warning|warn|error)(?:\\[(.*?)\\])?: (.*)$",
946 "regexp": "^[\\s->=]*(.*?):(\\d*):(\\d*)\\s*$",
954 "name": "rustc-json",
957 "regexp": "^.*\"message\":{\"message\":\"([^\"]*).*?\"file_name\":\"([^\"]+).*?\"line_start\":(\\d+).*?\"line_end\":(\\d+).*?\"column_start\":(\\d+).*?\"column_end\":(\\d+).*}$",
970 "id": "ra_syntax_tree",
984 "configuration": "language-configuration.json"
989 "language": "ra_syntax_tree",
990 "scopeName": "source.ra_syntax_tree",
991 "path": "ra_syntax_tree.tmGrammar.json"
1006 "name": "rustc-json",
1013 "pattern": "$rustc-json"
1016 "name": "rustc-watch",
1024 "beginsPattern": "^\\[Running\\b",
1025 "endsPattern": "^\\[Finished running\\b"
1032 "id": "rust_analyzer.inlayHints.foreground",
1033 "description": "Foreground color of inlay hints (is overriden by more specific rust_analyzer.inlayHints.foreground.* configurations)",
1035 "dark": "#A0A0A0F0",
1037 "highContrast": "#BEBEBE"
1041 "id": "rust_analyzer.inlayHints.background",
1042 "description": "Background color of inlay hints (is overriden by more specific rust_analyzer.inlayHints.background.* configurations)",
1044 "dark": "#11223300",
1045 "light": "#11223300",
1046 "highContrast": "#11223300"
1050 "id": "rust_analyzer.inlayHints.foreground.typeHints",
1051 "description": "Foreground color of inlay type hints for variables (overrides rust_analyzer.inlayHints.foreground)",
1053 "dark": "rust_analyzer.inlayHints.foreground",
1054 "light": "rust_analyzer.inlayHints.foreground",
1055 "highContrast": "rust_analyzer.inlayHints.foreground"
1059 "id": "rust_analyzer.inlayHints.foreground.chainingHints",
1060 "description": "Foreground color of inlay type hints for method chains (overrides rust_analyzer.inlayHints.foreground)",
1062 "dark": "rust_analyzer.inlayHints.foreground",
1063 "light": "rust_analyzer.inlayHints.foreground",
1064 "highContrast": "rust_analyzer.inlayHints.foreground"
1068 "id": "rust_analyzer.inlayHints.foreground.parameterHints",
1069 "description": "Foreground color of function parameter name inlay hints at the call site (overrides rust_analyzer.inlayHints.foreground)",
1071 "dark": "rust_analyzer.inlayHints.foreground",
1072 "light": "rust_analyzer.inlayHints.foreground",
1073 "highContrast": "rust_analyzer.inlayHints.foreground"
1077 "id": "rust_analyzer.inlayHints.background.typeHints",
1078 "description": "Background color of inlay type hints for variables (overrides rust_analyzer.inlayHints.background)",
1080 "dark": "rust_analyzer.inlayHints.background",
1081 "light": "rust_analyzer.inlayHints.background",
1082 "highContrast": "rust_analyzer.inlayHints.background"
1086 "id": "rust_analyzer.inlayHints.background.chainingHints",
1087 "description": "Background color of inlay type hints for method chains (overrides rust_analyzer.inlayHints.background)",
1089 "dark": "rust_analyzer.inlayHints.background",
1090 "light": "rust_analyzer.inlayHints.background",
1091 "highContrast": "rust_analyzer.inlayHints.background"
1095 "id": "rust_analyzer.inlayHints.background.parameterHints",
1096 "description": "Background color of function parameter name inlay hints at the call site (overrides rust_analyzer.inlayHints.background)",
1098 "dark": "rust_analyzer.inlayHints.background",
1099 "light": "rust_analyzer.inlayHints.background",
1100 "highContrast": "rust_analyzer.inlayHints.background"
1104 "id": "rust_analyzer.syntaxTreeBorder",
1105 "description": "Color of the border displayed in the Rust source code for the selected syntax node (see \"Show Syntax Tree\" command)",
1109 "highContrast": "#b700ff"
1113 "semanticTokenTypes": [
1116 "description": "Style for < or >",
1117 "superType": "punctuation"
1121 "description": "Style for arithmetic operators",
1122 "superType": "operator"
1126 "description": "Style for attributes"
1129 "id": "attributeBracket",
1130 "description": "Style for attribute invocation brackets, that is the `#[` and `]` tokens",
1131 "superType": "punctuation"
1135 "description": "Style for bitwise operators",
1136 "superType": "operator"
1140 "description": "Style for boolean literals",
1141 "superType": "keyword"
1145 "description": "Style for { or }",
1146 "superType": "punctuation"
1150 "description": "Style for [ or ]",
1151 "superType": "punctuation"
1154 "id": "builtinAttribute",
1155 "description": "Style for builtin attributes",
1156 "superType": "attribute"
1159 "id": "builtinType",
1160 "description": "Style for builtin types",
1165 "description": "Style for character literals",
1170 "description": "Style for :",
1171 "superType": "punctuation"
1175 "description": "Style for ,",
1176 "superType": "punctuation"
1180 "description": "Style for comparison operators",
1181 "superType": "operator"
1184 "id": "constParameter",
1185 "description": "Style for const generics"
1189 "description": "Style for derives",
1190 "superType": "attribute"
1194 "description": "Style for .",
1195 "superType": "punctuation"
1198 "id": "escapeSequence",
1199 "description": "Style for char escapes in strings"
1202 "id": "formatSpecifier",
1203 "description": "Style for {} placeholders in format strings"
1207 "description": "Style for labels"
1211 "description": "Style for lifetimes"
1215 "description": "Style for logic operators",
1216 "superType": "operator"
1220 "description": "Style for operators",
1221 "superType": "punctuation"
1224 "id": "parenthesis",
1225 "description": "Style for ( or )",
1226 "superType": "punctuation"
1229 "id": "punctuation",
1230 "description": "Style for generic punctuation"
1233 "id": "selfKeyword",
1234 "description": "Style for the self keyword",
1235 "superType": "keyword"
1239 "description": "Style for ;",
1240 "superType": "punctuation"
1244 "description": "Style for type aliases",
1249 "description": "Style for C-style untagged unions",
1253 "id": "unresolvedReference",
1254 "description": "Style for names which can not be resolved due to compilation errors"
1257 "semanticTokenModifiers": [
1260 "description": "Style for async functions and the `async` and `await` keywords"
1264 "description": "Style for elements within attributes"
1268 "description": "Style for locals whose types implements one of the `Fn*` traits"
1272 "description": "Style for compile-time constants"
1276 "description": "Style for locals that are being consumed when use in a function call"
1279 "id": "controlFlow",
1280 "description": "Style for control-flow related tokens, this includes the `?` operator"
1284 "description": "Style for names resolving to a crate root"
1288 "description": "Style for doc-string injected highlighting like rust source blocks in documentation"
1291 "id": "intraDocLink",
1292 "description": "Style for intra doc links in doc-strings"
1296 "description": "Style for items that are defined outside of the current crate"
1300 "description": "Style for mutable locals and statics as well as functions taking `&mut self`"
1304 "description": "Style tems that are from the current crate and are `pub`"
1308 "description": "Style for locals behind a reference and functions taking `self` by reference"
1312 "description": "Style for associated trait items"
1316 "description": "Style for unsafe operations, like unsafe function calls, as well as the `unsafe` token"
1319 "semanticTokenScopes": [
1324 "meta.attribute.rust"
1327 "constant.language.boolean.rust"
1330 "support.type.primitive.rust"
1333 "constant.other.caps.rust"
1336 "entity.name.type.enum.rust"
1338 "formatSpecifier": [
1339 "punctuation.section.embedded.rust"
1342 "entity.name.function.rust"
1345 "entity.name.type.trait.rust"
1348 "keyword.other.rust"
1350 "keyword.controlFlow": [
1351 "keyword.control.rust"
1354 "storage.modifier.lifetime.rust"
1357 "entity.name.function.rust"
1360 "entity.name.type.struct.rust"
1363 "entity.name.type.declaration.rust"
1366 "entity.name.type.union.rust"
1369 "variable.other.rust"
1371 "variable.constant": [
1372 "variable.other.constant.rust"
1383 "command": "rust-analyzer.syntaxTree",
1384 "when": "inRustProject"
1387 "command": "rust-analyzer.viewHir",
1388 "when": "inRustProject"
1391 "command": "rust-analyzer.expandMacro",
1392 "when": "inRustProject"
1395 "command": "rust-analyzer.matchingBrace",
1396 "when": "inRustProject"
1399 "command": "rust-analyzer.parentModule",
1400 "when": "inRustProject"
1403 "command": "rust-analyzer.joinLines",
1404 "when": "inRustProject"
1407 "command": "rust-analyzer.run",
1408 "when": "inRustProject"
1411 "command": "rust-analyzer.debug",
1412 "when": "inRustProject"
1415 "command": "rust-analyzer.newDebugConfig",
1416 "when": "inRustProject"
1419 "command": "rust-analyzer.analyzerStatus",
1420 "when": "inRustProject"
1423 "command": "rust-analyzer.memoryUsage",
1424 "when": "inRustProject"
1427 "command": "rust-analyzer.reloadWorkspace",
1428 "when": "inRustProject"
1431 "command": "rust-analyzer.reload",
1432 "when": "inRustProject"
1435 "command": "rust-analyzer.updateGithubToken",
1436 "when": "inRustProject"
1439 "command": "rust-analyzer.onEnter",
1440 "when": "inRustProject"
1443 "command": "rust-analyzer.ssr",
1444 "when": "inRustProject"
1447 "command": "rust-analyzer.serverVersion",
1448 "when": "inRustProject"
1451 "command": "rust-analyzer.toggleInlayHints",
1452 "when": "inRustProject"
1455 "command": "rust-analyzer.openDocs",
1456 "when": "inRustProject"
1459 "command": "rust-analyzer.openCargoToml",
1460 "when": "inRustProject"
1465 "command": "rust-analyzer.peekTests",
1466 "when": "inRustProject",
1467 "group": "navigation@1000"