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.63.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.shuffleCrateGraph",
176 "title": "Shuffle Crate Graph",
177 "category": "Rust Analyzer"
180 "command": "rust-analyzer.reloadWorkspace",
181 "title": "Reload workspace",
182 "category": "Rust Analyzer"
185 "command": "rust-analyzer.reload",
186 "title": "Restart server",
187 "category": "Rust Analyzer"
190 "command": "rust-analyzer.updateGithubToken",
191 "title": "Update Github API token",
192 "category": "Rust Analyzer"
195 "command": "rust-analyzer.onEnter",
196 "title": "Enhanced enter key",
197 "category": "Rust Analyzer"
200 "command": "rust-analyzer.ssr",
201 "title": "Structural Search Replace",
202 "category": "Rust Analyzer"
205 "command": "rust-analyzer.serverVersion",
206 "title": "Show RA Version",
207 "category": "Rust Analyzer"
210 "command": "rust-analyzer.toggleInlayHints",
211 "title": "Toggle inlay hints",
212 "category": "Rust Analyzer"
215 "command": "rust-analyzer.openDocs",
216 "title": "Open docs under cursor",
217 "category": "Rust Analyzer"
220 "command": "rust-analyzer.openCargoToml",
221 "title": "Open Cargo.toml",
222 "category": "Rust Analyzer"
225 "command": "rust-analyzer.peekTests",
226 "title": "Peek related tests",
227 "category": "Rust Analyzer"
230 "command": "rust-analyzer.moveItemUp",
231 "title": "Move item up",
232 "category": "Rust Analyzer"
235 "command": "rust-analyzer.moveItemDown",
236 "title": "Move item down",
237 "category": "Rust Analyzer"
242 "command": "rust-analyzer.parentModule",
243 "key": "ctrl+shift+u",
244 "when": "editorTextFocus && editorLangId == rust"
247 "command": "rust-analyzer.matchingBrace",
248 "key": "ctrl+shift+m",
249 "when": "editorTextFocus && editorLangId == rust"
252 "command": "rust-analyzer.joinLines",
253 "key": "ctrl+shift+j",
254 "when": "editorTextFocus && editorLangId == rust"
259 "title": "Rust Analyzer",
261 "rust-analyzer.cargoRunner": {
267 "description": "Custom cargo runner extension ID."
269 "rust-analyzer.runnableEnv": {
281 "description": "Runnable name mask"
285 "description": "Variables in form of { \"key\": \"value\"}"
292 "description": "Variables in form of { \"key\": \"value\"}"
296 "markdownDescription": "Environment variables passed to the runnable launched using `Test` or `Debug` lens or `rust-analyzer.run` command."
298 "rust-analyzer.inlayHints.enable": {
301 "description": "Whether to show inlay hints."
303 "rust-analyzer.inlayHints.smallerHints": {
306 "description": "Whether inlay hints font size should be smaller than editor's font size."
308 "rust-analyzer.updates.channel": {
315 "markdownEnumDescriptions": [
316 "`stable` updates are shipped weekly, they don't contain cutting-edge features from VSCode proposed APIs but have less bugs in general.",
317 "`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**."
319 "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."
321 "rust-analyzer.updates.askBeforeDownload": {
324 "description": "Whether to ask for permission before downloading any files from the Internet."
326 "rust-analyzer.server.path": {
331 "scope": "machine-overridable",
333 "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"
335 "rust-analyzer.server.extraEnv": {
341 "markdownDescription": "Extra environment variables that will be passed to the rust-analyzer executable. Useful for passing e.g. `RA_LOG` for debugging."
343 "rust-analyzer.trace.server": {
351 "enumDescriptions": [
357 "description": "Trace requests to the rust-analyzer (this is usually overly verbose and not recommended for regular users)."
359 "rust-analyzer.trace.extension": {
360 "description": "Enable logging of VS Code extensions itself.",
364 "rust-analyzer.debug.engine": {
368 "vadimcn.vscode-lldb",
372 "description": "Preferred debug engine.",
373 "markdownEnumDescriptions": [
374 "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).",
375 "Use [CodeLLDB](https://marketplace.visualstudio.com/items?itemName=vadimcn.vscode-lldb)",
376 "Use [MS C++ tools](https://marketplace.visualstudio.com/items?itemName=ms-vscode.cpptools)"
379 "rust-analyzer.debug.sourceFileMap": {
385 "description": "Optional source file mappings passed to the debug engine.",
387 "/rustc/<id>": "${env:USERPROFILE}/.rustup/toolchains/<toolchain-id>/lib/rustlib/src/rust"
390 "rust-analyzer.debug.openDebugPane": {
391 "markdownDescription": "Whether to open up the `Debug Panel` on debugging start.",
395 "rust-analyzer.debug.engineSettings": {
398 "markdownDescription": "Optional settings passed to the debug engine. Example: `{ \"lldb\": { \"terminal\":\"external\"} }`"
400 "$generated-start": {},
401 "rust-analyzer.assist.importGranularity": {
402 "markdownDescription": "How imports should be grouped into use statements.",
411 "enumDescriptions": [
412 "Do not change the granularity of any imports and preserve the original structure written by the developer.",
413 "Merge imports from the same crate into a single use statement. Conversely, imports from different crates are split into separate statements.",
414 "Merge imports from the same module into a single use statement. Conversely, imports from different modules are split into separate statements.",
415 "Flatten imports so that each has its own use statement."
418 "rust-analyzer.assist.importEnforceGranularity": {
419 "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.",
423 "rust-analyzer.assist.importPrefix": {
424 "markdownDescription": "The path structure for newly inserted paths to use.",
432 "enumDescriptions": [
433 "Insert import paths relative to the current module, using up to one `super` prefix if the parent module contains the requested item.",
434 "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.",
435 "Force import paths to be absolute by always starting them with `crate` or the extern crate name they come from."
438 "rust-analyzer.assist.importGroup": {
439 "markdownDescription": "Group inserted imports by the [following order](https://rust-analyzer.github.io/manual.html#auto-import). Groups are separated by newlines.",
443 "rust-analyzer.assist.allowMergingIntoGlobImports": {
444 "markdownDescription": "Whether to allow import insertion to merge new imports into single path glob imports like `use std::fmt::*;`.",
448 "rust-analyzer.cache.warmup": {
449 "markdownDescription": "Warm up caches on project load.",
453 "rust-analyzer.callInfo.full": {
454 "markdownDescription": "Show function name and docs in parameter hints.",
458 "rust-analyzer.cargo.autoreload": {
459 "markdownDescription": "Automatically refresh project info via `cargo metadata` on\n`Cargo.toml` changes.",
463 "rust-analyzer.cargo.allFeatures": {
464 "markdownDescription": "Activate all available features (`--all-features`).",
468 "rust-analyzer.cargo.unsetTest": {
469 "markdownDescription": "Unsets `#[cfg(test)]` for the specified crates.",
478 "rust-analyzer.cargo.features": {
479 "markdownDescription": "List of features to activate.",
486 "rust-analyzer.cargo.runBuildScripts": {
487 "markdownDescription": "Run build scripts (`build.rs`) for more precise code analysis.",
491 "rust-analyzer.cargo.useRustcWrapperForBuildScripts": {
492 "markdownDescription": "Use `RUSTC_WRAPPER=rust-analyzer` when running build scripts to\navoid compiling unnecessary things.",
496 "rust-analyzer.cargo.noDefaultFeatures": {
497 "markdownDescription": "Do not activate the `default` feature.",
501 "rust-analyzer.cargo.target": {
502 "markdownDescription": "Compilation target (target triple).",
509 "rust-analyzer.cargo.noSysroot": {
510 "markdownDescription": "Internal config for debugging, disables loading of sysroot crates.",
514 "rust-analyzer.checkOnSave.enable": {
515 "markdownDescription": "Run specified `cargo check` command for diagnostics on save.",
519 "rust-analyzer.checkOnSave.allFeatures": {
520 "markdownDescription": "Check with all features (`--all-features`).\nDefaults to `#rust-analyzer.cargo.allFeatures#`.",
527 "rust-analyzer.checkOnSave.allTargets": {
528 "markdownDescription": "Check all targets and tests (`--all-targets`).",
532 "rust-analyzer.checkOnSave.command": {
533 "markdownDescription": "Cargo command to use for `cargo check`.",
537 "rust-analyzer.checkOnSave.noDefaultFeatures": {
538 "markdownDescription": "Do not activate the `default` feature.",
545 "rust-analyzer.checkOnSave.target": {
546 "markdownDescription": "Check for a specific target. Defaults to\n`#rust-analyzer.cargo.target#`.",
553 "rust-analyzer.checkOnSave.extraArgs": {
554 "markdownDescription": "Extra arguments for `cargo check`.",
561 "rust-analyzer.checkOnSave.features": {
562 "markdownDescription": "List of features to activate. Defaults to\n`#rust-analyzer.cargo.features#`.",
572 "rust-analyzer.checkOnSave.overrideCommand": {
573 "markdownDescription": "Advanced option, fully override the command rust-analyzer uses for\nchecking. The command should include `--message-format=json` or\nsimilar option.",
583 "rust-analyzer.completion.addCallArgumentSnippets": {
584 "markdownDescription": "Whether to add argument snippets when completing functions.\nOnly applies when `#rust-analyzer.completion.addCallParenthesis#` is set.",
588 "rust-analyzer.completion.addCallParenthesis": {
589 "markdownDescription": "Whether to add parenthesis when completing functions.",
593 "rust-analyzer.completion.snippets": {
594 "markdownDescription": "Custom completion snippets.",
598 "body": "Arc::new(${receiver})",
599 "requires": "std::sync::Arc",
600 "description": "Put the expression into an `Arc`",
605 "body": "Rc::new(${receiver})",
606 "requires": "std::rc::Rc",
607 "description": "Put the expression into an `Rc`",
612 "body": "Box::pin(${receiver})",
613 "requires": "std::boxed::Box",
614 "description": "Put the expression into a pinned `Box`",
619 "body": "Ok(${receiver})",
620 "description": "Wrap the expression in a `Result::Ok`",
625 "body": "Err(${receiver})",
626 "description": "Wrap the expression in a `Result::Err`",
631 "body": "Some(${receiver})",
632 "description": "Wrap the expression in an `Option::Some`",
638 "rust-analyzer.completion.postfix.enable": {
639 "markdownDescription": "Whether to show postfix snippets like `dbg`, `if`, `not`, etc.",
643 "rust-analyzer.completion.autoimport.enable": {
644 "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.",
648 "rust-analyzer.completion.autoself.enable": {
649 "markdownDescription": "Toggles the additional completions that automatically show method calls and field accesses\nwith `self` prefixed to them when inside a method.",
653 "rust-analyzer.diagnostics.enable": {
654 "markdownDescription": "Whether to show native rust-analyzer diagnostics.",
658 "rust-analyzer.diagnostics.enableExperimental": {
659 "markdownDescription": "Whether to show experimental rust-analyzer diagnostics that might\nhave more false positives than usual.",
663 "rust-analyzer.diagnostics.disabled": {
664 "markdownDescription": "List of rust-analyzer diagnostics to disable.",
672 "rust-analyzer.diagnostics.remapPrefix": {
673 "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`.",
677 "rust-analyzer.diagnostics.warningsAsHint": {
678 "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`.",
685 "rust-analyzer.diagnostics.warningsAsInfo": {
686 "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`.",
693 "rust-analyzer.experimental.procAttrMacros": {
694 "markdownDescription": "Expand attribute macros.",
698 "rust-analyzer.files.watcher": {
699 "markdownDescription": "Controls file watching implementation.",
703 "rust-analyzer.files.excludeDirs": {
704 "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`.",
711 "rust-analyzer.highlightRelated.references": {
712 "markdownDescription": "Enables highlighting of related references while hovering your mouse above any identifier.",
716 "rust-analyzer.highlightRelated.exitPoints": {
717 "markdownDescription": "Enables highlighting of all exit points while hovering your mouse above any `return`, `?`, or return type arrow (`->`).",
721 "rust-analyzer.highlightRelated.breakPoints": {
722 "markdownDescription": "Enables highlighting of related references while hovering your mouse `break`, `loop`, `while`, or `for` keywords.",
726 "rust-analyzer.highlightRelated.yieldPoints": {
727 "markdownDescription": "Enables highlighting of all break points for a loop or block context while hovering your mouse above any `async` or `await` keywords.",
731 "rust-analyzer.highlighting.strings": {
732 "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.",
736 "rust-analyzer.hover.documentation": {
737 "markdownDescription": "Whether to show documentation on hover.",
741 "rust-analyzer.hover.linksInHover": {
742 "markdownDescription": "Use markdown syntax for links in hover.",
746 "rust-analyzer.hoverActions.debug": {
747 "markdownDescription": "Whether to show `Debug` action. Only applies when\n`#rust-analyzer.hoverActions.enable#` is set.",
751 "rust-analyzer.hoverActions.enable": {
752 "markdownDescription": "Whether to show HoverActions in Rust files.",
756 "rust-analyzer.hoverActions.gotoTypeDef": {
757 "markdownDescription": "Whether to show `Go to Type Definition` action. Only applies when\n`#rust-analyzer.hoverActions.enable#` is set.",
761 "rust-analyzer.hoverActions.implementations": {
762 "markdownDescription": "Whether to show `Implementations` action. Only applies when\n`#rust-analyzer.hoverActions.enable#` is set.",
766 "rust-analyzer.hoverActions.references": {
767 "markdownDescription": "Whether to show `References` action. Only applies when\n`#rust-analyzer.hoverActions.enable#` is set.",
771 "rust-analyzer.hoverActions.run": {
772 "markdownDescription": "Whether to show `Run` action. Only applies when\n`#rust-analyzer.hoverActions.enable#` is set.",
776 "rust-analyzer.inlayHints.chainingHints": {
777 "markdownDescription": "Whether to show inlay type hints for method chains.",
781 "rust-analyzer.inlayHints.maxLength": {
782 "markdownDescription": "Maximum length for inlay hints. Set to null to have an unlimited length.",
790 "rust-analyzer.inlayHints.parameterHints": {
791 "markdownDescription": "Whether to show function parameter name inlay hints at the call\nsite.",
795 "rust-analyzer.inlayHints.typeHints": {
796 "markdownDescription": "Whether to show inlay type hints for variables.",
800 "rust-analyzer.inlayHints.hideNamedConstructorHints": {
801 "markdownDescription": "Whether to hide inlay hints for constructors.",
805 "rust-analyzer.joinLines.joinElseIf": {
806 "markdownDescription": "Join lines inserts else between consecutive ifs.",
810 "rust-analyzer.joinLines.removeTrailingComma": {
811 "markdownDescription": "Join lines removes trailing commas.",
815 "rust-analyzer.joinLines.unwrapTrivialBlock": {
816 "markdownDescription": "Join lines unwraps trivial blocks.",
820 "rust-analyzer.joinLines.joinAssignments": {
821 "markdownDescription": "Join lines merges consecutive declaration and initialization of an assignment.",
825 "rust-analyzer.lens.debug": {
826 "markdownDescription": "Whether to show `Debug` lens. Only applies when\n`#rust-analyzer.lens.enable#` is set.",
830 "rust-analyzer.lens.enable": {
831 "markdownDescription": "Whether to show CodeLens in Rust files.",
835 "rust-analyzer.lens.implementations": {
836 "markdownDescription": "Whether to show `Implementations` lens. Only applies when\n`#rust-analyzer.lens.enable#` is set.",
840 "rust-analyzer.lens.run": {
841 "markdownDescription": "Whether to show `Run` lens. Only applies when\n`#rust-analyzer.lens.enable#` is set.",
845 "rust-analyzer.lens.methodReferences": {
846 "markdownDescription": "Whether to show `Method References` lens. Only applies when\n`#rust-analyzer.lens.enable#` is set.",
850 "rust-analyzer.lens.references": {
851 "markdownDescription": "Whether to show `References` lens for Struct, Enum, Union and Trait.\nOnly applies when `#rust-analyzer.lens.enable#` is set.",
855 "rust-analyzer.lens.enumVariantReferences": {
856 "markdownDescription": "Whether to show `References` lens for Enum Variants.\nOnly applies when `#rust-analyzer.lens.enable#` is set.",
860 "rust-analyzer.lens.forceCustomCommands": {
861 "markdownDescription": "Internal config: use custom client-side commands even when the\nclient doesn't set the corresponding capability.",
865 "rust-analyzer.linkedProjects": {
866 "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.",
876 "rust-analyzer.lruCapacity": {
877 "markdownDescription": "Number of syntax trees rust-analyzer keeps in memory. Defaults to 128.",
885 "rust-analyzer.notifications.cargoTomlNotFound": {
886 "markdownDescription": "Whether to show `can't find Cargo.toml` error message.",
890 "rust-analyzer.procMacro.enable": {
891 "markdownDescription": "Enable support for procedural macros, implies `#rust-analyzer.cargo.runBuildScripts#`.",
895 "rust-analyzer.procMacro.server": {
896 "markdownDescription": "Internal config, path to proc-macro server executable (typically,\nthis is rust-analyzer itself, but we override this in tests).",
903 "rust-analyzer.runnables.overrideCargo": {
904 "markdownDescription": "Command to be executed instead of 'cargo' for runnables.",
911 "rust-analyzer.runnables.cargoExtraArgs": {
912 "markdownDescription": "Additional arguments to be passed to cargo for runnables such as\ntests or binaries. For example, it may be `--release`.",
919 "rust-analyzer.rustcSource": {
920 "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.",
927 "rust-analyzer.rustfmt.extraArgs": {
928 "markdownDescription": "Additional arguments to `rustfmt`.",
935 "rust-analyzer.rustfmt.overrideCommand": {
936 "markdownDescription": "Advanced option, fully override the command rust-analyzer uses for\nformatting.",
946 "rust-analyzer.rustfmt.enableRangeFormatting": {
947 "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.",
951 "rust-analyzer.workspace.symbol.search.scope": {
952 "markdownDescription": "Workspace symbol search scope.",
953 "default": "workspace",
957 "workspace_and_dependencies"
959 "enumDescriptions": [
960 "Search in current workspace only",
961 "Search in current workspace and dependencies"
964 "rust-analyzer.workspace.symbol.search.kind": {
965 "markdownDescription": "Workspace symbol search kind.",
966 "default": "only_types",
972 "enumDescriptions": [
973 "Search for types only",
974 "Search for all symbols kinds"
985 "regexp": "^(warning|warn|error)(?:\\[(.*?)\\])?: (.*)$",
991 "regexp": "^[\\s->=]*(.*?):(\\d*):(\\d*)\\s*$",
999 "name": "rustc-json",
1002 "regexp": "^.*\"message\":{\"message\":\"([^\"]*).*?\"file_name\":\"([^\"]+).*?\"line_start\":(\\d+).*?\"line_end\":(\\d+).*?\"column_start\":(\\d+).*?\"column_end\":(\\d+).*}$",
1015 "id": "ra_syntax_tree",
1029 "configuration": "language-configuration.json"
1034 "language": "ra_syntax_tree",
1035 "scopeName": "source.ra_syntax_tree",
1036 "path": "ra_syntax_tree.tmGrammar.json"
1039 "problemMatchers": [
1051 "name": "rustc-json",
1058 "pattern": "$rustc-json"
1061 "name": "rustc-watch",
1069 "beginsPattern": "^\\[Running\\b",
1070 "endsPattern": "^\\[Finished running\\b"
1077 "id": "rust_analyzer.inlayHints.foreground",
1078 "description": "Foreground color of inlay hints (is overriden by more specific rust_analyzer.inlayHints.foreground.* configurations)",
1080 "dark": "#A0A0A0F0",
1082 "highContrast": "#BEBEBE"
1086 "id": "rust_analyzer.inlayHints.background",
1087 "description": "Background color of inlay hints (is overriden by more specific rust_analyzer.inlayHints.background.* configurations)",
1089 "dark": "#11223300",
1090 "light": "#11223300",
1091 "highContrast": "#11223300"
1095 "id": "rust_analyzer.inlayHints.foreground.typeHints",
1096 "description": "Foreground color of inlay type hints for variables (overrides rust_analyzer.inlayHints.foreground)",
1098 "dark": "rust_analyzer.inlayHints.foreground",
1099 "light": "rust_analyzer.inlayHints.foreground",
1100 "highContrast": "rust_analyzer.inlayHints.foreground"
1104 "id": "rust_analyzer.inlayHints.foreground.chainingHints",
1105 "description": "Foreground color of inlay type hints for method chains (overrides rust_analyzer.inlayHints.foreground)",
1107 "dark": "rust_analyzer.inlayHints.foreground",
1108 "light": "rust_analyzer.inlayHints.foreground",
1109 "highContrast": "rust_analyzer.inlayHints.foreground"
1113 "id": "rust_analyzer.inlayHints.foreground.parameterHints",
1114 "description": "Foreground color of function parameter name inlay hints at the call site (overrides rust_analyzer.inlayHints.foreground)",
1116 "dark": "rust_analyzer.inlayHints.foreground",
1117 "light": "rust_analyzer.inlayHints.foreground",
1118 "highContrast": "rust_analyzer.inlayHints.foreground"
1122 "id": "rust_analyzer.inlayHints.background.typeHints",
1123 "description": "Background color of inlay type hints for variables (overrides rust_analyzer.inlayHints.background)",
1125 "dark": "rust_analyzer.inlayHints.background",
1126 "light": "rust_analyzer.inlayHints.background",
1127 "highContrast": "rust_analyzer.inlayHints.background"
1131 "id": "rust_analyzer.inlayHints.background.chainingHints",
1132 "description": "Background color of inlay type hints for method chains (overrides rust_analyzer.inlayHints.background)",
1134 "dark": "rust_analyzer.inlayHints.background",
1135 "light": "rust_analyzer.inlayHints.background",
1136 "highContrast": "rust_analyzer.inlayHints.background"
1140 "id": "rust_analyzer.inlayHints.background.parameterHints",
1141 "description": "Background color of function parameter name inlay hints at the call site (overrides rust_analyzer.inlayHints.background)",
1143 "dark": "rust_analyzer.inlayHints.background",
1144 "light": "rust_analyzer.inlayHints.background",
1145 "highContrast": "rust_analyzer.inlayHints.background"
1149 "id": "rust_analyzer.syntaxTreeBorder",
1150 "description": "Color of the border displayed in the Rust source code for the selected syntax node (see \"Show Syntax Tree\" command)",
1154 "highContrast": "#b700ff"
1158 "semanticTokenTypes": [
1161 "description": "Style for < or >",
1162 "superType": "punctuation"
1166 "description": "Style for arithmetic operators",
1167 "superType": "operator"
1171 "description": "Style for attributes"
1174 "id": "attributeBracket",
1175 "description": "Style for attribute invocation brackets, that is the `#[` and `]` tokens",
1176 "superType": "punctuation"
1180 "description": "Style for bitwise operators",
1181 "superType": "operator"
1185 "description": "Style for boolean literals",
1186 "superType": "keyword"
1190 "description": "Style for { or }",
1191 "superType": "punctuation"
1195 "description": "Style for [ or ]",
1196 "superType": "punctuation"
1199 "id": "builtinAttribute",
1200 "description": "Style for builtin attributes",
1201 "superType": "attribute"
1204 "id": "builtinType",
1205 "description": "Style for builtin types",
1210 "description": "Style for character literals",
1215 "description": "Style for :",
1216 "superType": "punctuation"
1220 "description": "Style for ,",
1221 "superType": "punctuation"
1225 "description": "Style for comparison operators",
1226 "superType": "operator"
1229 "id": "constParameter",
1230 "description": "Style for const generics"
1234 "description": "Style for derives",
1235 "superType": "attribute"
1239 "description": "Style for .",
1240 "superType": "punctuation"
1243 "id": "escapeSequence",
1244 "description": "Style for char escapes in strings"
1247 "id": "formatSpecifier",
1248 "description": "Style for {} placeholders in format strings"
1252 "description": "Style for labels"
1256 "description": "Style for lifetimes"
1260 "description": "Style for logic operators",
1261 "superType": "operator"
1265 "description": "Style for operators",
1266 "superType": "punctuation"
1269 "id": "parenthesis",
1270 "description": "Style for ( or )",
1271 "superType": "punctuation"
1274 "id": "punctuation",
1275 "description": "Style for generic punctuation"
1278 "id": "selfKeyword",
1279 "description": "Style for the self keyword",
1280 "superType": "keyword"
1284 "description": "Style for ;",
1285 "superType": "punctuation"
1289 "description": "Style for type aliases",
1294 "description": "Style for C-style untagged unions",
1298 "id": "unresolvedReference",
1299 "description": "Style for names which can not be resolved due to compilation errors"
1302 "semanticTokenModifiers": [
1305 "description": "Style for async functions and the `async` and `await` keywords"
1309 "description": "Style for elements within attributes"
1313 "description": "Style for locals whose types implements one of the `Fn*` traits"
1317 "description": "Style for compile-time constants"
1321 "description": "Style for locals that are being consumed when use in a function call"
1324 "id": "controlFlow",
1325 "description": "Style for control-flow related tokens, this includes the `?` operator"
1329 "description": "Style for names resolving to a crate root"
1333 "description": "Style for doc-string injected highlighting like rust source blocks in documentation"
1336 "id": "intraDocLink",
1337 "description": "Style for intra doc links in doc-strings"
1341 "description": "Style for items that are defined outside of the current crate"
1345 "description": "Style for mutable locals and statics as well as functions taking `&mut self`"
1349 "description": "Style tems that are from the current crate and are `pub`"
1353 "description": "Style for locals behind a reference and functions taking `self` by reference"
1357 "description": "Style for associated trait items"
1361 "description": "Style for unsafe operations, like unsafe function calls, as well as the `unsafe` token"
1364 "semanticTokenScopes": [
1369 "meta.attribute.rust"
1372 "constant.language.boolean.rust"
1375 "support.type.primitive.rust"
1378 "constant.other.caps.rust"
1381 "entity.name.type.enum.rust"
1383 "formatSpecifier": [
1384 "punctuation.section.embedded.rust"
1387 "entity.name.function.rust"
1390 "entity.name.type.trait.rust"
1393 "keyword.other.rust"
1395 "keyword.controlFlow": [
1396 "keyword.control.rust"
1399 "storage.modifier.lifetime.rust"
1402 "entity.name.function.rust"
1405 "entity.name.type.struct.rust"
1408 "entity.name.type.declaration.rust"
1411 "entity.name.type.union.rust"
1414 "variable.other.rust"
1416 "variable.constant": [
1417 "variable.other.constant.rust"
1428 "command": "rust-analyzer.syntaxTree",
1429 "when": "inRustProject"
1432 "command": "rust-analyzer.viewHir",
1433 "when": "inRustProject"
1436 "command": "rust-analyzer.expandMacro",
1437 "when": "inRustProject"
1440 "command": "rust-analyzer.matchingBrace",
1441 "when": "inRustProject"
1444 "command": "rust-analyzer.parentModule",
1445 "when": "inRustProject"
1448 "command": "rust-analyzer.joinLines",
1449 "when": "inRustProject"
1452 "command": "rust-analyzer.run",
1453 "when": "inRustProject"
1456 "command": "rust-analyzer.debug",
1457 "when": "inRustProject"
1460 "command": "rust-analyzer.newDebugConfig",
1461 "when": "inRustProject"
1464 "command": "rust-analyzer.analyzerStatus",
1465 "when": "inRustProject"
1468 "command": "rust-analyzer.memoryUsage",
1469 "when": "inRustProject"
1472 "command": "rust-analyzer.reloadWorkspace",
1473 "when": "inRustProject"
1476 "command": "rust-analyzer.reload",
1477 "when": "inRustProject"
1480 "command": "rust-analyzer.updateGithubToken",
1481 "when": "inRustProject"
1484 "command": "rust-analyzer.onEnter",
1485 "when": "inRustProject"
1488 "command": "rust-analyzer.ssr",
1489 "when": "inRustProject"
1492 "command": "rust-analyzer.serverVersion",
1493 "when": "inRustProject"
1496 "command": "rust-analyzer.toggleInlayHints",
1497 "when": "inRustProject"
1500 "command": "rust-analyzer.openDocs",
1501 "when": "inRustProject"
1504 "command": "rust-analyzer.openCargoToml",
1505 "when": "inRustProject"
1510 "command": "rust-analyzer.peekTests",
1511 "when": "inRustProject",
1512 "group": "navigation@1000"