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.updates.channel": {
313 "markdownEnumDescriptions": [
314 "`stable` updates are shipped weekly, they don't contain cutting-edge features from VSCode proposed APIs but have less bugs in general.",
315 "`nightly` updates are shipped daily (extension updates automatically by downloading artifacts directly from GitHub), they contain cutting-edge features and latest bug fixes. These releases help us get your feedback very quickly and speed up rust-analyzer development **drastically**."
317 "markdownDescription": "Choose `nightly` updates to get the latest features and bug fixes every day. While `stable` releases occur weekly and don't contain cutting-edge features from VSCode proposed APIs."
319 "rust-analyzer.updates.askBeforeDownload": {
322 "description": "Whether to ask for permission before downloading any files from the Internet."
324 "rust-analyzer.server.path": {
329 "scope": "machine-overridable",
331 "markdownDescription": "Path to rust-analyzer executable (points to bundled binary by default). If this is set, then `#rust-analyzer.updates.channel#` setting is not used"
333 "rust-analyzer.server.extraEnv": {
339 "markdownDescription": "Extra environment variables that will be passed to the rust-analyzer executable. Useful for passing e.g. `RA_LOG` for debugging."
341 "rust-analyzer.trace.server": {
349 "enumDescriptions": [
355 "description": "Trace requests to the rust-analyzer (this is usually overly verbose and not recommended for regular users)."
357 "rust-analyzer.trace.extension": {
358 "description": "Enable logging of VS Code extensions itself.",
362 "rust-analyzer.debug.engine": {
366 "vadimcn.vscode-lldb",
370 "description": "Preferred debug engine.",
371 "markdownEnumDescriptions": [
372 "First try to use [CodeLLDB](https://marketplace.visualstudio.com/items?itemName=vadimcn.vscode-lldb), if it's not installed try to use [MS C++ tools](https://marketplace.visualstudio.com/items?itemName=ms-vscode.cpptools).",
373 "Use [CodeLLDB](https://marketplace.visualstudio.com/items?itemName=vadimcn.vscode-lldb)",
374 "Use [MS C++ tools](https://marketplace.visualstudio.com/items?itemName=ms-vscode.cpptools)"
377 "rust-analyzer.debug.sourceFileMap": {
383 "description": "Optional source file mappings passed to the debug engine.",
385 "/rustc/<id>": "${env:USERPROFILE}/.rustup/toolchains/<toolchain-id>/lib/rustlib/src/rust"
388 "rust-analyzer.debug.openDebugPane": {
389 "markdownDescription": "Whether to open up the `Debug Panel` on debugging start.",
393 "rust-analyzer.debug.engineSettings": {
396 "markdownDescription": "Optional settings passed to the debug engine. Example: `{ \"lldb\": { \"terminal\":\"external\"} }`"
398 "$generated-start": {},
399 "rust-analyzer.assist.importGranularity": {
400 "markdownDescription": "How imports should be grouped into use statements.",
409 "enumDescriptions": [
410 "Do not change the granularity of any imports and preserve the original structure written by the developer.",
411 "Merge imports from the same crate into a single use statement. Conversely, imports from different crates are split into separate statements.",
412 "Merge imports from the same module into a single use statement. Conversely, imports from different modules are split into separate statements.",
413 "Flatten imports so that each has its own use statement."
416 "rust-analyzer.assist.importEnforceGranularity": {
417 "markdownDescription": "Whether to enforce the import granularity setting for all files. If set to false rust-analyzer will try to keep import styles consistent per file.",
421 "rust-analyzer.assist.importPrefix": {
422 "markdownDescription": "The path structure for newly inserted paths to use.",
430 "enumDescriptions": [
431 "Insert import paths relative to the current module, using up to one `super` prefix if the parent module contains the requested item.",
432 "Insert import paths relative to the current module, using up to one `super` prefix if the parent module contains the requested item. Prefixes `self` in front of the path if it starts with a module.",
433 "Force import paths to be absolute by always starting them with `crate` or the extern crate name they come from."
436 "rust-analyzer.assist.importGroup": {
437 "markdownDescription": "Group inserted imports by the [following order](https://rust-analyzer.github.io/manual.html#auto-import). Groups are separated by newlines.",
441 "rust-analyzer.assist.allowMergingIntoGlobImports": {
442 "markdownDescription": "Whether to allow import insertion to merge new imports into single path glob imports like `use std::fmt::*;`.",
446 "rust-analyzer.cache.warmup": {
447 "markdownDescription": "Warm up caches on project load.",
451 "rust-analyzer.callInfo.full": {
452 "markdownDescription": "Show function name and docs in parameter hints.",
456 "rust-analyzer.cargo.autoreload": {
457 "markdownDescription": "Automatically refresh project info via `cargo metadata` on\n`Cargo.toml` changes.",
461 "rust-analyzer.cargo.allFeatures": {
462 "markdownDescription": "Activate all available features (`--all-features`).",
466 "rust-analyzer.cargo.unsetTest": {
467 "markdownDescription": "Unsets `#[cfg(test)]` for the specified crates.",
476 "rust-analyzer.cargo.features": {
477 "markdownDescription": "List of features to activate.",
484 "rust-analyzer.cargo.runBuildScripts": {
485 "markdownDescription": "Run build scripts (`build.rs`) for more precise code analysis.",
489 "rust-analyzer.cargo.useRustcWrapperForBuildScripts": {
490 "markdownDescription": "Use `RUSTC_WRAPPER=rust-analyzer` when running build scripts to\navoid compiling unnecessary things.",
494 "rust-analyzer.cargo.noDefaultFeatures": {
495 "markdownDescription": "Do not activate the `default` feature.",
499 "rust-analyzer.cargo.target": {
500 "markdownDescription": "Compilation target (target triple).",
507 "rust-analyzer.cargo.noSysroot": {
508 "markdownDescription": "Internal config for debugging, disables loading of sysroot crates.",
512 "rust-analyzer.checkOnSave.enable": {
513 "markdownDescription": "Run specified `cargo check` command for diagnostics on save.",
517 "rust-analyzer.checkOnSave.allFeatures": {
518 "markdownDescription": "Check with all features (`--all-features`).\nDefaults to `#rust-analyzer.cargo.allFeatures#`.",
525 "rust-analyzer.checkOnSave.allTargets": {
526 "markdownDescription": "Check all targets and tests (`--all-targets`).",
530 "rust-analyzer.checkOnSave.command": {
531 "markdownDescription": "Cargo command to use for `cargo check`.",
535 "rust-analyzer.checkOnSave.noDefaultFeatures": {
536 "markdownDescription": "Do not activate the `default` feature.",
543 "rust-analyzer.checkOnSave.target": {
544 "markdownDescription": "Check for a specific target. Defaults to\n`#rust-analyzer.cargo.target#`.",
551 "rust-analyzer.checkOnSave.extraArgs": {
552 "markdownDescription": "Extra arguments for `cargo check`.",
559 "rust-analyzer.checkOnSave.features": {
560 "markdownDescription": "List of features to activate. Defaults to\n`#rust-analyzer.cargo.features#`.",
570 "rust-analyzer.checkOnSave.overrideCommand": {
571 "markdownDescription": "Advanced option, fully override the command rust-analyzer uses for\nchecking. The command should include `--message-format=json` or\nsimilar option.",
581 "rust-analyzer.completion.addCallArgumentSnippets": {
582 "markdownDescription": "Whether to add argument snippets when completing functions.\nOnly applies when `#rust-analyzer.completion.addCallParenthesis#` is set.",
586 "rust-analyzer.completion.addCallParenthesis": {
587 "markdownDescription": "Whether to add parenthesis when completing functions.",
591 "rust-analyzer.completion.snippets": {
592 "markdownDescription": "Custom completion snippets.",
596 "body": "Arc::new(${receiver})",
597 "requires": "std::sync::Arc",
598 "description": "Put the expression into an `Arc`",
603 "body": "Rc::new(${receiver})",
604 "requires": "std::rc::Rc",
605 "description": "Put the expression into an `Rc`",
610 "body": "Box::pin(${receiver})",
611 "requires": "std::boxed::Box",
612 "description": "Put the expression into a pinned `Box`",
617 "body": "Ok(${receiver})",
618 "description": "Wrap the expression in a `Result::Ok`",
623 "body": "Err(${receiver})",
624 "description": "Wrap the expression in a `Result::Err`",
629 "body": "Some(${receiver})",
630 "description": "Wrap the expression in an `Option::Some`",
636 "rust-analyzer.completion.postfix.enable": {
637 "markdownDescription": "Whether to show postfix snippets like `dbg`, `if`, `not`, etc.",
641 "rust-analyzer.completion.autoimport.enable": {
642 "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.",
646 "rust-analyzer.completion.autoself.enable": {
647 "markdownDescription": "Toggles the additional completions that automatically show method calls and field accesses\nwith `self` prefixed to them when inside a method.",
651 "rust-analyzer.diagnostics.enable": {
652 "markdownDescription": "Whether to show native rust-analyzer diagnostics.",
656 "rust-analyzer.diagnostics.enableExperimental": {
657 "markdownDescription": "Whether to show experimental rust-analyzer diagnostics that might\nhave more false positives than usual.",
661 "rust-analyzer.diagnostics.disabled": {
662 "markdownDescription": "List of rust-analyzer diagnostics to disable.",
670 "rust-analyzer.diagnostics.remapPrefix": {
671 "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`.",
675 "rust-analyzer.diagnostics.warningsAsHint": {
676 "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`.",
683 "rust-analyzer.diagnostics.warningsAsInfo": {
684 "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`.",
691 "rust-analyzer.experimental.procAttrMacros": {
692 "markdownDescription": "Expand attribute macros.",
696 "rust-analyzer.files.watcher": {
697 "markdownDescription": "Controls file watching implementation.",
701 "rust-analyzer.files.excludeDirs": {
702 "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`.",
709 "rust-analyzer.highlightRelated.references": {
710 "markdownDescription": "Enables highlighting of related references while hovering your mouse above any identifier.",
714 "rust-analyzer.highlightRelated.exitPoints": {
715 "markdownDescription": "Enables highlighting of all exit points while hovering your mouse above any `return`, `?`, or return type arrow (`->`).",
719 "rust-analyzer.highlightRelated.breakPoints": {
720 "markdownDescription": "Enables highlighting of related references while hovering your mouse `break`, `loop`, `while`, or `for` keywords.",
724 "rust-analyzer.highlightRelated.yieldPoints": {
725 "markdownDescription": "Enables highlighting of all break points for a loop or block context while hovering your mouse above any `async` or `await` keywords.",
729 "rust-analyzer.highlighting.strings": {
730 "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.",
734 "rust-analyzer.hover.documentation": {
735 "markdownDescription": "Whether to show documentation on hover.",
739 "rust-analyzer.hover.linksInHover": {
740 "markdownDescription": "Use markdown syntax for links in hover.",
744 "rust-analyzer.hoverActions.debug": {
745 "markdownDescription": "Whether to show `Debug` action. Only applies when\n`#rust-analyzer.hoverActions.enable#` is set.",
749 "rust-analyzer.hoverActions.enable": {
750 "markdownDescription": "Whether to show HoverActions in Rust files.",
754 "rust-analyzer.hoverActions.gotoTypeDef": {
755 "markdownDescription": "Whether to show `Go to Type Definition` action. Only applies when\n`#rust-analyzer.hoverActions.enable#` is set.",
759 "rust-analyzer.hoverActions.implementations": {
760 "markdownDescription": "Whether to show `Implementations` action. Only applies when\n`#rust-analyzer.hoverActions.enable#` is set.",
764 "rust-analyzer.hoverActions.references": {
765 "markdownDescription": "Whether to show `References` action. Only applies when\n`#rust-analyzer.hoverActions.enable#` is set.",
769 "rust-analyzer.hoverActions.run": {
770 "markdownDescription": "Whether to show `Run` action. Only applies when\n`#rust-analyzer.hoverActions.enable#` is set.",
774 "rust-analyzer.inlayHints.chainingHints": {
775 "markdownDescription": "Whether to show inlay type hints for method chains.",
779 "rust-analyzer.inlayHints.maxLength": {
780 "markdownDescription": "Maximum length for inlay hints. Set to null to have an unlimited length.",
788 "rust-analyzer.inlayHints.parameterHints": {
789 "markdownDescription": "Whether to show function parameter name inlay hints at the call\nsite.",
793 "rust-analyzer.inlayHints.typeHints": {
794 "markdownDescription": "Whether to show inlay type hints for variables.",
798 "rust-analyzer.inlayHints.hideNamedConstructorHints": {
799 "markdownDescription": "Whether to hide inlay hints for constructors.",
803 "rust-analyzer.joinLines.joinElseIf": {
804 "markdownDescription": "Join lines inserts else between consecutive ifs.",
808 "rust-analyzer.joinLines.removeTrailingComma": {
809 "markdownDescription": "Join lines removes trailing commas.",
813 "rust-analyzer.joinLines.unwrapTrivialBlock": {
814 "markdownDescription": "Join lines unwraps trivial blocks.",
818 "rust-analyzer.joinLines.joinAssignments": {
819 "markdownDescription": "Join lines merges consecutive declaration and initialization of an assignment.",
823 "rust-analyzer.lens.debug": {
824 "markdownDescription": "Whether to show `Debug` lens. Only applies when\n`#rust-analyzer.lens.enable#` is set.",
828 "rust-analyzer.lens.enable": {
829 "markdownDescription": "Whether to show CodeLens in Rust files.",
833 "rust-analyzer.lens.implementations": {
834 "markdownDescription": "Whether to show `Implementations` lens. Only applies when\n`#rust-analyzer.lens.enable#` is set.",
838 "rust-analyzer.lens.run": {
839 "markdownDescription": "Whether to show `Run` lens. Only applies when\n`#rust-analyzer.lens.enable#` is set.",
843 "rust-analyzer.lens.methodReferences": {
844 "markdownDescription": "Whether to show `Method References` lens. Only applies when\n`#rust-analyzer.lens.enable#` is set.",
848 "rust-analyzer.lens.references": {
849 "markdownDescription": "Whether to show `References` lens for Struct, Enum, Union and Trait.\nOnly applies when `#rust-analyzer.lens.enable#` is set.",
853 "rust-analyzer.lens.enumVariantReferences": {
854 "markdownDescription": "Whether to show `References` lens for Enum Variants.\nOnly applies when `#rust-analyzer.lens.enable#` is set.",
858 "rust-analyzer.lens.forceCustomCommands": {
859 "markdownDescription": "Internal config: use custom client-side commands even when the\nclient doesn't set the corresponding capability.",
863 "rust-analyzer.linkedProjects": {
864 "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.",
874 "rust-analyzer.lruCapacity": {
875 "markdownDescription": "Number of syntax trees rust-analyzer keeps in memory. Defaults to 128.",
883 "rust-analyzer.notifications.cargoTomlNotFound": {
884 "markdownDescription": "Whether to show `can't find Cargo.toml` error message.",
888 "rust-analyzer.procMacro.enable": {
889 "markdownDescription": "Enable support for procedural macros, implies `#rust-analyzer.cargo.runBuildScripts#`.",
893 "rust-analyzer.procMacro.server": {
894 "markdownDescription": "Internal config, path to proc-macro server executable (typically,\nthis is rust-analyzer itself, but we override this in tests).",
901 "rust-analyzer.runnables.overrideCargo": {
902 "markdownDescription": "Command to be executed instead of 'cargo' for runnables.",
909 "rust-analyzer.runnables.cargoExtraArgs": {
910 "markdownDescription": "Additional arguments to be passed to cargo for runnables such as\ntests or binaries. For example, it may be `--release`.",
917 "rust-analyzer.rustcSource": {
918 "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.",
925 "rust-analyzer.rustfmt.extraArgs": {
926 "markdownDescription": "Additional arguments to `rustfmt`.",
933 "rust-analyzer.rustfmt.overrideCommand": {
934 "markdownDescription": "Advanced option, fully override the command rust-analyzer uses for\nformatting.",
944 "rust-analyzer.rustfmt.enableRangeFormatting": {
945 "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.",
949 "rust-analyzer.workspace.symbol.search.scope": {
950 "markdownDescription": "Workspace symbol search scope.",
951 "default": "workspace",
955 "workspace_and_dependencies"
957 "enumDescriptions": [
958 "Search in current workspace only",
959 "Search in current workspace and dependencies"
962 "rust-analyzer.workspace.symbol.search.kind": {
963 "markdownDescription": "Workspace symbol search kind.",
964 "default": "only_types",
970 "enumDescriptions": [
971 "Search for types only",
972 "Search for all symbols kinds"
983 "regexp": "^(warning|warn|error)(?:\\[(.*?)\\])?: (.*)$",
989 "regexp": "^[\\s->=]*(.*?):(\\d*):(\\d*)\\s*$",
997 "name": "rustc-json",
1000 "regexp": "^.*\"message\":{\"message\":\"([^\"]*).*?\"file_name\":\"([^\"]+).*?\"line_start\":(\\d+).*?\"line_end\":(\\d+).*?\"column_start\":(\\d+).*?\"column_end\":(\\d+).*}$",
1013 "id": "ra_syntax_tree",
1027 "configuration": "language-configuration.json"
1032 "language": "ra_syntax_tree",
1033 "scopeName": "source.ra_syntax_tree",
1034 "path": "ra_syntax_tree.tmGrammar.json"
1037 "problemMatchers": [
1049 "name": "rustc-json",
1056 "pattern": "$rustc-json"
1059 "name": "rustc-watch",
1067 "beginsPattern": "^\\[Running\\b",
1068 "endsPattern": "^\\[Finished running\\b"
1075 "id": "rust_analyzer.inlayHints.foreground",
1076 "description": "Foreground color of inlay hints (is overriden by more specific rust_analyzer.inlayHints.foreground.* configurations)",
1078 "dark": "#A0A0A0F0",
1080 "highContrast": "#BEBEBE"
1084 "id": "rust_analyzer.inlayHints.background",
1085 "description": "Background color of inlay hints (is overriden by more specific rust_analyzer.inlayHints.background.* configurations)",
1087 "dark": "#11223300",
1088 "light": "#11223300",
1089 "highContrast": "#11223300"
1093 "id": "rust_analyzer.inlayHints.foreground.typeHints",
1094 "description": "Foreground color of inlay type hints for variables (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.foreground.chainingHints",
1103 "description": "Foreground color of inlay type hints for method chains (overrides rust_analyzer.inlayHints.foreground)",
1105 "dark": "rust_analyzer.inlayHints.foreground",
1106 "light": "rust_analyzer.inlayHints.foreground",
1107 "highContrast": "rust_analyzer.inlayHints.foreground"
1111 "id": "rust_analyzer.inlayHints.foreground.parameterHints",
1112 "description": "Foreground color of function parameter name inlay hints at the call site (overrides rust_analyzer.inlayHints.foreground)",
1114 "dark": "rust_analyzer.inlayHints.foreground",
1115 "light": "rust_analyzer.inlayHints.foreground",
1116 "highContrast": "rust_analyzer.inlayHints.foreground"
1120 "id": "rust_analyzer.inlayHints.background.typeHints",
1121 "description": "Background color of inlay type hints for variables (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.inlayHints.background.chainingHints",
1130 "description": "Background color of inlay type hints for method chains (overrides rust_analyzer.inlayHints.background)",
1132 "dark": "rust_analyzer.inlayHints.background",
1133 "light": "rust_analyzer.inlayHints.background",
1134 "highContrast": "rust_analyzer.inlayHints.background"
1138 "id": "rust_analyzer.inlayHints.background.parameterHints",
1139 "description": "Background color of function parameter name inlay hints at the call site (overrides rust_analyzer.inlayHints.background)",
1141 "dark": "rust_analyzer.inlayHints.background",
1142 "light": "rust_analyzer.inlayHints.background",
1143 "highContrast": "rust_analyzer.inlayHints.background"
1147 "id": "rust_analyzer.syntaxTreeBorder",
1148 "description": "Color of the border displayed in the Rust source code for the selected syntax node (see \"Show Syntax Tree\" command)",
1152 "highContrast": "#b700ff"
1156 "semanticTokenTypes": [
1159 "description": "Style for < or >",
1160 "superType": "punctuation"
1164 "description": "Style for arithmetic operators",
1165 "superType": "operator"
1169 "description": "Style for attributes"
1172 "id": "attributeBracket",
1173 "description": "Style for attribute invocation brackets, that is the `#[` and `]` tokens",
1174 "superType": "punctuation"
1178 "description": "Style for bitwise operators",
1179 "superType": "operator"
1183 "description": "Style for boolean literals",
1184 "superType": "keyword"
1188 "description": "Style for { or }",
1189 "superType": "punctuation"
1193 "description": "Style for [ or ]",
1194 "superType": "punctuation"
1197 "id": "builtinAttribute",
1198 "description": "Style for builtin attributes",
1199 "superType": "attribute"
1202 "id": "builtinType",
1203 "description": "Style for builtin types",
1208 "description": "Style for character literals",
1213 "description": "Style for :",
1214 "superType": "punctuation"
1218 "description": "Style for ,",
1219 "superType": "punctuation"
1223 "description": "Style for comparison operators",
1224 "superType": "operator"
1227 "id": "constParameter",
1228 "description": "Style for const generics"
1232 "description": "Style for derives",
1233 "superType": "attribute"
1237 "description": "Style for .",
1238 "superType": "punctuation"
1241 "id": "escapeSequence",
1242 "description": "Style for char escapes in strings"
1245 "id": "formatSpecifier",
1246 "description": "Style for {} placeholders in format strings"
1250 "description": "Style for labels"
1254 "description": "Style for lifetimes"
1258 "description": "Style for logic operators",
1259 "superType": "operator"
1263 "description": "Style for operators",
1264 "superType": "punctuation"
1267 "id": "parenthesis",
1268 "description": "Style for ( or )",
1269 "superType": "punctuation"
1272 "id": "punctuation",
1273 "description": "Style for generic punctuation"
1276 "id": "selfKeyword",
1277 "description": "Style for the self keyword",
1278 "superType": "keyword"
1282 "description": "Style for ;",
1283 "superType": "punctuation"
1287 "description": "Style for type aliases",
1292 "description": "Style for C-style untagged unions",
1296 "id": "unresolvedReference",
1297 "description": "Style for names which can not be resolved due to compilation errors"
1300 "semanticTokenModifiers": [
1303 "description": "Style for async functions and the `async` and `await` keywords"
1307 "description": "Style for elements within attributes"
1311 "description": "Style for locals whose types implements one of the `Fn*` traits"
1315 "description": "Style for compile-time constants"
1319 "description": "Style for locals that are being consumed when use in a function call"
1322 "id": "controlFlow",
1323 "description": "Style for control-flow related tokens, this includes the `?` operator"
1327 "description": "Style for names resolving to a crate root"
1331 "description": "Style for doc-string injected highlighting like rust source blocks in documentation"
1334 "id": "intraDocLink",
1335 "description": "Style for intra doc links in doc-strings"
1339 "description": "Style for items that are defined outside of the current crate"
1343 "description": "Style for mutable locals and statics as well as functions taking `&mut self`"
1347 "description": "Style tems that are from the current crate and are `pub`"
1351 "description": "Style for locals behind a reference and functions taking `self` by reference"
1355 "description": "Style for associated trait items"
1359 "description": "Style for unsafe operations, like unsafe function calls, as well as the `unsafe` token"
1362 "semanticTokenScopes": [
1367 "meta.attribute.rust"
1370 "constant.language.boolean.rust"
1373 "support.type.primitive.rust"
1376 "constant.other.caps.rust"
1379 "entity.name.type.enum.rust"
1381 "formatSpecifier": [
1382 "punctuation.section.embedded.rust"
1385 "entity.name.function.rust"
1388 "entity.name.type.trait.rust"
1391 "keyword.other.rust"
1393 "keyword.controlFlow": [
1394 "keyword.control.rust"
1397 "storage.modifier.lifetime.rust"
1400 "entity.name.function.rust"
1403 "entity.name.type.struct.rust"
1406 "entity.name.type.declaration.rust"
1409 "entity.name.type.union.rust"
1412 "variable.other.rust"
1414 "variable.constant": [
1415 "variable.other.constant.rust"
1426 "command": "rust-analyzer.syntaxTree",
1427 "when": "inRustProject"
1430 "command": "rust-analyzer.viewHir",
1431 "when": "inRustProject"
1434 "command": "rust-analyzer.expandMacro",
1435 "when": "inRustProject"
1438 "command": "rust-analyzer.matchingBrace",
1439 "when": "inRustProject"
1442 "command": "rust-analyzer.parentModule",
1443 "when": "inRustProject"
1446 "command": "rust-analyzer.joinLines",
1447 "when": "inRustProject"
1450 "command": "rust-analyzer.run",
1451 "when": "inRustProject"
1454 "command": "rust-analyzer.debug",
1455 "when": "inRustProject"
1458 "command": "rust-analyzer.newDebugConfig",
1459 "when": "inRustProject"
1462 "command": "rust-analyzer.analyzerStatus",
1463 "when": "inRustProject"
1466 "command": "rust-analyzer.memoryUsage",
1467 "when": "inRustProject"
1470 "command": "rust-analyzer.reloadWorkspace",
1471 "when": "inRustProject"
1474 "command": "rust-analyzer.reload",
1475 "when": "inRustProject"
1478 "command": "rust-analyzer.updateGithubToken",
1479 "when": "inRustProject"
1482 "command": "rust-analyzer.onEnter",
1483 "when": "inRustProject"
1486 "command": "rust-analyzer.ssr",
1487 "when": "inRustProject"
1490 "command": "rust-analyzer.serverVersion",
1491 "when": "inRustProject"
1494 "command": "rust-analyzer.toggleInlayHints",
1495 "when": "inRustProject"
1498 "command": "rust-analyzer.openDocs",
1499 "when": "inRustProject"
1502 "command": "rust-analyzer.openCargoToml",
1503 "when": "inRustProject"
1508 "command": "rust-analyzer.peekTests",
1509 "when": "inRustProject",
1510 "group": "navigation@1000"