]> git.lizzy.rs Git - rust.git/blob - editors/code/package.json
Auto merge of #12037 - lnicola:inlay-hint-config, r=lnicola
[rust.git] / editors / code / package.json
1 {
2     "name": "rust-analyzer",
3     "displayName": "rust-analyzer",
4     "description": "An alternative rust language server to the RLS",
5     "preview": true,
6     "private": true,
7     "icon": "icon.png",
8     "version": "0.4.0-dev",
9     "releaseTag": null,
10     "publisher": "matklad",
11     "repository": {
12         "url": "https://github.com/rust-analyzer/rust-analyzer.git",
13         "type": "git"
14     },
15     "homepage": "https://rust-analyzer.github.io/",
16     "license": "MIT OR Apache-2.0",
17     "keywords": [
18         "rust"
19     ],
20     "categories": [
21         "Programming Languages"
22     ],
23     "engines": {
24         "vscode": "^1.66.0"
25     },
26     "enabledApiProposals": [],
27     "scripts": {
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=node16",
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"
37     },
38     "dependencies": {
39         "vscode-languageclient": "8.0.0-next.14",
40         "d3": "^7.3.0",
41         "d3-graphviz": "^4.1.0"
42     },
43     "devDependencies": {
44         "@types/node": "~14.17.5",
45         "@types/vscode": "~1.66.0",
46         "@typescript-eslint/eslint-plugin": "^5.16.0",
47         "@typescript-eslint/parser": "^5.16.0",
48         "@vscode/test-electron": "^2.1.3",
49         "esbuild": "^0.14.27",
50         "eslint": "^8.11.0",
51         "tslib": "^2.3.0",
52         "typescript": "^4.6.3",
53         "typescript-formatter": "^7.2.2",
54         "vsce": "^2.7.0"
55     },
56     "activationEvents": [
57         "onLanguage:rust",
58         "onCommand:rust-analyzer.analyzerStatus",
59         "onCommand:rust-analyzer.memoryUsage",
60         "onCommand:rust-analyzer.reloadWorkspace",
61         "workspaceContains:*/Cargo.toml",
62         "workspaceContains:*/rust-project.json"
63     ],
64     "main": "./out/main",
65     "contributes": {
66         "taskDefinitions": [
67             {
68                 "type": "cargo",
69                 "required": [
70                     "command"
71                 ],
72                 "properties": {
73                     "label": {
74                         "type": "string"
75                     },
76                     "command": {
77                         "type": "string"
78                     },
79                     "args": {
80                         "type": "array",
81                         "items": {
82                             "type": "string"
83                         }
84                     },
85                     "env": {
86                         "type": "object",
87                         "patternProperties": {
88                             ".+": {
89                                 "type": "string"
90                             }
91                         }
92                     }
93                 }
94             }
95         ],
96         "commands": [
97             {
98                 "command": "rust-analyzer.syntaxTree",
99                 "title": "Show Syntax Tree",
100                 "category": "Rust Analyzer"
101             },
102             {
103                 "command": "rust-analyzer.viewHir",
104                 "title": "View Hir",
105                 "category": "Rust Analyzer"
106             },
107             {
108                 "command": "rust-analyzer.viewFileText",
109                 "title": "View File Text (as seen by the server)",
110                 "category": "Rust Analyzer"
111             },
112             {
113                 "command": "rust-analyzer.viewItemTree",
114                 "title": "Debug ItemTree",
115                 "category": "Rust Analyzer"
116             },
117             {
118                 "command": "rust-analyzer.viewCrateGraph",
119                 "title": "View Crate Graph",
120                 "category": "Rust Analyzer"
121             },
122             {
123                 "command": "rust-analyzer.viewFullCrateGraph",
124                 "title": "View Crate Graph (Full)",
125                 "category": "Rust Analyzer"
126             },
127             {
128                 "command": "rust-analyzer.expandMacro",
129                 "title": "Expand macro recursively",
130                 "category": "Rust Analyzer"
131             },
132             {
133                 "command": "rust-analyzer.matchingBrace",
134                 "title": "Find matching brace",
135                 "category": "Rust Analyzer"
136             },
137             {
138                 "command": "rust-analyzer.parentModule",
139                 "title": "Locate parent module",
140                 "category": "Rust Analyzer"
141             },
142             {
143                 "command": "rust-analyzer.joinLines",
144                 "title": "Join lines",
145                 "category": "Rust Analyzer"
146             },
147             {
148                 "command": "rust-analyzer.run",
149                 "title": "Run",
150                 "category": "Rust Analyzer"
151             },
152             {
153                 "command": "rust-analyzer.copyRunCommandLine",
154                 "title": "Copy Run Command Line",
155                 "category": "Rust Analyzer"
156             },
157             {
158                 "command": "rust-analyzer.debug",
159                 "title": "Debug",
160                 "category": "Rust Analyzer"
161             },
162             {
163                 "command": "rust-analyzer.newDebugConfig",
164                 "title": "Generate launch configuration",
165                 "category": "Rust Analyzer"
166             },
167             {
168                 "command": "rust-analyzer.analyzerStatus",
169                 "title": "Status",
170                 "category": "Rust Analyzer"
171             },
172             {
173                 "command": "rust-analyzer.memoryUsage",
174                 "title": "Memory Usage (Clears Database)",
175                 "category": "Rust Analyzer"
176             },
177             {
178                 "command": "rust-analyzer.shuffleCrateGraph",
179                 "title": "Shuffle Crate Graph",
180                 "category": "Rust Analyzer"
181             },
182             {
183                 "command": "rust-analyzer.reloadWorkspace",
184                 "title": "Reload workspace",
185                 "category": "Rust Analyzer"
186             },
187             {
188                 "command": "rust-analyzer.reload",
189                 "title": "Restart server",
190                 "category": "Rust Analyzer"
191             },
192             {
193                 "command": "rust-analyzer.onEnter",
194                 "title": "Enhanced enter key",
195                 "category": "Rust Analyzer"
196             },
197             {
198                 "command": "rust-analyzer.ssr",
199                 "title": "Structural Search Replace",
200                 "category": "Rust Analyzer"
201             },
202             {
203                 "command": "rust-analyzer.serverVersion",
204                 "title": "Show RA Version",
205                 "category": "Rust Analyzer"
206             },
207             {
208                 "command": "rust-analyzer.toggleInlayHints",
209                 "title": "Toggle inlay hints",
210                 "category": "Rust Analyzer"
211             },
212             {
213                 "command": "rust-analyzer.openDocs",
214                 "title": "Open docs under cursor",
215                 "category": "Rust Analyzer"
216             },
217             {
218                 "command": "rust-analyzer.openCargoToml",
219                 "title": "Open Cargo.toml",
220                 "category": "Rust Analyzer"
221             },
222             {
223                 "command": "rust-analyzer.peekTests",
224                 "title": "Peek related tests",
225                 "category": "Rust Analyzer"
226             },
227             {
228                 "command": "rust-analyzer.moveItemUp",
229                 "title": "Move item up",
230                 "category": "Rust Analyzer"
231             },
232             {
233                 "command": "rust-analyzer.moveItemDown",
234                 "title": "Move item down",
235                 "category": "Rust Analyzer"
236             }
237         ],
238         "keybindings": [
239             {
240                 "command": "rust-analyzer.parentModule",
241                 "key": "ctrl+shift+u",
242                 "when": "editorTextFocus && editorLangId == rust"
243             },
244             {
245                 "command": "rust-analyzer.matchingBrace",
246                 "key": "ctrl+shift+m",
247                 "when": "editorTextFocus && editorLangId == rust"
248             },
249             {
250                 "command": "rust-analyzer.joinLines",
251                 "key": "ctrl+shift+j",
252                 "when": "editorTextFocus && editorLangId == rust"
253             }
254         ],
255         "configuration": {
256             "type": "object",
257             "title": "Rust Analyzer",
258             "properties": {
259                 "rust-analyzer.cargoRunner": {
260                     "type": [
261                         "null",
262                         "string"
263                     ],
264                     "default": null,
265                     "description": "Custom cargo runner extension ID."
266                 },
267                 "rust-analyzer.runnableEnv": {
268                     "anyOf": [
269                         {
270                             "type": "null"
271                         },
272                         {
273                             "type": "array",
274                             "items": {
275                                 "type": "object",
276                                 "properties": {
277                                     "mask": {
278                                         "type": "string",
279                                         "description": "Runnable name mask"
280                                     },
281                                     "env": {
282                                         "type": "object",
283                                         "description": "Variables in form of { \"key\": \"value\"}"
284                                     }
285                                 }
286                             }
287                         },
288                         {
289                             "type": "object",
290                             "description": "Variables in form of { \"key\": \"value\"}"
291                         }
292                     ],
293                     "default": null,
294                     "markdownDescription": "Environment variables passed to the runnable launched using `Test` or `Debug` lens or `rust-analyzer.run` command."
295                 },
296                 "rust-analyzer.server.path": {
297                     "type": [
298                         "null",
299                         "string"
300                     ],
301                     "scope": "machine-overridable",
302                     "default": null,
303                     "markdownDescription": "Path to rust-analyzer executable (points to bundled binary by default)."
304                 },
305                 "rust-analyzer.server.extraEnv": {
306                     "type": [
307                         "null",
308                         "object"
309                     ],
310                     "default": null,
311                     "markdownDescription": "Extra environment variables that will be passed to the rust-analyzer executable. Useful for passing e.g. `RA_LOG` for debugging."
312                 },
313                 "rust-analyzer.trace.server": {
314                     "type": "string",
315                     "scope": "window",
316                     "enum": [
317                         "off",
318                         "messages",
319                         "verbose"
320                     ],
321                     "enumDescriptions": [
322                         "No traces",
323                         "Error only",
324                         "Full log"
325                     ],
326                     "default": "off",
327                     "description": "Trace requests to the rust-analyzer (this is usually overly verbose and not recommended for regular users)."
328                 },
329                 "rust-analyzer.trace.extension": {
330                     "description": "Enable logging of VS Code extensions itself.",
331                     "type": "boolean",
332                     "default": false
333                 },
334                 "rust-analyzer.debug.engine": {
335                     "type": "string",
336                     "enum": [
337                         "auto",
338                         "vadimcn.vscode-lldb",
339                         "ms-vscode.cpptools"
340                     ],
341                     "default": "auto",
342                     "description": "Preferred debug engine.",
343                     "markdownEnumDescriptions": [
344                         "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).",
345                         "Use [CodeLLDB](https://marketplace.visualstudio.com/items?itemName=vadimcn.vscode-lldb)",
346                         "Use [MS C++ tools](https://marketplace.visualstudio.com/items?itemName=ms-vscode.cpptools)"
347                     ]
348                 },
349                 "rust-analyzer.debug.sourceFileMap": {
350                     "type": [
351                         "object",
352                         "string"
353                     ],
354                     "const": "auto",
355                     "description": "Optional source file mappings passed to the debug engine.",
356                     "default": {
357                         "/rustc/<id>": "${env:USERPROFILE}/.rustup/toolchains/<toolchain-id>/lib/rustlib/src/rust"
358                     }
359                 },
360                 "rust-analyzer.debug.openDebugPane": {
361                     "markdownDescription": "Whether to open up the `Debug Panel` on debugging start.",
362                     "type": "boolean",
363                     "default": false
364                 },
365                 "rust-analyzer.debug.engineSettings": {
366                     "type": "object",
367                     "default": {},
368                     "markdownDescription": "Optional settings passed to the debug engine. Example: `{ \"lldb\": { \"terminal\":\"external\"} }`"
369                 },
370                 "$generated-start": {},
371                 "rust-analyzer.assist.exprFillDefault": {
372                     "markdownDescription": "Placeholder for missing expressions in assists.",
373                     "default": "todo",
374                     "type": "string",
375                     "enum": [
376                         "todo",
377                         "default"
378                     ],
379                     "enumDescriptions": [
380                         "Fill missing expressions with the `todo` macro",
381                         "Fill missing expressions with reasonable defaults, `new` or `default` constructors."
382                     ]
383                 },
384                 "rust-analyzer.assist.importGranularity": {
385                     "markdownDescription": "How imports should be grouped into use statements.",
386                     "default": "crate",
387                     "type": "string",
388                     "enum": [
389                         "preserve",
390                         "crate",
391                         "module",
392                         "item"
393                     ],
394                     "enumDescriptions": [
395                         "Do not change the granularity of any imports and preserve the original structure written by the developer.",
396                         "Merge imports from the same crate into a single use statement. Conversely, imports from different crates are split into separate statements.",
397                         "Merge imports from the same module into a single use statement. Conversely, imports from different modules are split into separate statements.",
398                         "Flatten imports so that each has its own use statement."
399                     ]
400                 },
401                 "rust-analyzer.assist.importEnforceGranularity": {
402                     "markdownDescription": "Whether to enforce the import granularity setting for all files. If set to false rust-analyzer will try to keep import styles consistent per file.",
403                     "default": false,
404                     "type": "boolean"
405                 },
406                 "rust-analyzer.assist.importPrefix": {
407                     "markdownDescription": "The path structure for newly inserted paths to use.",
408                     "default": "plain",
409                     "type": "string",
410                     "enum": [
411                         "plain",
412                         "self",
413                         "crate"
414                     ],
415                     "enumDescriptions": [
416                         "Insert import paths relative to the current module, using up to one `super` prefix if the parent module contains the requested item.",
417                         "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.",
418                         "Force import paths to be absolute by always starting them with `crate` or the extern crate name they come from."
419                     ]
420                 },
421                 "rust-analyzer.assist.importGroup": {
422                     "markdownDescription": "Group inserted imports by the [following order](https://rust-analyzer.github.io/manual.html#auto-import). Groups are separated by newlines.",
423                     "default": true,
424                     "type": "boolean"
425                 },
426                 "rust-analyzer.assist.allowMergingIntoGlobImports": {
427                     "markdownDescription": "Whether to allow import insertion to merge new imports into single path glob imports like `use std::fmt::*;`.",
428                     "default": true,
429                     "type": "boolean"
430                 },
431                 "rust-analyzer.cache.warmup": {
432                     "markdownDescription": "Warm up caches on project load.",
433                     "default": true,
434                     "type": "boolean"
435                 },
436                 "rust-analyzer.callInfo.full": {
437                     "markdownDescription": "Show function name and docs in parameter hints.",
438                     "default": true,
439                     "type": "boolean"
440                 },
441                 "rust-analyzer.cargo.autoreload": {
442                     "markdownDescription": "Automatically refresh project info via `cargo metadata` on\n`Cargo.toml` changes.",
443                     "default": true,
444                     "type": "boolean"
445                 },
446                 "rust-analyzer.cargo.allFeatures": {
447                     "markdownDescription": "Activate all available features (`--all-features`).",
448                     "default": false,
449                     "type": "boolean"
450                 },
451                 "rust-analyzer.cargo.unsetTest": {
452                     "markdownDescription": "Unsets `#[cfg(test)]` for the specified crates.",
453                     "default": [
454                         "core"
455                     ],
456                     "type": "array",
457                     "items": {
458                         "type": "string"
459                     }
460                 },
461                 "rust-analyzer.cargo.features": {
462                     "markdownDescription": "List of features to activate.",
463                     "default": [],
464                     "type": "array",
465                     "items": {
466                         "type": "string"
467                     }
468                 },
469                 "rust-analyzer.cargo.runBuildScripts": {
470                     "markdownDescription": "Run build scripts (`build.rs`) for more precise code analysis.",
471                     "default": true,
472                     "type": "boolean"
473                 },
474                 "rust-analyzer.cargo.runBuildScriptsCommand": {
475                     "markdownDescription": "Advanced option, fully override the command rust-analyzer uses to\nrun build scripts and build procedural macros. The command should\ninclude `--message-format=json` or a similar option.",
476                     "default": null,
477                     "type": [
478                         "null",
479                         "array"
480                     ],
481                     "items": {
482                         "type": "string"
483                     }
484                 },
485                 "rust-analyzer.cargo.useRustcWrapperForBuildScripts": {
486                     "markdownDescription": "Use `RUSTC_WRAPPER=rust-analyzer` when running build scripts to\navoid compiling unnecessary things.",
487                     "default": true,
488                     "type": "boolean"
489                 },
490                 "rust-analyzer.cargo.noDefaultFeatures": {
491                     "markdownDescription": "Do not activate the `default` feature.",
492                     "default": false,
493                     "type": "boolean"
494                 },
495                 "rust-analyzer.cargo.target": {
496                     "markdownDescription": "Compilation target (target triple).",
497                     "default": null,
498                     "type": [
499                         "null",
500                         "string"
501                     ]
502                 },
503                 "rust-analyzer.cargo.noSysroot": {
504                     "markdownDescription": "Internal config for debugging, disables loading of sysroot crates.",
505                     "default": false,
506                     "type": "boolean"
507                 },
508                 "rust-analyzer.checkOnSave.enable": {
509                     "markdownDescription": "Run specified `cargo check` command for diagnostics on save.",
510                     "default": true,
511                     "type": "boolean"
512                 },
513                 "rust-analyzer.checkOnSave.allFeatures": {
514                     "markdownDescription": "Check with all features (`--all-features`).\nDefaults to `#rust-analyzer.cargo.allFeatures#`.",
515                     "default": null,
516                     "type": [
517                         "null",
518                         "boolean"
519                     ]
520                 },
521                 "rust-analyzer.checkOnSave.allTargets": {
522                     "markdownDescription": "Check all targets and tests (`--all-targets`).",
523                     "default": true,
524                     "type": "boolean"
525                 },
526                 "rust-analyzer.checkOnSave.command": {
527                     "markdownDescription": "Cargo command to use for `cargo check`.",
528                     "default": "check",
529                     "type": "string"
530                 },
531                 "rust-analyzer.checkOnSave.noDefaultFeatures": {
532                     "markdownDescription": "Do not activate the `default` feature.",
533                     "default": null,
534                     "type": [
535                         "null",
536                         "boolean"
537                     ]
538                 },
539                 "rust-analyzer.checkOnSave.target": {
540                     "markdownDescription": "Check for a specific target. Defaults to\n`#rust-analyzer.cargo.target#`.",
541                     "default": null,
542                     "type": [
543                         "null",
544                         "string"
545                     ]
546                 },
547                 "rust-analyzer.checkOnSave.extraArgs": {
548                     "markdownDescription": "Extra arguments for `cargo check`.",
549                     "default": [],
550                     "type": "array",
551                     "items": {
552                         "type": "string"
553                     }
554                 },
555                 "rust-analyzer.checkOnSave.features": {
556                     "markdownDescription": "List of features to activate. Defaults to\n`#rust-analyzer.cargo.features#`.",
557                     "default": null,
558                     "type": [
559                         "null",
560                         "array"
561                     ],
562                     "items": {
563                         "type": "string"
564                     }
565                 },
566                 "rust-analyzer.checkOnSave.overrideCommand": {
567                     "markdownDescription": "Advanced option, fully override the command rust-analyzer uses for\nchecking. The command should include `--message-format=json` or\nsimilar option.",
568                     "default": null,
569                     "type": [
570                         "null",
571                         "array"
572                     ],
573                     "items": {
574                         "type": "string"
575                     }
576                 },
577                 "rust-analyzer.completion.addCallArgumentSnippets": {
578                     "markdownDescription": "Whether to add argument snippets when completing functions.\nOnly applies when `#rust-analyzer.completion.addCallParenthesis#` is set.",
579                     "default": true,
580                     "type": "boolean"
581                 },
582                 "rust-analyzer.completion.addCallParenthesis": {
583                     "markdownDescription": "Whether to add parenthesis when completing functions.",
584                     "default": true,
585                     "type": "boolean"
586                 },
587                 "rust-analyzer.completion.snippets": {
588                     "markdownDescription": "Custom completion snippets.",
589                     "default": {
590                         "Arc::new": {
591                             "postfix": "arc",
592                             "body": "Arc::new(${receiver})",
593                             "requires": "std::sync::Arc",
594                             "description": "Put the expression into an `Arc`",
595                             "scope": "expr"
596                         },
597                         "Rc::new": {
598                             "postfix": "rc",
599                             "body": "Rc::new(${receiver})",
600                             "requires": "std::rc::Rc",
601                             "description": "Put the expression into an `Rc`",
602                             "scope": "expr"
603                         },
604                         "Box::pin": {
605                             "postfix": "pinbox",
606                             "body": "Box::pin(${receiver})",
607                             "requires": "std::boxed::Box",
608                             "description": "Put the expression into a pinned `Box`",
609                             "scope": "expr"
610                         },
611                         "Ok": {
612                             "postfix": "ok",
613                             "body": "Ok(${receiver})",
614                             "description": "Wrap the expression in a `Result::Ok`",
615                             "scope": "expr"
616                         },
617                         "Err": {
618                             "postfix": "err",
619                             "body": "Err(${receiver})",
620                             "description": "Wrap the expression in a `Result::Err`",
621                             "scope": "expr"
622                         },
623                         "Some": {
624                             "postfix": "some",
625                             "body": "Some(${receiver})",
626                             "description": "Wrap the expression in an `Option::Some`",
627                             "scope": "expr"
628                         }
629                     },
630                     "type": "object"
631                 },
632                 "rust-analyzer.completion.postfix.enable": {
633                     "markdownDescription": "Whether to show postfix snippets like `dbg`, `if`, `not`, etc.",
634                     "default": true,
635                     "type": "boolean"
636                 },
637                 "rust-analyzer.completion.autoimport.enable": {
638                     "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.",
639                     "default": true,
640                     "type": "boolean"
641                 },
642                 "rust-analyzer.completion.autoself.enable": {
643                     "markdownDescription": "Toggles the additional completions that automatically show method calls and field accesses\nwith `self` prefixed to them when inside a method.",
644                     "default": true,
645                     "type": "boolean"
646                 },
647                 "rust-analyzer.completion.privateEditable.enable": {
648                     "markdownDescription": "Enables completions of private items and fields that are defined in the current workspace even if they are not visible at the current position.",
649                     "default": false,
650                     "type": "boolean"
651                 },
652                 "rust-analyzer.diagnostics.enable": {
653                     "markdownDescription": "Whether to show native rust-analyzer diagnostics.",
654                     "default": true,
655                     "type": "boolean"
656                 },
657                 "rust-analyzer.diagnostics.enableExperimental": {
658                     "markdownDescription": "Whether to show experimental rust-analyzer diagnostics that might\nhave more false positives than usual.",
659                     "default": false,
660                     "type": "boolean"
661                 },
662                 "rust-analyzer.diagnostics.disabled": {
663                     "markdownDescription": "List of rust-analyzer diagnostics to disable.",
664                     "default": [],
665                     "type": "array",
666                     "items": {
667                         "type": "string"
668                     },
669                     "uniqueItems": true
670                 },
671                 "rust-analyzer.diagnostics.remapPrefix": {
672                     "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`.",
673                     "default": {},
674                     "type": "object"
675                 },
676                 "rust-analyzer.diagnostics.warningsAsHint": {
677                     "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`.",
678                     "default": [],
679                     "type": "array",
680                     "items": {
681                         "type": "string"
682                     }
683                 },
684                 "rust-analyzer.diagnostics.warningsAsInfo": {
685                     "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`.",
686                     "default": [],
687                     "type": "array",
688                     "items": {
689                         "type": "string"
690                     }
691                 },
692                 "rust-analyzer.experimental.procAttrMacros": {
693                     "markdownDescription": "Expand attribute macros.",
694                     "default": true,
695                     "type": "boolean"
696                 },
697                 "rust-analyzer.files.watcher": {
698                     "markdownDescription": "Controls file watching implementation.",
699                     "default": "client",
700                     "type": "string"
701                 },
702                 "rust-analyzer.files.excludeDirs": {
703                     "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`.",
704                     "default": [],
705                     "type": "array",
706                     "items": {
707                         "type": "string"
708                     }
709                 },
710                 "rust-analyzer.highlightRelated.references": {
711                     "markdownDescription": "Enables highlighting of related references while hovering your mouse above any identifier.",
712                     "default": true,
713                     "type": "boolean"
714                 },
715                 "rust-analyzer.highlightRelated.exitPoints": {
716                     "markdownDescription": "Enables highlighting of all exit points while hovering your mouse above any `return`, `?`, or return type arrow (`->`).",
717                     "default": true,
718                     "type": "boolean"
719                 },
720                 "rust-analyzer.highlightRelated.breakPoints": {
721                     "markdownDescription": "Enables highlighting of related references while hovering your mouse `break`, `loop`, `while`, or `for` keywords.",
722                     "default": true,
723                     "type": "boolean"
724                 },
725                 "rust-analyzer.highlightRelated.yieldPoints": {
726                     "markdownDescription": "Enables highlighting of all break points for a loop or block context while hovering your mouse above any `async` or `await` keywords.",
727                     "default": true,
728                     "type": "boolean"
729                 },
730                 "rust-analyzer.highlighting.strings": {
731                     "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.",
732                     "default": true,
733                     "type": "boolean"
734                 },
735                 "rust-analyzer.hover.documentation": {
736                     "markdownDescription": "Whether to show documentation on hover.",
737                     "default": true,
738                     "type": "boolean"
739                 },
740                 "rust-analyzer.hover.linksInHover": {
741                     "markdownDescription": "Use markdown syntax for links in hover.",
742                     "default": true,
743                     "type": "boolean"
744                 },
745                 "rust-analyzer.hoverActions.debug": {
746                     "markdownDescription": "Whether to show `Debug` action. Only applies when\n`#rust-analyzer.hoverActions.enable#` is set.",
747                     "default": true,
748                     "type": "boolean"
749                 },
750                 "rust-analyzer.hoverActions.enable": {
751                     "markdownDescription": "Whether to show HoverActions in Rust files.",
752                     "default": true,
753                     "type": "boolean"
754                 },
755                 "rust-analyzer.hoverActions.gotoTypeDef": {
756                     "markdownDescription": "Whether to show `Go to Type Definition` action. Only applies when\n`#rust-analyzer.hoverActions.enable#` is set.",
757                     "default": true,
758                     "type": "boolean"
759                 },
760                 "rust-analyzer.hoverActions.implementations": {
761                     "markdownDescription": "Whether to show `Implementations` action. Only applies when\n`#rust-analyzer.hoverActions.enable#` is set.",
762                     "default": true,
763                     "type": "boolean"
764                 },
765                 "rust-analyzer.hoverActions.references": {
766                     "markdownDescription": "Whether to show `References` action. Only applies when\n`#rust-analyzer.hoverActions.enable#` is set.",
767                     "default": false,
768                     "type": "boolean"
769                 },
770                 "rust-analyzer.hoverActions.run": {
771                     "markdownDescription": "Whether to show `Run` action. Only applies when\n`#rust-analyzer.hoverActions.enable#` is set.",
772                     "default": true,
773                     "type": "boolean"
774                 },
775                 "rust-analyzer.inlayHints.renderColons": {
776                     "markdownDescription": "Whether to render trailing colons for parameter hints, and trailing colons for parameter hints.",
777                     "default": true,
778                     "type": "boolean"
779                 },
780                 "rust-analyzer.inlayHints.maxLength": {
781                     "markdownDescription": "Maximum length for inlay hints. Set to null to have an unlimited length.",
782                     "default": 25,
783                     "type": [
784                         "null",
785                         "integer"
786                     ],
787                     "minimum": 0
788                 },
789                 "rust-analyzer.inlayHints.parameterHints": {
790                     "markdownDescription": "Whether to show function parameter name inlay hints at the call\nsite.",
791                     "default": true,
792                     "type": "boolean"
793                 },
794                 "rust-analyzer.inlayHints.typeHints": {
795                     "markdownDescription": "Whether to show inlay type hints for variables.",
796                     "default": true,
797                     "type": "boolean"
798                 },
799                 "rust-analyzer.inlayHints.chainingHints": {
800                     "markdownDescription": "Whether to show inlay type hints for method chains.",
801                     "default": true,
802                     "type": "boolean"
803                 },
804                 "rust-analyzer.inlayHints.closureReturnTypeHints": {
805                     "markdownDescription": "Whether to show inlay type hints for return types of closures with blocks.",
806                     "default": false,
807                     "type": "boolean"
808                 },
809                 "rust-analyzer.inlayHints.reborrowHints": {
810                     "markdownDescription": "Whether to show inlay type hints for compiler inserted reborrows.",
811                     "default": false,
812                     "type": "boolean"
813                 },
814                 "rust-analyzer.inlayHints.lifetimeElisionHints.enable": {
815                     "markdownDescription": "Whether to show inlay type hints for elided lifetimes in function signatures.",
816                     "default": "never",
817                     "type": "string",
818                     "enum": [
819                         "always",
820                         "never",
821                         "skip_trivial"
822                     ],
823                     "enumDescriptions": [
824                         "Always show lifetime elision hints.",
825                         "Never show lifetime elision hints.",
826                         "Only show lifetime elision hints if a return type is involved."
827                     ]
828                 },
829                 "rust-analyzer.inlayHints.lifetimeElisionHints.useParameterNames": {
830                     "markdownDescription": "Whether to prefer using parameter names as the name for elided lifetime hints if possible.",
831                     "default": false,
832                     "type": "boolean"
833                 },
834                 "rust-analyzer.inlayHints.hideNamedConstructorHints": {
835                     "markdownDescription": "Whether to hide inlay hints for constructors.",
836                     "default": false,
837                     "type": "boolean"
838                 },
839                 "rust-analyzer.joinLines.joinElseIf": {
840                     "markdownDescription": "Join lines inserts else between consecutive ifs.",
841                     "default": true,
842                     "type": "boolean"
843                 },
844                 "rust-analyzer.joinLines.removeTrailingComma": {
845                     "markdownDescription": "Join lines removes trailing commas.",
846                     "default": true,
847                     "type": "boolean"
848                 },
849                 "rust-analyzer.joinLines.unwrapTrivialBlock": {
850                     "markdownDescription": "Join lines unwraps trivial blocks.",
851                     "default": true,
852                     "type": "boolean"
853                 },
854                 "rust-analyzer.joinLines.joinAssignments": {
855                     "markdownDescription": "Join lines merges consecutive declaration and initialization of an assignment.",
856                     "default": true,
857                     "type": "boolean"
858                 },
859                 "rust-analyzer.lens.debug": {
860                     "markdownDescription": "Whether to show `Debug` lens. Only applies when\n`#rust-analyzer.lens.enable#` is set.",
861                     "default": true,
862                     "type": "boolean"
863                 },
864                 "rust-analyzer.lens.enable": {
865                     "markdownDescription": "Whether to show CodeLens in Rust files.",
866                     "default": true,
867                     "type": "boolean"
868                 },
869                 "rust-analyzer.lens.implementations": {
870                     "markdownDescription": "Whether to show `Implementations` lens. Only applies when\n`#rust-analyzer.lens.enable#` is set.",
871                     "default": true,
872                     "type": "boolean"
873                 },
874                 "rust-analyzer.lens.run": {
875                     "markdownDescription": "Whether to show `Run` lens. Only applies when\n`#rust-analyzer.lens.enable#` is set.",
876                     "default": true,
877                     "type": "boolean"
878                 },
879                 "rust-analyzer.lens.methodReferences": {
880                     "markdownDescription": "Whether to show `Method References` lens. Only applies when\n`#rust-analyzer.lens.enable#` is set.",
881                     "default": false,
882                     "type": "boolean"
883                 },
884                 "rust-analyzer.lens.references": {
885                     "markdownDescription": "Whether to show `References` lens for Struct, Enum, Union and Trait.\nOnly applies when `#rust-analyzer.lens.enable#` is set.",
886                     "default": false,
887                     "type": "boolean"
888                 },
889                 "rust-analyzer.lens.enumVariantReferences": {
890                     "markdownDescription": "Whether to show `References` lens for Enum Variants.\nOnly applies when `#rust-analyzer.lens.enable#` is set.",
891                     "default": false,
892                     "type": "boolean"
893                 },
894                 "rust-analyzer.lens.forceCustomCommands": {
895                     "markdownDescription": "Internal config: use custom client-side commands even when the\nclient doesn't set the corresponding capability.",
896                     "default": true,
897                     "type": "boolean"
898                 },
899                 "rust-analyzer.linkedProjects": {
900                     "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.",
901                     "default": [],
902                     "type": "array",
903                     "items": {
904                         "type": [
905                             "string",
906                             "object"
907                         ]
908                     }
909                 },
910                 "rust-analyzer.lruCapacity": {
911                     "markdownDescription": "Number of syntax trees rust-analyzer keeps in memory. Defaults to 128.",
912                     "default": null,
913                     "type": [
914                         "null",
915                         "integer"
916                     ],
917                     "minimum": 0
918                 },
919                 "rust-analyzer.notifications.cargoTomlNotFound": {
920                     "markdownDescription": "Whether to show `can't find Cargo.toml` error message.",
921                     "default": true,
922                     "type": "boolean"
923                 },
924                 "rust-analyzer.primeCaches.numThreads": {
925                     "markdownDescription": "How many worker threads to to handle priming caches. The default `0` means to pick automatically.",
926                     "default": 0,
927                     "type": "number",
928                     "minimum": 0,
929                     "maximum": 255
930                 },
931                 "rust-analyzer.procMacro.enable": {
932                     "markdownDescription": "Enable support for procedural macros, implies `#rust-analyzer.cargo.runBuildScripts#`.",
933                     "default": true,
934                     "type": "boolean"
935                 },
936                 "rust-analyzer.procMacro.server": {
937                     "markdownDescription": "Internal config, path to proc-macro server executable (typically,\nthis is rust-analyzer itself, but we override this in tests).",
938                     "default": null,
939                     "type": [
940                         "null",
941                         "string"
942                     ]
943                 },
944                 "rust-analyzer.procMacro.ignored": {
945                     "markdownDescription": "These proc-macros will be ignored when trying to expand them.\n\nThis config takes a map of crate names with the exported proc-macro names to ignore as values.",
946                     "default": {},
947                     "type": "object"
948                 },
949                 "rust-analyzer.runnables.overrideCargo": {
950                     "markdownDescription": "Command to be executed instead of 'cargo' for runnables.",
951                     "default": null,
952                     "type": [
953                         "null",
954                         "string"
955                     ]
956                 },
957                 "rust-analyzer.runnables.cargoExtraArgs": {
958                     "markdownDescription": "Additional arguments to be passed to cargo for runnables such as\ntests or binaries. For example, it may be `--release`.",
959                     "default": [],
960                     "type": "array",
961                     "items": {
962                         "type": "string"
963                     }
964                 },
965                 "rust-analyzer.rustcSource": {
966                     "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.",
967                     "default": null,
968                     "type": [
969                         "null",
970                         "string"
971                     ]
972                 },
973                 "rust-analyzer.rustfmt.extraArgs": {
974                     "markdownDescription": "Additional arguments to `rustfmt`.",
975                     "default": [],
976                     "type": "array",
977                     "items": {
978                         "type": "string"
979                     }
980                 },
981                 "rust-analyzer.rustfmt.overrideCommand": {
982                     "markdownDescription": "Advanced option, fully override the command rust-analyzer uses for\nformatting.",
983                     "default": null,
984                     "type": [
985                         "null",
986                         "array"
987                     ],
988                     "items": {
989                         "type": "string"
990                     }
991                 },
992                 "rust-analyzer.rustfmt.enableRangeFormatting": {
993                     "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.",
994                     "default": false,
995                     "type": "boolean"
996                 },
997                 "rust-analyzer.workspace.symbol.search.scope": {
998                     "markdownDescription": "Workspace symbol search scope.",
999                     "default": "workspace",
1000                     "type": "string",
1001                     "enum": [
1002                         "workspace",
1003                         "workspace_and_dependencies"
1004                     ],
1005                     "enumDescriptions": [
1006                         "Search in current workspace only",
1007                         "Search in current workspace and dependencies"
1008                     ]
1009                 },
1010                 "rust-analyzer.workspace.symbol.search.kind": {
1011                     "markdownDescription": "Workspace symbol search kind.",
1012                     "default": "only_types",
1013                     "type": "string",
1014                     "enum": [
1015                         "only_types",
1016                         "all_symbols"
1017                     ],
1018                     "enumDescriptions": [
1019                         "Search for types only",
1020                         "Search for all symbols kinds"
1021                     ]
1022                 },
1023                 "rust-analyzer.workspace.symbol.search.limit": {
1024                     "markdownDescription": "Limits the number of items returned from a workspace symbol search (Defaults to 128).\nSome clients like vs-code issue new searches on result filtering and don't require all results to be returned in the initial search.\nOther clients requires all results upfront and might require a higher limit.",
1025                     "default": 128,
1026                     "type": "integer",
1027                     "minimum": 0
1028                 },
1029                 "$generated-end": {}
1030             }
1031         },
1032         "problemPatterns": [
1033             {
1034                 "name": "rustc",
1035                 "patterns": [
1036                     {
1037                         "regexp": "^(warning|warn|error)(?:\\[(.*?)\\])?: (.*)$",
1038                         "severity": 1,
1039                         "code": 2,
1040                         "message": 3
1041                     },
1042                     {
1043                         "regexp": "^[\\s->=]*(.*?):(\\d*):(\\d*)\\s*$",
1044                         "file": 1,
1045                         "line": 2,
1046                         "column": 3
1047                     }
1048                 ]
1049             },
1050             {
1051                 "name": "rustc-json",
1052                 "patterns": [
1053                     {
1054                         "regexp": "^.*\"message\":{\"message\":\"([^\"]*).*?\"file_name\":\"([^\"]+).*?\"line_start\":(\\d+).*?\"line_end\":(\\d+).*?\"column_start\":(\\d+).*?\"column_end\":(\\d+).*}$",
1055                         "message": 1,
1056                         "file": 2,
1057                         "line": 3,
1058                         "endLine": 4,
1059                         "column": 5,
1060                         "endColumn": 6
1061                     }
1062                 ]
1063             }
1064         ],
1065         "languages": [
1066             {
1067                 "id": "ra_syntax_tree",
1068                 "extensions": [
1069                     ".rast"
1070                 ]
1071             },
1072             {
1073                 "id": "rust",
1074                 "extensions": [
1075                     ".rs"
1076                 ],
1077                 "aliases": [
1078                     "Rust",
1079                     "rs"
1080                 ],
1081                 "configuration": "language-configuration.json"
1082             }
1083         ],
1084         "grammars": [
1085             {
1086                 "language": "ra_syntax_tree",
1087                 "scopeName": "source.ra_syntax_tree",
1088                 "path": "ra_syntax_tree.tmGrammar.json"
1089             }
1090         ],
1091         "problemMatchers": [
1092             {
1093                 "name": "rustc",
1094                 "owner": "rustc",
1095                 "source": "rustc",
1096                 "fileLocation": [
1097                     "autoDetect",
1098                     "${workspaceRoot}"
1099                 ],
1100                 "pattern": "$rustc"
1101             },
1102             {
1103                 "name": "rustc-json",
1104                 "owner": "rustc",
1105                 "source": "rustc",
1106                 "fileLocation": [
1107                     "autoDetect",
1108                     "${workspaceRoot}"
1109                 ],
1110                 "pattern": "$rustc-json"
1111             },
1112             {
1113                 "name": "rustc-watch",
1114                 "owner": "rustc",
1115                 "source": "rustc",
1116                 "fileLocation": [
1117                     "autoDetect",
1118                     "${workspaceRoot}"
1119                 ],
1120                 "background": {
1121                     "beginsPattern": "^\\[Running\\b",
1122                     "endsPattern": "^\\[Finished running\\b"
1123                 },
1124                 "pattern": "$rustc"
1125             }
1126         ],
1127         "colors": [
1128             {
1129                 "id": "rust_analyzer.syntaxTreeBorder",
1130                 "description": "Color of the border displayed in the Rust source code for the selected syntax node (see \"Show Syntax Tree\" command)",
1131                 "defaults": {
1132                     "dark": "#ffffff",
1133                     "light": "#b700ff",
1134                     "highContrast": "#b700ff"
1135                 }
1136             }
1137         ],
1138         "semanticTokenTypes": [
1139             {
1140                 "id": "angle",
1141                 "description": "Style for < or >",
1142                 "superType": "punctuation"
1143             },
1144             {
1145                 "id": "arithmetic",
1146                 "description": "Style for arithmetic operators",
1147                 "superType": "operator"
1148             },
1149             {
1150                 "id": "attribute",
1151                 "description": "Style for attributes"
1152             },
1153             {
1154                 "id": "attributeBracket",
1155                 "description": "Style for attribute invocation brackets, that is the `#[` and `]` tokens",
1156                 "superType": "punctuation"
1157             },
1158             {
1159                 "id": "bitwise",
1160                 "description": "Style for bitwise operators",
1161                 "superType": "operator"
1162             },
1163             {
1164                 "id": "boolean",
1165                 "description": "Style for boolean literals",
1166                 "superType": "keyword"
1167             },
1168             {
1169                 "id": "brace",
1170                 "description": "Style for { or }",
1171                 "superType": "punctuation"
1172             },
1173             {
1174                 "id": "bracket",
1175                 "description": "Style for [ or ]",
1176                 "superType": "punctuation"
1177             },
1178             {
1179                 "id": "builtinAttribute",
1180                 "description": "Style for builtin attributes",
1181                 "superType": "attribute"
1182             },
1183             {
1184                 "id": "builtinType",
1185                 "description": "Style for builtin types",
1186                 "superType": "type"
1187             },
1188             {
1189                 "id": "char",
1190                 "description": "Style for character literals",
1191                 "superType": "type"
1192             },
1193             {
1194                 "id": "colon",
1195                 "description": "Style for :",
1196                 "superType": "punctuation"
1197             },
1198             {
1199                 "id": "comma",
1200                 "description": "Style for ,",
1201                 "superType": "punctuation"
1202             },
1203             {
1204                 "id": "comparison",
1205                 "description": "Style for comparison operators",
1206                 "superType": "operator"
1207             },
1208             {
1209                 "id": "constParameter",
1210                 "description": "Style for const generics"
1211             },
1212             {
1213                 "id": "derive",
1214                 "description": "Style for derives",
1215                 "superType": "attribute"
1216             },
1217             {
1218                 "id": "dot",
1219                 "description": "Style for .",
1220                 "superType": "punctuation"
1221             },
1222             {
1223                 "id": "escapeSequence",
1224                 "description": "Style for char escapes in strings"
1225             },
1226             {
1227                 "id": "formatSpecifier",
1228                 "description": "Style for {} placeholders in format strings"
1229             },
1230             {
1231                 "id": "label",
1232                 "description": "Style for labels"
1233             },
1234             {
1235                 "id": "lifetime",
1236                 "description": "Style for lifetimes"
1237             },
1238             {
1239                 "id": "logical",
1240                 "description": "Style for logic operators",
1241                 "superType": "operator"
1242             },
1243             {
1244                 "id": "macroBang",
1245                 "description": "Style for the ! token of macro calls",
1246                 "superType": "punctuation"
1247             },
1248             {
1249                 "id": "operator",
1250                 "description": "Style for operators",
1251                 "superType": "punctuation"
1252             },
1253             {
1254                 "id": "parenthesis",
1255                 "description": "Style for ( or )",
1256                 "superType": "punctuation"
1257             },
1258             {
1259                 "id": "punctuation",
1260                 "description": "Style for generic punctuation"
1261             },
1262             {
1263                 "id": "selfKeyword",
1264                 "description": "Style for the self keyword",
1265                 "superType": "keyword"
1266             },
1267             {
1268                 "id": "selfTypeKeyword",
1269                 "description": "Style for the self type keyword",
1270                 "superType": "keyword"
1271             },
1272             {
1273                 "id": "semicolon",
1274                 "description": "Style for ;",
1275                 "superType": "punctuation"
1276             },
1277             {
1278                 "id": "typeAlias",
1279                 "description": "Style for type aliases",
1280                 "superType": "type"
1281             },
1282             {
1283                 "id": "union",
1284                 "description": "Style for C-style untagged unions",
1285                 "superType": "type"
1286             },
1287             {
1288                 "id": "unresolvedReference",
1289                 "description": "Style for names which can not be resolved due to compilation errors"
1290             }
1291         ],
1292         "semanticTokenModifiers": [
1293             {
1294                 "id": "async",
1295                 "description": "Style for async functions and the `async` and `await` keywords"
1296             },
1297             {
1298                 "id": "attribute",
1299                 "description": "Style for elements within attributes"
1300             },
1301             {
1302                 "id": "callable",
1303                 "description": "Style for locals whose types implements one of the `Fn*` traits"
1304             },
1305             {
1306                 "id": "constant",
1307                 "description": "Style for compile-time constants"
1308             },
1309             {
1310                 "id": "consuming",
1311                 "description": "Style for locals that are being consumed when use in a function call"
1312             },
1313             {
1314                 "id": "controlFlow",
1315                 "description": "Style for control-flow related tokens, this includes the `?` operator"
1316             },
1317             {
1318                 "id": "crateRoot",
1319                 "description": "Style for names resolving to a crate root"
1320             },
1321             {
1322                 "id": "injected",
1323                 "description": "Style for doc-string injected highlighting like rust source blocks in documentation"
1324             },
1325             {
1326                 "id": "intraDocLink",
1327                 "description": "Style for intra doc links in doc-strings"
1328             },
1329             {
1330                 "id": "library",
1331                 "description": "Style for items that are defined outside of the current crate"
1332             },
1333             {
1334                 "id": "mutable",
1335                 "description": "Style for mutable locals and statics as well as functions taking `&mut self`"
1336             },
1337             {
1338                 "id": "public",
1339                 "description": "Style tems that are from the current crate and are `pub`"
1340             },
1341             {
1342                 "id": "reference",
1343                 "description": "Style for locals behind a reference and functions taking `self` by reference"
1344             },
1345             {
1346                 "id": "trait",
1347                 "description": "Style for associated trait items"
1348             },
1349             {
1350                 "id": "unsafe",
1351                 "description": "Style for unsafe operations, like unsafe function calls, as well as the `unsafe` token"
1352             }
1353         ],
1354         "semanticTokenScopes": [
1355             {
1356                 "language": "rust",
1357                 "scopes": {
1358                     "attribute": [
1359                         "meta.attribute.rust"
1360                     ],
1361                     "boolean": [
1362                         "constant.language.boolean.rust"
1363                     ],
1364                     "builtinType": [
1365                         "support.type.primitive.rust"
1366                     ],
1367                     "constParameter": [
1368                         "constant.other.caps.rust"
1369                     ],
1370                     "enum": [
1371                         "entity.name.type.enum.rust"
1372                     ],
1373                     "formatSpecifier": [
1374                         "punctuation.section.embedded.rust"
1375                     ],
1376                     "function": [
1377                         "entity.name.function.rust"
1378                     ],
1379                     "interface": [
1380                         "entity.name.type.trait.rust"
1381                     ],
1382                     "keyword": [
1383                         "keyword.other.rust"
1384                     ],
1385                     "keyword.controlFlow": [
1386                         "keyword.control.rust"
1387                     ],
1388                     "lifetime": [
1389                         "storage.modifier.lifetime.rust"
1390                     ],
1391                     "macroBang": [
1392                         "entity.name.function.macro.rust"
1393                     ],
1394                     "method": [
1395                         "entity.name.function.rust"
1396                     ],
1397                     "struct": [
1398                         "entity.name.type.struct.rust"
1399                     ],
1400                     "typeAlias": [
1401                         "entity.name.type.declaration.rust"
1402                     ],
1403                     "union": [
1404                         "entity.name.type.union.rust"
1405                     ],
1406                     "variable": [
1407                         "variable.other.rust"
1408                     ],
1409                     "variable.constant": [
1410                         "variable.other.constant.rust"
1411                     ],
1412                     "*.mutable": [
1413                         "markup.underline"
1414                     ]
1415                 }
1416             }
1417         ],
1418         "menus": {
1419             "commandPalette": [
1420                 {
1421                     "command": "rust-analyzer.syntaxTree",
1422                     "when": "inRustProject"
1423                 },
1424                 {
1425                     "command": "rust-analyzer.viewHir",
1426                     "when": "inRustProject"
1427                 },
1428                 {
1429                     "command": "rust-analyzer.viewFileText",
1430                     "when": "inRustProject"
1431                 },
1432                 {
1433                     "command": "rust-analyzer.expandMacro",
1434                     "when": "inRustProject"
1435                 },
1436                 {
1437                     "command": "rust-analyzer.matchingBrace",
1438                     "when": "inRustProject"
1439                 },
1440                 {
1441                     "command": "rust-analyzer.parentModule",
1442                     "when": "inRustProject"
1443                 },
1444                 {
1445                     "command": "rust-analyzer.joinLines",
1446                     "when": "inRustProject"
1447                 },
1448                 {
1449                     "command": "rust-analyzer.run",
1450                     "when": "inRustProject"
1451                 },
1452                 {
1453                     "command": "rust-analyzer.debug",
1454                     "when": "inRustProject"
1455                 },
1456                 {
1457                     "command": "rust-analyzer.newDebugConfig",
1458                     "when": "inRustProject"
1459                 },
1460                 {
1461                     "command": "rust-analyzer.analyzerStatus",
1462                     "when": "inRustProject"
1463                 },
1464                 {
1465                     "command": "rust-analyzer.memoryUsage",
1466                     "when": "inRustProject"
1467                 },
1468                 {
1469                     "command": "rust-analyzer.reloadWorkspace",
1470                     "when": "inRustProject"
1471                 },
1472                 {
1473                     "command": "rust-analyzer.reload",
1474                     "when": "inRustProject"
1475                 },
1476                 {
1477                     "command": "rust-analyzer.onEnter",
1478                     "when": "inRustProject"
1479                 },
1480                 {
1481                     "command": "rust-analyzer.ssr",
1482                     "when": "inRustProject"
1483                 },
1484                 {
1485                     "command": "rust-analyzer.serverVersion",
1486                     "when": "inRustProject"
1487                 },
1488                 {
1489                     "command": "rust-analyzer.toggleInlayHints",
1490                     "when": "inRustProject"
1491                 },
1492                 {
1493                     "command": "rust-analyzer.openDocs",
1494                     "when": "inRustProject"
1495                 },
1496                 {
1497                     "command": "rust-analyzer.openCargoToml",
1498                     "when": "inRustProject"
1499                 }
1500             ],
1501             "editor/context": [
1502                 {
1503                     "command": "rust-analyzer.peekTests",
1504                     "when": "inRustProject",
1505                     "group": "navigation@1000"
1506                 }
1507             ]
1508         }
1509     }
1510 }