2 "name": "rust-analyzer",
3 "displayName": "rust-analyzer",
4 "description": "An alternative rust language server to the RLS",
8 "version": "0.4.0-dev",
10 "publisher": "matklad",
12 "url": "https://github.com/rust-analyzer/rust-analyzer.git",
15 "homepage": "https://rust-analyzer.github.io/",
16 "license": "MIT OR Apache-2.0",
21 "Programming Languages"
26 "enableProposedApi": true,
28 "vscode:prepublish": "npm run build-base -- --minify",
29 "package": "vsce package -o rust-analyzer.vsix",
30 "build-base": "esbuild ./src/main.ts --bundle --outfile=out/main.js --external:vscode --format=cjs --platform=node --target=node14",
31 "build": "npm run build-base -- --sourcemap",
32 "watch": "npm run build-base -- --sourcemap --watch",
33 "lint": "tsfmt --verify && eslint -c .eslintrc.js --ext ts ./src ./tests",
34 "fix": " tsfmt -r && eslint -c .eslintrc.js --ext ts ./src ./tests --fix",
35 "pretest": "tsc && npm run build",
36 "test": "node ./out/tests/runTests.js"
39 "https-proxy-agent": "^5.0.0",
40 "node-fetch": "^2.6.1",
41 "vscode-languageclient": "8.0.0-next.2",
43 "d3-graphviz": "^4.0.0"
46 "@types/node": "~14.17.5",
47 "@types/node-fetch": "^2.5.11",
48 "@types/vscode": "^1.61.0",
49 "@typescript-eslint/eslint-plugin": "^5.5.0",
50 "@typescript-eslint/parser": "^5.5.0",
51 "@vscode/test-electron": "^1.6.2",
55 "typescript": "^4.5.2",
56 "typescript-formatter": "^7.2.2",
61 "onCommand:rust-analyzer.analyzerStatus",
62 "onCommand:rust-analyzer.memoryUsage",
63 "onCommand:rust-analyzer.reloadWorkspace",
64 "workspaceContains:*/Cargo.toml",
65 "workspaceContains:*/rust-project.json"
90 "patternProperties": {
101 "command": "rust-analyzer.syntaxTree",
102 "title": "Show Syntax Tree",
103 "category": "Rust Analyzer"
106 "command": "rust-analyzer.viewHir",
108 "category": "Rust Analyzer"
111 "command": "rust-analyzer.viewItemTree",
112 "title": "Debug ItemTree",
113 "category": "Rust Analyzer"
116 "command": "rust-analyzer.viewCrateGraph",
117 "title": "View Crate Graph",
118 "category": "Rust Analyzer"
121 "command": "rust-analyzer.viewFullCrateGraph",
122 "title": "View Crate Graph (Full)",
123 "category": "Rust Analyzer"
126 "command": "rust-analyzer.expandMacro",
127 "title": "Expand macro recursively",
128 "category": "Rust Analyzer"
131 "command": "rust-analyzer.matchingBrace",
132 "title": "Find matching brace",
133 "category": "Rust Analyzer"
136 "command": "rust-analyzer.parentModule",
137 "title": "Locate parent module",
138 "category": "Rust Analyzer"
141 "command": "rust-analyzer.joinLines",
142 "title": "Join lines",
143 "category": "Rust Analyzer"
146 "command": "rust-analyzer.run",
148 "category": "Rust Analyzer"
151 "command": "rust-analyzer.copyRunCommandLine",
152 "title": "Copy Run Command Line",
153 "category": "Rust Analyzer"
156 "command": "rust-analyzer.debug",
158 "category": "Rust Analyzer"
161 "command": "rust-analyzer.newDebugConfig",
162 "title": "Generate launch configuration",
163 "category": "Rust Analyzer"
166 "command": "rust-analyzer.analyzerStatus",
168 "category": "Rust Analyzer"
171 "command": "rust-analyzer.memoryUsage",
172 "title": "Memory Usage (Clears Database)",
173 "category": "Rust Analyzer"
176 "command": "rust-analyzer.reloadWorkspace",
177 "title": "Reload workspace",
178 "category": "Rust Analyzer"
181 "command": "rust-analyzer.reload",
182 "title": "Restart server",
183 "category": "Rust Analyzer"
186 "command": "rust-analyzer.updateGithubToken",
187 "title": "Update Github API token",
188 "category": "Rust Analyzer"
191 "command": "rust-analyzer.onEnter",
192 "title": "Enhanced enter key",
193 "category": "Rust Analyzer"
196 "command": "rust-analyzer.ssr",
197 "title": "Structural Search Replace",
198 "category": "Rust Analyzer"
201 "command": "rust-analyzer.serverVersion",
202 "title": "Show RA Version",
203 "category": "Rust Analyzer"
206 "command": "rust-analyzer.toggleInlayHints",
207 "title": "Toggle inlay hints",
208 "category": "Rust Analyzer"
211 "command": "rust-analyzer.openDocs",
212 "title": "Open docs under cursor",
213 "category": "Rust Analyzer"
216 "command": "rust-analyzer.openCargoToml",
217 "title": "Open Cargo.toml",
218 "category": "Rust Analyzer"
221 "command": "rust-analyzer.peekTests",
222 "title": "Peek related tests",
223 "category": "Rust Analyzer"
226 "command": "rust-analyzer.moveItemUp",
227 "title": "Move item up",
228 "category": "Rust Analyzer"
231 "command": "rust-analyzer.moveItemDown",
232 "title": "Move item down",
233 "category": "Rust Analyzer"
238 "command": "rust-analyzer.parentModule",
239 "key": "ctrl+shift+u",
240 "when": "editorTextFocus && editorLangId == rust"
243 "command": "rust-analyzer.matchingBrace",
244 "key": "ctrl+shift+m",
245 "when": "editorTextFocus && editorLangId == rust"
248 "command": "rust-analyzer.joinLines",
249 "key": "ctrl+shift+j",
250 "when": "editorTextFocus && editorLangId == rust"
255 "title": "Rust Analyzer",
257 "rust-analyzer.cargoRunner": {
263 "description": "Custom cargo runner extension ID."
265 "rust-analyzer.runnableEnv": {
277 "description": "Runnable name mask"
281 "description": "Variables in form of { \"key\": \"value\"}"
288 "description": "Variables in form of { \"key\": \"value\"}"
292 "markdownDescription": "Environment variables passed to the runnable launched using `Test` or `Debug` lens or `rust-analyzer.run` command."
294 "rust-analyzer.inlayHints.enable": {
297 "description": "Whether to show inlay hints."
299 "rust-analyzer.inlayHints.smallerHints": {
302 "description": "Whether inlay hints font size should be smaller than editor's font size."
304 "rust-analyzer.updates.channel": {
311 "markdownEnumDescriptions": [
312 "`stable` updates are shipped weekly, they don't contain cutting-edge features from VSCode proposed APIs but have less bugs in general.",
313 "`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**."
315 "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."
317 "rust-analyzer.updates.askBeforeDownload": {
320 "description": "Whether to ask for permission before downloading any files from the Internet."
322 "rust-analyzer.server.path": {
327 "scope": "machine-overridable",
329 "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"
331 "rust-analyzer.server.extraEnv": {
337 "markdownDescription": "Extra environment variables that will be passed to the rust-analyzer executable. Useful for passing e.g. `RA_LOG` for debugging."
339 "rust-analyzer.trace.server": {
347 "enumDescriptions": [
353 "description": "Trace requests to the rust-analyzer (this is usually overly verbose and not recommended for regular users)."
355 "rust-analyzer.trace.extension": {
356 "description": "Enable logging of VS Code extensions itself.",
360 "rust-analyzer.debug.engine": {
364 "vadimcn.vscode-lldb",
368 "description": "Preferred debug engine.",
369 "markdownEnumDescriptions": [
370 "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).",
371 "Use [CodeLLDB](https://marketplace.visualstudio.com/items?itemName=vadimcn.vscode-lldb)",
372 "Use [MS C++ tools](https://marketplace.visualstudio.com/items?itemName=ms-vscode.cpptools)"
375 "rust-analyzer.debug.sourceFileMap": {
381 "description": "Optional source file mappings passed to the debug engine.",
383 "/rustc/<id>": "${env:USERPROFILE}/.rustup/toolchains/<toolchain-id>/lib/rustlib/src/rust"
386 "rust-analyzer.debug.openDebugPane": {
387 "markdownDescription": "Whether to open up the `Debug Panel` on debugging start.",
391 "rust-analyzer.debug.engineSettings": {
394 "markdownDescription": "Optional settings passed to the debug engine. Example: `{ \"lldb\": { \"terminal\":\"external\"} }`"
396 "$generated-start": {},
397 "rust-analyzer.assist.importGranularity": {
398 "markdownDescription": "How imports should be grouped into use statements.",
407 "enumDescriptions": [
408 "Do not change the granularity of any imports and preserve the original structure written by the developer.",
409 "Merge imports from the same crate into a single use statement. Conversely, imports from different crates are split into separate statements.",
410 "Merge imports from the same module into a single use statement. Conversely, imports from different modules are split into separate statements.",
411 "Flatten imports so that each has its own use statement."
414 "rust-analyzer.assist.importEnforceGranularity": {
415 "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.",
419 "rust-analyzer.assist.importPrefix": {
420 "markdownDescription": "The path structure for newly inserted paths to use.",
428 "enumDescriptions": [
429 "Insert import paths relative to the current module, using up to one `super` prefix if the parent module contains the requested item.",
430 "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.",
431 "Force import paths to be absolute by always starting them with `crate` or the extern crate name they come from."
434 "rust-analyzer.assist.importGroup": {
435 "markdownDescription": "Group inserted imports by the [following order](https://rust-analyzer.github.io/manual.html#auto-import). Groups are separated by newlines.",
439 "rust-analyzer.assist.allowMergingIntoGlobImports": {
440 "markdownDescription": "Whether to allow import insertion to merge new imports into single path glob imports like `use std::fmt::*;`.",
444 "rust-analyzer.cache.warmup": {
445 "markdownDescription": "Warm up caches on project load.",
449 "rust-analyzer.callInfo.full": {
450 "markdownDescription": "Show function name and docs in parameter hints.",
454 "rust-analyzer.cargo.autoreload": {
455 "markdownDescription": "Automatically refresh project info via `cargo metadata` on\n`Cargo.toml` changes.",
459 "rust-analyzer.cargo.allFeatures": {
460 "markdownDescription": "Activate all available features (`--all-features`).",
464 "rust-analyzer.cargo.unsetTest": {
465 "markdownDescription": "Unsets `#[cfg(test)]` for the specified crates.",
474 "rust-analyzer.cargo.features": {
475 "markdownDescription": "List of features to activate.",
482 "rust-analyzer.cargo.runBuildScripts": {
483 "markdownDescription": "Run build scripts (`build.rs`) for more precise code analysis.",
487 "rust-analyzer.cargo.useRustcWrapperForBuildScripts": {
488 "markdownDescription": "Use `RUSTC_WRAPPER=rust-analyzer` when running build scripts to\navoid compiling unnecessary things.",
492 "rust-analyzer.cargo.noDefaultFeatures": {
493 "markdownDescription": "Do not activate the `default` feature.",
497 "rust-analyzer.cargo.target": {
498 "markdownDescription": "Compilation target (target triple).",
505 "rust-analyzer.cargo.noSysroot": {
506 "markdownDescription": "Internal config for debugging, disables loading of sysroot crates.",
510 "rust-analyzer.checkOnSave.enable": {
511 "markdownDescription": "Run specified `cargo check` command for diagnostics on save.",
515 "rust-analyzer.checkOnSave.allFeatures": {
516 "markdownDescription": "Check with all features (`--all-features`).\nDefaults to `#rust-analyzer.cargo.allFeatures#`.",
523 "rust-analyzer.checkOnSave.allTargets": {
524 "markdownDescription": "Check all targets and tests (`--all-targets`).",
528 "rust-analyzer.checkOnSave.command": {
529 "markdownDescription": "Cargo command to use for `cargo check`.",
533 "rust-analyzer.checkOnSave.noDefaultFeatures": {
534 "markdownDescription": "Do not activate the `default` feature.",
541 "rust-analyzer.checkOnSave.target": {
542 "markdownDescription": "Check for a specific target. Defaults to\n`#rust-analyzer.cargo.target#`.",
549 "rust-analyzer.checkOnSave.extraArgs": {
550 "markdownDescription": "Extra arguments for `cargo check`.",
557 "rust-analyzer.checkOnSave.features": {
558 "markdownDescription": "List of features to activate. Defaults to\n`#rust-analyzer.cargo.features#`.",
568 "rust-analyzer.checkOnSave.overrideCommand": {
569 "markdownDescription": "Advanced option, fully override the command rust-analyzer uses for\nchecking. The command should include `--message-format=json` or\nsimilar option.",
579 "rust-analyzer.completion.addCallArgumentSnippets": {
580 "markdownDescription": "Whether to add argument snippets when completing functions.\nOnly applies when `#rust-analyzer.completion.addCallParenthesis#` is set.",
584 "rust-analyzer.completion.addCallParenthesis": {
585 "markdownDescription": "Whether to add parenthesis when completing functions.",
589 "rust-analyzer.completion.snippets": {
590 "markdownDescription": "Custom completion snippets.",
594 "rust-analyzer.completion.postfix.enable": {
595 "markdownDescription": "Whether to show postfix snippets like `dbg`, `if`, `not`, etc.",
599 "rust-analyzer.completion.autoimport.enable": {
600 "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.",
604 "rust-analyzer.completion.autoself.enable": {
605 "markdownDescription": "Toggles the additional completions that automatically show method calls and field accesses\nwith `self` prefixed to them when inside a method.",
609 "rust-analyzer.diagnostics.enable": {
610 "markdownDescription": "Whether to show native rust-analyzer diagnostics.",
614 "rust-analyzer.diagnostics.enableExperimental": {
615 "markdownDescription": "Whether to show experimental rust-analyzer diagnostics that might\nhave more false positives than usual.",
619 "rust-analyzer.diagnostics.disabled": {
620 "markdownDescription": "List of rust-analyzer diagnostics to disable.",
628 "rust-analyzer.diagnostics.remapPrefix": {
629 "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`.",
633 "rust-analyzer.diagnostics.warningsAsHint": {
634 "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`.",
641 "rust-analyzer.diagnostics.warningsAsInfo": {
642 "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`.",
649 "rust-analyzer.experimental.procAttrMacros": {
650 "markdownDescription": "Expand attribute macros.",
654 "rust-analyzer.files.watcher": {
655 "markdownDescription": "Controls file watching implementation.",
659 "rust-analyzer.files.excludeDirs": {
660 "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`.",
667 "rust-analyzer.highlightRelated.references": {
668 "markdownDescription": "Enables highlighting of related references while hovering your mouse above any identifier.",
672 "rust-analyzer.highlightRelated.exitPoints": {
673 "markdownDescription": "Enables highlighting of all exit points while hovering your mouse above any `return`, `?`, or return type arrow (`->`).",
677 "rust-analyzer.highlightRelated.breakPoints": {
678 "markdownDescription": "Enables highlighting of related references while hovering your mouse `break`, `loop`, `while`, or `for` keywords.",
682 "rust-analyzer.highlightRelated.yieldPoints": {
683 "markdownDescription": "Enables highlighting of all break points for a loop or block context while hovering your mouse above any `async` or `await` keywords.",
687 "rust-analyzer.highlighting.strings": {
688 "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.",
692 "rust-analyzer.hover.documentation": {
693 "markdownDescription": "Whether to show documentation on hover.",
697 "rust-analyzer.hover.linksInHover": {
698 "markdownDescription": "Use markdown syntax for links in hover.",
702 "rust-analyzer.hoverActions.debug": {
703 "markdownDescription": "Whether to show `Debug` action. Only applies when\n`#rust-analyzer.hoverActions.enable#` is set.",
707 "rust-analyzer.hoverActions.enable": {
708 "markdownDescription": "Whether to show HoverActions in Rust files.",
712 "rust-analyzer.hoverActions.gotoTypeDef": {
713 "markdownDescription": "Whether to show `Go to Type Definition` action. Only applies when\n`#rust-analyzer.hoverActions.enable#` is set.",
717 "rust-analyzer.hoverActions.implementations": {
718 "markdownDescription": "Whether to show `Implementations` action. Only applies when\n`#rust-analyzer.hoverActions.enable#` is set.",
722 "rust-analyzer.hoverActions.references": {
723 "markdownDescription": "Whether to show `References` action. Only applies when\n`#rust-analyzer.hoverActions.enable#` is set.",
727 "rust-analyzer.hoverActions.run": {
728 "markdownDescription": "Whether to show `Run` action. Only applies when\n`#rust-analyzer.hoverActions.enable#` is set.",
732 "rust-analyzer.inlayHints.chainingHints": {
733 "markdownDescription": "Whether to show inlay type hints for method chains.",
737 "rust-analyzer.inlayHints.maxLength": {
738 "markdownDescription": "Maximum length for inlay hints. Set to null to have an unlimited length.",
746 "rust-analyzer.inlayHints.parameterHints": {
747 "markdownDescription": "Whether to show function parameter name inlay hints at the call\nsite.",
751 "rust-analyzer.inlayHints.typeHints": {
752 "markdownDescription": "Whether to show inlay type hints for variables.",
756 "rust-analyzer.inlayHints.hideNamedConstructorHints": {
757 "markdownDescription": "Whether to hide inlay hints for constructors.",
761 "rust-analyzer.joinLines.joinElseIf": {
762 "markdownDescription": "Join lines inserts else between consecutive ifs.",
766 "rust-analyzer.joinLines.removeTrailingComma": {
767 "markdownDescription": "Join lines removes trailing commas.",
771 "rust-analyzer.joinLines.unwrapTrivialBlock": {
772 "markdownDescription": "Join lines unwraps trivial blocks.",
776 "rust-analyzer.joinLines.joinAssignments": {
777 "markdownDescription": "Join lines merges consecutive declaration and initialization of an assignment.",
781 "rust-analyzer.lens.debug": {
782 "markdownDescription": "Whether to show `Debug` lens. Only applies when\n`#rust-analyzer.lens.enable#` is set.",
786 "rust-analyzer.lens.enable": {
787 "markdownDescription": "Whether to show CodeLens in Rust files.",
791 "rust-analyzer.lens.implementations": {
792 "markdownDescription": "Whether to show `Implementations` lens. Only applies when\n`#rust-analyzer.lens.enable#` is set.",
796 "rust-analyzer.lens.run": {
797 "markdownDescription": "Whether to show `Run` lens. Only applies when\n`#rust-analyzer.lens.enable#` is set.",
801 "rust-analyzer.lens.methodReferences": {
802 "markdownDescription": "Whether to show `Method References` lens. Only applies when\n`#rust-analyzer.lens.enable#` is set.",
806 "rust-analyzer.lens.references": {
807 "markdownDescription": "Whether to show `References` lens for Struct, Enum, Union and Trait.\nOnly applies when `#rust-analyzer.lens.enable#` is set.",
811 "rust-analyzer.lens.enumVariantReferences": {
812 "markdownDescription": "Whether to show `References` lens for Enum Variants.\nOnly applies when `#rust-analyzer.lens.enable#` is set.",
816 "rust-analyzer.lens.forceCustomCommands": {
817 "markdownDescription": "Internal config: use custom client-side commands even when the\nclient doesn't set the corresponding capability.",
821 "rust-analyzer.linkedProjects": {
822 "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.",
832 "rust-analyzer.lruCapacity": {
833 "markdownDescription": "Number of syntax trees rust-analyzer keeps in memory. Defaults to 128.",
841 "rust-analyzer.notifications.cargoTomlNotFound": {
842 "markdownDescription": "Whether to show `can't find Cargo.toml` error message.",
846 "rust-analyzer.procMacro.enable": {
847 "markdownDescription": "Enable support for procedural macros, implies `#rust-analyzer.cargo.runBuildScripts#`.",
851 "rust-analyzer.procMacro.server": {
852 "markdownDescription": "Internal config, path to proc-macro server executable (typically,\nthis is rust-analyzer itself, but we override this in tests).",
859 "rust-analyzer.runnables.overrideCargo": {
860 "markdownDescription": "Command to be executed instead of 'cargo' for runnables.",
867 "rust-analyzer.runnables.cargoExtraArgs": {
868 "markdownDescription": "Additional arguments to be passed to cargo for runnables such as\ntests or binaries. For example, it may be `--release`.",
875 "rust-analyzer.rustcSource": {
876 "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.",
883 "rust-analyzer.rustfmt.extraArgs": {
884 "markdownDescription": "Additional arguments to `rustfmt`.",
891 "rust-analyzer.rustfmt.overrideCommand": {
892 "markdownDescription": "Advanced option, fully override the command rust-analyzer uses for\nformatting.",
902 "rust-analyzer.rustfmt.enableRangeFormatting": {
903 "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.",
907 "rust-analyzer.workspace.symbol.search.scope": {
908 "markdownDescription": "Workspace symbol search scope.",
909 "default": "workspace",
913 "workspace_and_dependencies"
915 "enumDescriptions": [
916 "Search in current workspace only",
917 "Search in current workspace and dependencies"
920 "rust-analyzer.workspace.symbol.search.kind": {
921 "markdownDescription": "Workspace symbol search kind.",
922 "default": "only_types",
928 "enumDescriptions": [
929 "Search for types only",
930 "Search for all symbols kinds"
941 "regexp": "^(warning|warn|error)(?:\\[(.*?)\\])?: (.*)$",
947 "regexp": "^[\\s->=]*(.*?):(\\d*):(\\d*)\\s*$",
955 "name": "rustc-json",
958 "regexp": "^.*\"message\":{\"message\":\"([^\"]*).*?\"file_name\":\"([^\"]+).*?\"line_start\":(\\d+).*?\"line_end\":(\\d+).*?\"column_start\":(\\d+).*?\"column_end\":(\\d+).*}$",
971 "id": "ra_syntax_tree",
985 "configuration": "language-configuration.json"
990 "language": "ra_syntax_tree",
991 "scopeName": "source.ra_syntax_tree",
992 "path": "ra_syntax_tree.tmGrammar.json"
1007 "name": "rustc-json",
1014 "pattern": "$rustc-json"
1017 "name": "rustc-watch",
1025 "beginsPattern": "^\\[Running\\b",
1026 "endsPattern": "^\\[Finished running\\b"
1033 "id": "rust_analyzer.inlayHints.foreground",
1034 "description": "Foreground color of inlay hints (is overriden by more specific rust_analyzer.inlayHints.foreground.* configurations)",
1036 "dark": "#A0A0A0F0",
1038 "highContrast": "#BEBEBE"
1042 "id": "rust_analyzer.inlayHints.background",
1043 "description": "Background color of inlay hints (is overriden by more specific rust_analyzer.inlayHints.background.* configurations)",
1045 "dark": "#11223300",
1046 "light": "#11223300",
1047 "highContrast": "#11223300"
1051 "id": "rust_analyzer.inlayHints.foreground.typeHints",
1052 "description": "Foreground color of inlay type hints for variables (overrides rust_analyzer.inlayHints.foreground)",
1054 "dark": "rust_analyzer.inlayHints.foreground",
1055 "light": "rust_analyzer.inlayHints.foreground",
1056 "highContrast": "rust_analyzer.inlayHints.foreground"
1060 "id": "rust_analyzer.inlayHints.foreground.chainingHints",
1061 "description": "Foreground color of inlay type hints for method chains (overrides rust_analyzer.inlayHints.foreground)",
1063 "dark": "rust_analyzer.inlayHints.foreground",
1064 "light": "rust_analyzer.inlayHints.foreground",
1065 "highContrast": "rust_analyzer.inlayHints.foreground"
1069 "id": "rust_analyzer.inlayHints.foreground.parameterHints",
1070 "description": "Foreground color of function parameter name inlay hints at the call site (overrides rust_analyzer.inlayHints.foreground)",
1072 "dark": "rust_analyzer.inlayHints.foreground",
1073 "light": "rust_analyzer.inlayHints.foreground",
1074 "highContrast": "rust_analyzer.inlayHints.foreground"
1078 "id": "rust_analyzer.inlayHints.background.typeHints",
1079 "description": "Background color of inlay type hints for variables (overrides rust_analyzer.inlayHints.background)",
1081 "dark": "rust_analyzer.inlayHints.background",
1082 "light": "rust_analyzer.inlayHints.background",
1083 "highContrast": "rust_analyzer.inlayHints.background"
1087 "id": "rust_analyzer.inlayHints.background.chainingHints",
1088 "description": "Background color of inlay type hints for method chains (overrides rust_analyzer.inlayHints.background)",
1090 "dark": "rust_analyzer.inlayHints.background",
1091 "light": "rust_analyzer.inlayHints.background",
1092 "highContrast": "rust_analyzer.inlayHints.background"
1096 "id": "rust_analyzer.inlayHints.background.parameterHints",
1097 "description": "Background color of function parameter name inlay hints at the call site (overrides rust_analyzer.inlayHints.background)",
1099 "dark": "rust_analyzer.inlayHints.background",
1100 "light": "rust_analyzer.inlayHints.background",
1101 "highContrast": "rust_analyzer.inlayHints.background"
1105 "id": "rust_analyzer.syntaxTreeBorder",
1106 "description": "Color of the border displayed in the Rust source code for the selected syntax node (see \"Show Syntax Tree\" command)",
1110 "highContrast": "#b700ff"
1114 "semanticTokenTypes": [
1117 "description": "Style for < or >",
1118 "superType": "punctuation"
1122 "description": "Style for arithmetic operators",
1123 "superType": "operator"
1127 "description": "Style for attributes"
1131 "description": "Style for bitwise operators",
1132 "superType": "operator"
1136 "description": "Style for boolean literals",
1137 "superType": "keyword"
1141 "description": "Style for { or }",
1142 "superType": "punctuation"
1146 "description": "Style for [ or ]",
1147 "superType": "punctuation"
1150 "id": "builtinAttribute",
1151 "description": "Style for builtin attributes",
1152 "superType": "attribute"
1155 "id": "builtinType",
1156 "description": "Style for builtin types",
1161 "description": "Style for character literals",
1166 "description": "Style for :",
1167 "superType": "punctuation"
1171 "description": "Style for ,",
1172 "superType": "punctuation"
1176 "description": "Style for comparison operators",
1177 "superType": "operator"
1180 "id": "constParameter",
1181 "description": "Style for const generics"
1185 "description": "Style for .",
1186 "superType": "punctuation"
1189 "id": "escapeSequence",
1190 "description": "Style for char escapes in strings"
1193 "id": "formatSpecifier",
1194 "description": "Style for {} placeholders in format strings"
1198 "description": "Style for labels"
1202 "description": "Style for lifetimes"
1206 "description": "Style for logic operators",
1207 "superType": "operator"
1211 "description": "Style for operators",
1212 "superType": "punctuation"
1215 "id": "parenthesis",
1216 "description": "Style for ( or )",
1217 "superType": "punctuation"
1220 "id": "punctuation",
1221 "description": "Style for generic punctuation"
1224 "id": "selfKeyword",
1225 "description": "Style for the self keyword",
1226 "superType": "keyword"
1230 "description": "Style for ;",
1231 "superType": "punctuation"
1235 "description": "Style for type aliases",
1240 "description": "Style for C-style untagged unions",
1244 "id": "unresolvedReference",
1245 "description": "Style for names which can not be resolved due to compilation errors"
1248 "semanticTokenModifiers": [
1251 "description": "Style for async functions and the `async` and `await` keywords"
1255 "description": "Style for elements within attributes"
1259 "description": "Style for locals whose types implements one of the `Fn*` traits"
1263 "description": "Style for compile-time constants"
1267 "description": "Style for locals that are being consumed when use in a function call"
1270 "id": "controlFlow",
1271 "description": "Style for control-flow related tokens, this includes the `?` operator"
1275 "description": "Style for names resolving to a crate root"
1279 "description": "Style for doc-string injected highlighting like rust source blocks in documentation"
1282 "id": "intraDocLink",
1283 "description": "Style for intra doc links in doc-strings"
1287 "description": "Style for items that are defined outside of the current crate"
1291 "description": "Style for mutable locals and statics as well as functions taking `&mut self`"
1295 "description": "Style tems that are from the current crate and are `pub`"
1299 "description": "Style for locals behind a reference and functions taking `self` by reference"
1303 "description": "Style for associated trait items"
1307 "description": "Style for unsafe operations, like unsafe function calls, as well as the `unsafe` token"
1310 "semanticTokenScopes": [
1315 "meta.attribute.rust"
1318 "constant.language.boolean.rust"
1321 "support.type.primitive.rust"
1324 "constant.other.caps.rust"
1327 "entity.name.type.enum.rust"
1329 "formatSpecifier": [
1330 "punctuation.section.embedded.rust"
1333 "entity.name.function.rust"
1336 "entity.name.type.trait.rust"
1339 "keyword.other.rust"
1341 "keyword.controlFlow": [
1342 "keyword.control.rust"
1345 "storage.modifier.lifetime.rust"
1348 "entity.name.function.rust"
1351 "entity.name.type.struct.rust"
1354 "entity.name.type.declaration.rust"
1357 "entity.name.type.union.rust"
1360 "variable.other.rust"
1362 "variable.constant": [
1363 "variable.other.constant.rust"
1374 "command": "rust-analyzer.syntaxTree",
1375 "when": "inRustProject"
1378 "command": "rust-analyzer.viewHir",
1379 "when": "inRustProject"
1382 "command": "rust-analyzer.expandMacro",
1383 "when": "inRustProject"
1386 "command": "rust-analyzer.matchingBrace",
1387 "when": "inRustProject"
1390 "command": "rust-analyzer.parentModule",
1391 "when": "inRustProject"
1394 "command": "rust-analyzer.joinLines",
1395 "when": "inRustProject"
1398 "command": "rust-analyzer.run",
1399 "when": "inRustProject"
1402 "command": "rust-analyzer.debug",
1403 "when": "inRustProject"
1406 "command": "rust-analyzer.newDebugConfig",
1407 "when": "inRustProject"
1410 "command": "rust-analyzer.analyzerStatus",
1411 "when": "inRustProject"
1414 "command": "rust-analyzer.memoryUsage",
1415 "when": "inRustProject"
1418 "command": "rust-analyzer.reloadWorkspace",
1419 "when": "inRustProject"
1422 "command": "rust-analyzer.reload",
1423 "when": "inRustProject"
1426 "command": "rust-analyzer.updateGithubToken",
1427 "when": "inRustProject"
1430 "command": "rust-analyzer.onEnter",
1431 "when": "inRustProject"
1434 "command": "rust-analyzer.ssr",
1435 "when": "inRustProject"
1438 "command": "rust-analyzer.serverVersion",
1439 "when": "inRustProject"
1442 "command": "rust-analyzer.toggleInlayHints",
1443 "when": "inRustProject"
1446 "command": "rust-analyzer.openDocs",
1447 "when": "inRustProject"
1450 "command": "rust-analyzer.openCargoToml",
1451 "when": "inRustProject"
1456 "command": "rust-analyzer.peekTests",
1457 "when": "inRustProject",
1458 "group": "navigation@1000"