]> git.lizzy.rs Git - rust.git/blob - editors/code/package.json
Drop extensionUri copy
[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.63.0"
25     },
26     "enableProposedApi": true,
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=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"
37     },
38     "dependencies": {
39         "vscode-languageclient": "8.0.0-next.2",
40         "d3": "^7.2.0",
41         "d3-graphviz": "^4.0.0"
42     },
43     "devDependencies": {
44         "@types/node": "~14.17.5",
45         "@types/vscode": "~1.63.0",
46         "@typescript-eslint/eslint-plugin": "^5.5.0",
47         "@typescript-eslint/parser": "^5.5.0",
48         "@vscode/test-electron": "^1.6.2",
49         "esbuild": "^0.14.1",
50         "eslint": "^8.3.0",
51         "tslib": "^2.3.0",
52         "typescript": "^4.5.2",
53         "typescript-formatter": "^7.2.2",
54         "vsce": "^2.5.1"
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.viewItemTree",
109                 "title": "Debug ItemTree",
110                 "category": "Rust Analyzer"
111             },
112             {
113                 "command": "rust-analyzer.viewCrateGraph",
114                 "title": "View Crate Graph",
115                 "category": "Rust Analyzer"
116             },
117             {
118                 "command": "rust-analyzer.viewFullCrateGraph",
119                 "title": "View Crate Graph (Full)",
120                 "category": "Rust Analyzer"
121             },
122             {
123                 "command": "rust-analyzer.expandMacro",
124                 "title": "Expand macro recursively",
125                 "category": "Rust Analyzer"
126             },
127             {
128                 "command": "rust-analyzer.matchingBrace",
129                 "title": "Find matching brace",
130                 "category": "Rust Analyzer"
131             },
132             {
133                 "command": "rust-analyzer.parentModule",
134                 "title": "Locate parent module",
135                 "category": "Rust Analyzer"
136             },
137             {
138                 "command": "rust-analyzer.joinLines",
139                 "title": "Join lines",
140                 "category": "Rust Analyzer"
141             },
142             {
143                 "command": "rust-analyzer.run",
144                 "title": "Run",
145                 "category": "Rust Analyzer"
146             },
147             {
148                 "command": "rust-analyzer.copyRunCommandLine",
149                 "title": "Copy Run Command Line",
150                 "category": "Rust Analyzer"
151             },
152             {
153                 "command": "rust-analyzer.debug",
154                 "title": "Debug",
155                 "category": "Rust Analyzer"
156             },
157             {
158                 "command": "rust-analyzer.newDebugConfig",
159                 "title": "Generate launch configuration",
160                 "category": "Rust Analyzer"
161             },
162             {
163                 "command": "rust-analyzer.analyzerStatus",
164                 "title": "Status",
165                 "category": "Rust Analyzer"
166             },
167             {
168                 "command": "rust-analyzer.memoryUsage",
169                 "title": "Memory Usage (Clears Database)",
170                 "category": "Rust Analyzer"
171             },
172             {
173                 "command": "rust-analyzer.shuffleCrateGraph",
174                 "title": "Shuffle Crate Graph",
175                 "category": "Rust Analyzer"
176             },
177             {
178                 "command": "rust-analyzer.reloadWorkspace",
179                 "title": "Reload workspace",
180                 "category": "Rust Analyzer"
181             },
182             {
183                 "command": "rust-analyzer.reload",
184                 "title": "Restart server",
185                 "category": "Rust Analyzer"
186             },
187             {
188                 "command": "rust-analyzer.updateGithubToken",
189                 "title": "Update Github API token",
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.inlayHints.enable": {
297                     "type": "boolean",
298                     "default": true,
299                     "description": "Whether to show inlay hints."
300                 },
301                 "rust-analyzer.inlayHints.smallerHints": {
302                     "type": "boolean",
303                     "default": true,
304                     "description": "Whether inlay hints font size should be smaller than editor's font size."
305                 },
306                 "rust-analyzer.server.path": {
307                     "type": [
308                         "null",
309                         "string"
310                     ],
311                     "scope": "machine-overridable",
312                     "default": null,
313                     "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"
314                 },
315                 "rust-analyzer.server.extraEnv": {
316                     "type": [
317                         "null",
318                         "object"
319                     ],
320                     "default": null,
321                     "markdownDescription": "Extra environment variables that will be passed to the rust-analyzer executable. Useful for passing e.g. `RA_LOG` for debugging."
322                 },
323                 "rust-analyzer.trace.server": {
324                     "type": "string",
325                     "scope": "window",
326                     "enum": [
327                         "off",
328                         "messages",
329                         "verbose"
330                     ],
331                     "enumDescriptions": [
332                         "No traces",
333                         "Error only",
334                         "Full log"
335                     ],
336                     "default": "off",
337                     "description": "Trace requests to the rust-analyzer (this is usually overly verbose and not recommended for regular users)."
338                 },
339                 "rust-analyzer.trace.extension": {
340                     "description": "Enable logging of VS Code extensions itself.",
341                     "type": "boolean",
342                     "default": false
343                 },
344                 "rust-analyzer.debug.engine": {
345                     "type": "string",
346                     "enum": [
347                         "auto",
348                         "vadimcn.vscode-lldb",
349                         "ms-vscode.cpptools"
350                     ],
351                     "default": "auto",
352                     "description": "Preferred debug engine.",
353                     "markdownEnumDescriptions": [
354                         "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).",
355                         "Use [CodeLLDB](https://marketplace.visualstudio.com/items?itemName=vadimcn.vscode-lldb)",
356                         "Use [MS C++ tools](https://marketplace.visualstudio.com/items?itemName=ms-vscode.cpptools)"
357                     ]
358                 },
359                 "rust-analyzer.debug.sourceFileMap": {
360                     "type": [
361                         "object",
362                         "string"
363                     ],
364                     "const": "auto",
365                     "description": "Optional source file mappings passed to the debug engine.",
366                     "default": {
367                         "/rustc/<id>": "${env:USERPROFILE}/.rustup/toolchains/<toolchain-id>/lib/rustlib/src/rust"
368                     }
369                 },
370                 "rust-analyzer.debug.openDebugPane": {
371                     "markdownDescription": "Whether to open up the `Debug Panel` on debugging start.",
372                     "type": "boolean",
373                     "default": false
374                 },
375                 "rust-analyzer.debug.engineSettings": {
376                     "type": "object",
377                     "default": {},
378                     "markdownDescription": "Optional settings passed to the debug engine. Example: `{ \"lldb\": { \"terminal\":\"external\"} }`"
379                 },
380                 "$generated-start": {},
381                 "rust-analyzer.assist.importGranularity": {
382                     "markdownDescription": "How imports should be grouped into use statements.",
383                     "default": "crate",
384                     "type": "string",
385                     "enum": [
386                         "preserve",
387                         "crate",
388                         "module",
389                         "item"
390                     ],
391                     "enumDescriptions": [
392                         "Do not change the granularity of any imports and preserve the original structure written by the developer.",
393                         "Merge imports from the same crate into a single use statement. Conversely, imports from different crates are split into separate statements.",
394                         "Merge imports from the same module into a single use statement. Conversely, imports from different modules are split into separate statements.",
395                         "Flatten imports so that each has its own use statement."
396                     ]
397                 },
398                 "rust-analyzer.assist.importEnforceGranularity": {
399                     "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.",
400                     "default": false,
401                     "type": "boolean"
402                 },
403                 "rust-analyzer.assist.importPrefix": {
404                     "markdownDescription": "The path structure for newly inserted paths to use.",
405                     "default": "plain",
406                     "type": "string",
407                     "enum": [
408                         "plain",
409                         "self",
410                         "crate"
411                     ],
412                     "enumDescriptions": [
413                         "Insert import paths relative to the current module, using up to one `super` prefix if the parent module contains the requested item.",
414                         "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.",
415                         "Force import paths to be absolute by always starting them with `crate` or the extern crate name they come from."
416                     ]
417                 },
418                 "rust-analyzer.assist.importGroup": {
419                     "markdownDescription": "Group inserted imports by the [following order](https://rust-analyzer.github.io/manual.html#auto-import). Groups are separated by newlines.",
420                     "default": true,
421                     "type": "boolean"
422                 },
423                 "rust-analyzer.assist.allowMergingIntoGlobImports": {
424                     "markdownDescription": "Whether to allow import insertion to merge new imports into single path glob imports like `use std::fmt::*;`.",
425                     "default": true,
426                     "type": "boolean"
427                 },
428                 "rust-analyzer.cache.warmup": {
429                     "markdownDescription": "Warm up caches on project load.",
430                     "default": true,
431                     "type": "boolean"
432                 },
433                 "rust-analyzer.callInfo.full": {
434                     "markdownDescription": "Show function name and docs in parameter hints.",
435                     "default": true,
436                     "type": "boolean"
437                 },
438                 "rust-analyzer.cargo.autoreload": {
439                     "markdownDescription": "Automatically refresh project info via `cargo metadata` on\n`Cargo.toml` changes.",
440                     "default": true,
441                     "type": "boolean"
442                 },
443                 "rust-analyzer.cargo.allFeatures": {
444                     "markdownDescription": "Activate all available features (`--all-features`).",
445                     "default": false,
446                     "type": "boolean"
447                 },
448                 "rust-analyzer.cargo.unsetTest": {
449                     "markdownDescription": "Unsets `#[cfg(test)]` for the specified crates.",
450                     "default": [
451                         "core"
452                     ],
453                     "type": "array",
454                     "items": {
455                         "type": "string"
456                     }
457                 },
458                 "rust-analyzer.cargo.features": {
459                     "markdownDescription": "List of features to activate.",
460                     "default": [],
461                     "type": "array",
462                     "items": {
463                         "type": "string"
464                     }
465                 },
466                 "rust-analyzer.cargo.runBuildScripts": {
467                     "markdownDescription": "Run build scripts (`build.rs`) for more precise code analysis.",
468                     "default": true,
469                     "type": "boolean"
470                 },
471                 "rust-analyzer.cargo.useRustcWrapperForBuildScripts": {
472                     "markdownDescription": "Use `RUSTC_WRAPPER=rust-analyzer` when running build scripts to\navoid compiling unnecessary things.",
473                     "default": true,
474                     "type": "boolean"
475                 },
476                 "rust-analyzer.cargo.noDefaultFeatures": {
477                     "markdownDescription": "Do not activate the `default` feature.",
478                     "default": false,
479                     "type": "boolean"
480                 },
481                 "rust-analyzer.cargo.target": {
482                     "markdownDescription": "Compilation target (target triple).",
483                     "default": null,
484                     "type": [
485                         "null",
486                         "string"
487                     ]
488                 },
489                 "rust-analyzer.cargo.noSysroot": {
490                     "markdownDescription": "Internal config for debugging, disables loading of sysroot crates.",
491                     "default": false,
492                     "type": "boolean"
493                 },
494                 "rust-analyzer.checkOnSave.enable": {
495                     "markdownDescription": "Run specified `cargo check` command for diagnostics on save.",
496                     "default": true,
497                     "type": "boolean"
498                 },
499                 "rust-analyzer.checkOnSave.allFeatures": {
500                     "markdownDescription": "Check with all features (`--all-features`).\nDefaults to `#rust-analyzer.cargo.allFeatures#`.",
501                     "default": null,
502                     "type": [
503                         "null",
504                         "boolean"
505                     ]
506                 },
507                 "rust-analyzer.checkOnSave.allTargets": {
508                     "markdownDescription": "Check all targets and tests (`--all-targets`).",
509                     "default": true,
510                     "type": "boolean"
511                 },
512                 "rust-analyzer.checkOnSave.command": {
513                     "markdownDescription": "Cargo command to use for `cargo check`.",
514                     "default": "check",
515                     "type": "string"
516                 },
517                 "rust-analyzer.checkOnSave.noDefaultFeatures": {
518                     "markdownDescription": "Do not activate the `default` feature.",
519                     "default": null,
520                     "type": [
521                         "null",
522                         "boolean"
523                     ]
524                 },
525                 "rust-analyzer.checkOnSave.target": {
526                     "markdownDescription": "Check for a specific target. Defaults to\n`#rust-analyzer.cargo.target#`.",
527                     "default": null,
528                     "type": [
529                         "null",
530                         "string"
531                     ]
532                 },
533                 "rust-analyzer.checkOnSave.extraArgs": {
534                     "markdownDescription": "Extra arguments for `cargo check`.",
535                     "default": [],
536                     "type": "array",
537                     "items": {
538                         "type": "string"
539                     }
540                 },
541                 "rust-analyzer.checkOnSave.features": {
542                     "markdownDescription": "List of features to activate. Defaults to\n`#rust-analyzer.cargo.features#`.",
543                     "default": null,
544                     "type": [
545                         "null",
546                         "array"
547                     ],
548                     "items": {
549                         "type": "string"
550                     }
551                 },
552                 "rust-analyzer.checkOnSave.overrideCommand": {
553                     "markdownDescription": "Advanced option, fully override the command rust-analyzer uses for\nchecking. The command should include `--message-format=json` or\nsimilar option.",
554                     "default": null,
555                     "type": [
556                         "null",
557                         "array"
558                     ],
559                     "items": {
560                         "type": "string"
561                     }
562                 },
563                 "rust-analyzer.completion.addCallArgumentSnippets": {
564                     "markdownDescription": "Whether to add argument snippets when completing functions.\nOnly applies when `#rust-analyzer.completion.addCallParenthesis#` is set.",
565                     "default": true,
566                     "type": "boolean"
567                 },
568                 "rust-analyzer.completion.addCallParenthesis": {
569                     "markdownDescription": "Whether to add parenthesis when completing functions.",
570                     "default": true,
571                     "type": "boolean"
572                 },
573                 "rust-analyzer.completion.snippets": {
574                     "markdownDescription": "Custom completion snippets.",
575                     "default": {
576                         "Arc::new": {
577                             "postfix": "arc",
578                             "body": "Arc::new(${receiver})",
579                             "requires": "std::sync::Arc",
580                             "description": "Put the expression into an `Arc`",
581                             "scope": "expr"
582                         },
583                         "Rc::new": {
584                             "postfix": "rc",
585                             "body": "Rc::new(${receiver})",
586                             "requires": "std::rc::Rc",
587                             "description": "Put the expression into an `Rc`",
588                             "scope": "expr"
589                         },
590                         "Box::pin": {
591                             "postfix": "pinbox",
592                             "body": "Box::pin(${receiver})",
593                             "requires": "std::boxed::Box",
594                             "description": "Put the expression into a pinned `Box`",
595                             "scope": "expr"
596                         },
597                         "Ok": {
598                             "postfix": "ok",
599                             "body": "Ok(${receiver})",
600                             "description": "Wrap the expression in a `Result::Ok`",
601                             "scope": "expr"
602                         },
603                         "Err": {
604                             "postfix": "err",
605                             "body": "Err(${receiver})",
606                             "description": "Wrap the expression in a `Result::Err`",
607                             "scope": "expr"
608                         },
609                         "Some": {
610                             "postfix": "some",
611                             "body": "Some(${receiver})",
612                             "description": "Wrap the expression in an `Option::Some`",
613                             "scope": "expr"
614                         }
615                     },
616                     "type": "object"
617                 },
618                 "rust-analyzer.completion.postfix.enable": {
619                     "markdownDescription": "Whether to show postfix snippets like `dbg`, `if`, `not`, etc.",
620                     "default": true,
621                     "type": "boolean"
622                 },
623                 "rust-analyzer.completion.autoimport.enable": {
624                     "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.",
625                     "default": true,
626                     "type": "boolean"
627                 },
628                 "rust-analyzer.completion.autoself.enable": {
629                     "markdownDescription": "Toggles the additional completions that automatically show method calls and field accesses\nwith `self` prefixed to them when inside a method.",
630                     "default": true,
631                     "type": "boolean"
632                 },
633                 "rust-analyzer.diagnostics.enable": {
634                     "markdownDescription": "Whether to show native rust-analyzer diagnostics.",
635                     "default": true,
636                     "type": "boolean"
637                 },
638                 "rust-analyzer.diagnostics.enableExperimental": {
639                     "markdownDescription": "Whether to show experimental rust-analyzer diagnostics that might\nhave more false positives than usual.",
640                     "default": true,
641                     "type": "boolean"
642                 },
643                 "rust-analyzer.diagnostics.disabled": {
644                     "markdownDescription": "List of rust-analyzer diagnostics to disable.",
645                     "default": [],
646                     "type": "array",
647                     "items": {
648                         "type": "string"
649                     },
650                     "uniqueItems": true
651                 },
652                 "rust-analyzer.diagnostics.remapPrefix": {
653                     "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`.",
654                     "default": {},
655                     "type": "object"
656                 },
657                 "rust-analyzer.diagnostics.warningsAsHint": {
658                     "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`.",
659                     "default": [],
660                     "type": "array",
661                     "items": {
662                         "type": "string"
663                     }
664                 },
665                 "rust-analyzer.diagnostics.warningsAsInfo": {
666                     "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`.",
667                     "default": [],
668                     "type": "array",
669                     "items": {
670                         "type": "string"
671                     }
672                 },
673                 "rust-analyzer.experimental.procAttrMacros": {
674                     "markdownDescription": "Expand attribute macros.",
675                     "default": true,
676                     "type": "boolean"
677                 },
678                 "rust-analyzer.files.watcher": {
679                     "markdownDescription": "Controls file watching implementation.",
680                     "default": "client",
681                     "type": "string"
682                 },
683                 "rust-analyzer.files.excludeDirs": {
684                     "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`.",
685                     "default": [],
686                     "type": "array",
687                     "items": {
688                         "type": "string"
689                     }
690                 },
691                 "rust-analyzer.highlightRelated.references": {
692                     "markdownDescription": "Enables highlighting of related references while hovering your mouse above any identifier.",
693                     "default": true,
694                     "type": "boolean"
695                 },
696                 "rust-analyzer.highlightRelated.exitPoints": {
697                     "markdownDescription": "Enables highlighting of all exit points while hovering your mouse above any `return`, `?`, or return type arrow (`->`).",
698                     "default": true,
699                     "type": "boolean"
700                 },
701                 "rust-analyzer.highlightRelated.breakPoints": {
702                     "markdownDescription": "Enables highlighting of related references while hovering your mouse `break`, `loop`, `while`, or `for` keywords.",
703                     "default": true,
704                     "type": "boolean"
705                 },
706                 "rust-analyzer.highlightRelated.yieldPoints": {
707                     "markdownDescription": "Enables highlighting of all break points for a loop or block context while hovering your mouse above any `async` or `await` keywords.",
708                     "default": true,
709                     "type": "boolean"
710                 },
711                 "rust-analyzer.highlighting.strings": {
712                     "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.",
713                     "default": true,
714                     "type": "boolean"
715                 },
716                 "rust-analyzer.hover.documentation": {
717                     "markdownDescription": "Whether to show documentation on hover.",
718                     "default": true,
719                     "type": "boolean"
720                 },
721                 "rust-analyzer.hover.linksInHover": {
722                     "markdownDescription": "Use markdown syntax for links in hover.",
723                     "default": true,
724                     "type": "boolean"
725                 },
726                 "rust-analyzer.hoverActions.debug": {
727                     "markdownDescription": "Whether to show `Debug` action. Only applies when\n`#rust-analyzer.hoverActions.enable#` is set.",
728                     "default": true,
729                     "type": "boolean"
730                 },
731                 "rust-analyzer.hoverActions.enable": {
732                     "markdownDescription": "Whether to show HoverActions in Rust files.",
733                     "default": true,
734                     "type": "boolean"
735                 },
736                 "rust-analyzer.hoverActions.gotoTypeDef": {
737                     "markdownDescription": "Whether to show `Go to Type Definition` action. Only applies when\n`#rust-analyzer.hoverActions.enable#` is set.",
738                     "default": true,
739                     "type": "boolean"
740                 },
741                 "rust-analyzer.hoverActions.implementations": {
742                     "markdownDescription": "Whether to show `Implementations` action. Only applies when\n`#rust-analyzer.hoverActions.enable#` is set.",
743                     "default": true,
744                     "type": "boolean"
745                 },
746                 "rust-analyzer.hoverActions.references": {
747                     "markdownDescription": "Whether to show `References` action. Only applies when\n`#rust-analyzer.hoverActions.enable#` is set.",
748                     "default": false,
749                     "type": "boolean"
750                 },
751                 "rust-analyzer.hoverActions.run": {
752                     "markdownDescription": "Whether to show `Run` action. Only applies when\n`#rust-analyzer.hoverActions.enable#` is set.",
753                     "default": true,
754                     "type": "boolean"
755                 },
756                 "rust-analyzer.inlayHints.chainingHints": {
757                     "markdownDescription": "Whether to show inlay type hints for method chains.",
758                     "default": true,
759                     "type": "boolean"
760                 },
761                 "rust-analyzer.inlayHints.maxLength": {
762                     "markdownDescription": "Maximum length for inlay hints. Set to null to have an unlimited length.",
763                     "default": 25,
764                     "type": [
765                         "null",
766                         "integer"
767                     ],
768                     "minimum": 0
769                 },
770                 "rust-analyzer.inlayHints.parameterHints": {
771                     "markdownDescription": "Whether to show function parameter name inlay hints at the call\nsite.",
772                     "default": true,
773                     "type": "boolean"
774                 },
775                 "rust-analyzer.inlayHints.typeHints": {
776                     "markdownDescription": "Whether to show inlay type hints for variables.",
777                     "default": true,
778                     "type": "boolean"
779                 },
780                 "rust-analyzer.inlayHints.hideNamedConstructorHints": {
781                     "markdownDescription": "Whether to hide inlay hints for constructors.",
782                     "default": false,
783                     "type": "boolean"
784                 },
785                 "rust-analyzer.joinLines.joinElseIf": {
786                     "markdownDescription": "Join lines inserts else between consecutive ifs.",
787                     "default": true,
788                     "type": "boolean"
789                 },
790                 "rust-analyzer.joinLines.removeTrailingComma": {
791                     "markdownDescription": "Join lines removes trailing commas.",
792                     "default": true,
793                     "type": "boolean"
794                 },
795                 "rust-analyzer.joinLines.unwrapTrivialBlock": {
796                     "markdownDescription": "Join lines unwraps trivial blocks.",
797                     "default": true,
798                     "type": "boolean"
799                 },
800                 "rust-analyzer.joinLines.joinAssignments": {
801                     "markdownDescription": "Join lines merges consecutive declaration and initialization of an assignment.",
802                     "default": true,
803                     "type": "boolean"
804                 },
805                 "rust-analyzer.lens.debug": {
806                     "markdownDescription": "Whether to show `Debug` lens. Only applies when\n`#rust-analyzer.lens.enable#` is set.",
807                     "default": true,
808                     "type": "boolean"
809                 },
810                 "rust-analyzer.lens.enable": {
811                     "markdownDescription": "Whether to show CodeLens in Rust files.",
812                     "default": true,
813                     "type": "boolean"
814                 },
815                 "rust-analyzer.lens.implementations": {
816                     "markdownDescription": "Whether to show `Implementations` lens. Only applies when\n`#rust-analyzer.lens.enable#` is set.",
817                     "default": true,
818                     "type": "boolean"
819                 },
820                 "rust-analyzer.lens.run": {
821                     "markdownDescription": "Whether to show `Run` lens. Only applies when\n`#rust-analyzer.lens.enable#` is set.",
822                     "default": true,
823                     "type": "boolean"
824                 },
825                 "rust-analyzer.lens.methodReferences": {
826                     "markdownDescription": "Whether to show `Method References` lens. Only applies when\n`#rust-analyzer.lens.enable#` is set.",
827                     "default": false,
828                     "type": "boolean"
829                 },
830                 "rust-analyzer.lens.references": {
831                     "markdownDescription": "Whether to show `References` lens for Struct, Enum, Union and Trait.\nOnly applies when `#rust-analyzer.lens.enable#` is set.",
832                     "default": false,
833                     "type": "boolean"
834                 },
835                 "rust-analyzer.lens.enumVariantReferences": {
836                     "markdownDescription": "Whether to show `References` lens for Enum Variants.\nOnly applies when `#rust-analyzer.lens.enable#` is set.",
837                     "default": false,
838                     "type": "boolean"
839                 },
840                 "rust-analyzer.lens.forceCustomCommands": {
841                     "markdownDescription": "Internal config: use custom client-side commands even when the\nclient doesn't set the corresponding capability.",
842                     "default": true,
843                     "type": "boolean"
844                 },
845                 "rust-analyzer.linkedProjects": {
846                     "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.",
847                     "default": [],
848                     "type": "array",
849                     "items": {
850                         "type": [
851                             "string",
852                             "object"
853                         ]
854                     }
855                 },
856                 "rust-analyzer.lruCapacity": {
857                     "markdownDescription": "Number of syntax trees rust-analyzer keeps in memory. Defaults to 128.",
858                     "default": null,
859                     "type": [
860                         "null",
861                         "integer"
862                     ],
863                     "minimum": 0
864                 },
865                 "rust-analyzer.notifications.cargoTomlNotFound": {
866                     "markdownDescription": "Whether to show `can't find Cargo.toml` error message.",
867                     "default": true,
868                     "type": "boolean"
869                 },
870                 "rust-analyzer.procMacro.enable": {
871                     "markdownDescription": "Enable support for procedural macros, implies `#rust-analyzer.cargo.runBuildScripts#`.",
872                     "default": true,
873                     "type": "boolean"
874                 },
875                 "rust-analyzer.procMacro.server": {
876                     "markdownDescription": "Internal config, path to proc-macro server executable (typically,\nthis is rust-analyzer itself, but we override this in tests).",
877                     "default": null,
878                     "type": [
879                         "null",
880                         "string"
881                     ]
882                 },
883                 "rust-analyzer.runnables.overrideCargo": {
884                     "markdownDescription": "Command to be executed instead of 'cargo' for runnables.",
885                     "default": null,
886                     "type": [
887                         "null",
888                         "string"
889                     ]
890                 },
891                 "rust-analyzer.runnables.cargoExtraArgs": {
892                     "markdownDescription": "Additional arguments to be passed to cargo for runnables such as\ntests or binaries. For example, it may be `--release`.",
893                     "default": [],
894                     "type": "array",
895                     "items": {
896                         "type": "string"
897                     }
898                 },
899                 "rust-analyzer.rustcSource": {
900                     "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.",
901                     "default": null,
902                     "type": [
903                         "null",
904                         "string"
905                     ]
906                 },
907                 "rust-analyzer.rustfmt.extraArgs": {
908                     "markdownDescription": "Additional arguments to `rustfmt`.",
909                     "default": [],
910                     "type": "array",
911                     "items": {
912                         "type": "string"
913                     }
914                 },
915                 "rust-analyzer.rustfmt.overrideCommand": {
916                     "markdownDescription": "Advanced option, fully override the command rust-analyzer uses for\nformatting.",
917                     "default": null,
918                     "type": [
919                         "null",
920                         "array"
921                     ],
922                     "items": {
923                         "type": "string"
924                     }
925                 },
926                 "rust-analyzer.rustfmt.enableRangeFormatting": {
927                     "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.",
928                     "default": false,
929                     "type": "boolean"
930                 },
931                 "rust-analyzer.workspace.symbol.search.scope": {
932                     "markdownDescription": "Workspace symbol search scope.",
933                     "default": "workspace",
934                     "type": "string",
935                     "enum": [
936                         "workspace",
937                         "workspace_and_dependencies"
938                     ],
939                     "enumDescriptions": [
940                         "Search in current workspace only",
941                         "Search in current workspace and dependencies"
942                     ]
943                 },
944                 "rust-analyzer.workspace.symbol.search.kind": {
945                     "markdownDescription": "Workspace symbol search kind.",
946                     "default": "only_types",
947                     "type": "string",
948                     "enum": [
949                         "only_types",
950                         "all_symbols"
951                     ],
952                     "enumDescriptions": [
953                         "Search for types only",
954                         "Search for all symbols kinds"
955                     ]
956                 },
957                 "$generated-end": {}
958             }
959         },
960         "problemPatterns": [
961             {
962                 "name": "rustc",
963                 "patterns": [
964                     {
965                         "regexp": "^(warning|warn|error)(?:\\[(.*?)\\])?: (.*)$",
966                         "severity": 1,
967                         "code": 2,
968                         "message": 3
969                     },
970                     {
971                         "regexp": "^[\\s->=]*(.*?):(\\d*):(\\d*)\\s*$",
972                         "file": 1,
973                         "line": 2,
974                         "column": 3
975                     }
976                 ]
977             },
978             {
979                 "name": "rustc-json",
980                 "patterns": [
981                     {
982                         "regexp": "^.*\"message\":{\"message\":\"([^\"]*).*?\"file_name\":\"([^\"]+).*?\"line_start\":(\\d+).*?\"line_end\":(\\d+).*?\"column_start\":(\\d+).*?\"column_end\":(\\d+).*}$",
983                         "message": 1,
984                         "file": 2,
985                         "line": 3,
986                         "endLine": 4,
987                         "column": 5,
988                         "endColumn": 6
989                     }
990                 ]
991             }
992         ],
993         "languages": [
994             {
995                 "id": "ra_syntax_tree",
996                 "extensions": [
997                     ".rast"
998                 ]
999             },
1000             {
1001                 "id": "rust",
1002                 "extensions": [
1003                     ".rs"
1004                 ],
1005                 "aliases": [
1006                     "Rust",
1007                     "rs"
1008                 ],
1009                 "configuration": "language-configuration.json"
1010             }
1011         ],
1012         "grammars": [
1013             {
1014                 "language": "ra_syntax_tree",
1015                 "scopeName": "source.ra_syntax_tree",
1016                 "path": "ra_syntax_tree.tmGrammar.json"
1017             }
1018         ],
1019         "problemMatchers": [
1020             {
1021                 "name": "rustc",
1022                 "owner": "rustc",
1023                 "source": "rustc",
1024                 "fileLocation": [
1025                     "autoDetect",
1026                     "${workspaceRoot}"
1027                 ],
1028                 "pattern": "$rustc"
1029             },
1030             {
1031                 "name": "rustc-json",
1032                 "owner": "rustc",
1033                 "source": "rustc",
1034                 "fileLocation": [
1035                     "autoDetect",
1036                     "${workspaceRoot}"
1037                 ],
1038                 "pattern": "$rustc-json"
1039             },
1040             {
1041                 "name": "rustc-watch",
1042                 "owner": "rustc",
1043                 "source": "rustc",
1044                 "fileLocation": [
1045                     "autoDetect",
1046                     "${workspaceRoot}"
1047                 ],
1048                 "background": {
1049                     "beginsPattern": "^\\[Running\\b",
1050                     "endsPattern": "^\\[Finished running\\b"
1051                 },
1052                 "pattern": "$rustc"
1053             }
1054         ],
1055         "colors": [
1056             {
1057                 "id": "rust_analyzer.inlayHints.foreground",
1058                 "description": "Foreground color of inlay hints (is overriden by more specific rust_analyzer.inlayHints.foreground.* configurations)",
1059                 "defaults": {
1060                     "dark": "#A0A0A0F0",
1061                     "light": "#747474",
1062                     "highContrast": "#BEBEBE"
1063                 }
1064             },
1065             {
1066                 "id": "rust_analyzer.inlayHints.background",
1067                 "description": "Background color of inlay hints (is overriden by more specific rust_analyzer.inlayHints.background.* configurations)",
1068                 "defaults": {
1069                     "dark": "#11223300",
1070                     "light": "#11223300",
1071                     "highContrast": "#11223300"
1072                 }
1073             },
1074             {
1075                 "id": "rust_analyzer.inlayHints.foreground.typeHints",
1076                 "description": "Foreground color of inlay type hints for variables (overrides rust_analyzer.inlayHints.foreground)",
1077                 "defaults": {
1078                     "dark": "rust_analyzer.inlayHints.foreground",
1079                     "light": "rust_analyzer.inlayHints.foreground",
1080                     "highContrast": "rust_analyzer.inlayHints.foreground"
1081                 }
1082             },
1083             {
1084                 "id": "rust_analyzer.inlayHints.foreground.chainingHints",
1085                 "description": "Foreground color of inlay type hints for method chains (overrides rust_analyzer.inlayHints.foreground)",
1086                 "defaults": {
1087                     "dark": "rust_analyzer.inlayHints.foreground",
1088                     "light": "rust_analyzer.inlayHints.foreground",
1089                     "highContrast": "rust_analyzer.inlayHints.foreground"
1090                 }
1091             },
1092             {
1093                 "id": "rust_analyzer.inlayHints.foreground.parameterHints",
1094                 "description": "Foreground color of function parameter name inlay hints at the call site (overrides rust_analyzer.inlayHints.foreground)",
1095                 "defaults": {
1096                     "dark": "rust_analyzer.inlayHints.foreground",
1097                     "light": "rust_analyzer.inlayHints.foreground",
1098                     "highContrast": "rust_analyzer.inlayHints.foreground"
1099                 }
1100             },
1101             {
1102                 "id": "rust_analyzer.inlayHints.background.typeHints",
1103                 "description": "Background color of inlay type hints for variables (overrides rust_analyzer.inlayHints.background)",
1104                 "defaults": {
1105                     "dark": "rust_analyzer.inlayHints.background",
1106                     "light": "rust_analyzer.inlayHints.background",
1107                     "highContrast": "rust_analyzer.inlayHints.background"
1108                 }
1109             },
1110             {
1111                 "id": "rust_analyzer.inlayHints.background.chainingHints",
1112                 "description": "Background color of inlay type hints for method chains (overrides rust_analyzer.inlayHints.background)",
1113                 "defaults": {
1114                     "dark": "rust_analyzer.inlayHints.background",
1115                     "light": "rust_analyzer.inlayHints.background",
1116                     "highContrast": "rust_analyzer.inlayHints.background"
1117                 }
1118             },
1119             {
1120                 "id": "rust_analyzer.inlayHints.background.parameterHints",
1121                 "description": "Background color of function parameter name inlay hints at the call site (overrides rust_analyzer.inlayHints.background)",
1122                 "defaults": {
1123                     "dark": "rust_analyzer.inlayHints.background",
1124                     "light": "rust_analyzer.inlayHints.background",
1125                     "highContrast": "rust_analyzer.inlayHints.background"
1126                 }
1127             },
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": "operator",
1245                 "description": "Style for operators",
1246                 "superType": "punctuation"
1247             },
1248             {
1249                 "id": "parenthesis",
1250                 "description": "Style for ( or )",
1251                 "superType": "punctuation"
1252             },
1253             {
1254                 "id": "punctuation",
1255                 "description": "Style for generic punctuation"
1256             },
1257             {
1258                 "id": "selfKeyword",
1259                 "description": "Style for the self keyword",
1260                 "superType": "keyword"
1261             },
1262             {
1263                 "id": "semicolon",
1264                 "description": "Style for ;",
1265                 "superType": "punctuation"
1266             },
1267             {
1268                 "id": "typeAlias",
1269                 "description": "Style for type aliases",
1270                 "superType": "type"
1271             },
1272             {
1273                 "id": "union",
1274                 "description": "Style for C-style untagged unions",
1275                 "superType": "type"
1276             },
1277             {
1278                 "id": "unresolvedReference",
1279                 "description": "Style for names which can not be resolved due to compilation errors"
1280             }
1281         ],
1282         "semanticTokenModifiers": [
1283             {
1284                 "id": "async",
1285                 "description": "Style for async functions and the `async` and `await` keywords"
1286             },
1287             {
1288                 "id": "attribute",
1289                 "description": "Style for elements within attributes"
1290             },
1291             {
1292                 "id": "callable",
1293                 "description": "Style for locals whose types implements one of the `Fn*` traits"
1294             },
1295             {
1296                 "id": "constant",
1297                 "description": "Style for compile-time constants"
1298             },
1299             {
1300                 "id": "consuming",
1301                 "description": "Style for locals that are being consumed when use in a function call"
1302             },
1303             {
1304                 "id": "controlFlow",
1305                 "description": "Style for control-flow related tokens, this includes the `?` operator"
1306             },
1307             {
1308                 "id": "crateRoot",
1309                 "description": "Style for names resolving to a crate root"
1310             },
1311             {
1312                 "id": "injected",
1313                 "description": "Style for doc-string injected highlighting like rust source blocks in documentation"
1314             },
1315             {
1316                 "id": "intraDocLink",
1317                 "description": "Style for intra doc links in doc-strings"
1318             },
1319             {
1320                 "id": "library",
1321                 "description": "Style for items that are defined outside of the current crate"
1322             },
1323             {
1324                 "id": "mutable",
1325                 "description": "Style for mutable locals and statics as well as functions taking `&mut self`"
1326             },
1327             {
1328                 "id": "public",
1329                 "description": "Style tems that are from the current crate and are `pub`"
1330             },
1331             {
1332                 "id": "reference",
1333                 "description": "Style for locals behind a reference and functions taking `self` by reference"
1334             },
1335             {
1336                 "id": "trait",
1337                 "description": "Style for associated trait items"
1338             },
1339             {
1340                 "id": "unsafe",
1341                 "description": "Style for unsafe operations, like unsafe function calls, as well as the `unsafe` token"
1342             }
1343         ],
1344         "semanticTokenScopes": [
1345             {
1346                 "language": "rust",
1347                 "scopes": {
1348                     "attribute": [
1349                         "meta.attribute.rust"
1350                     ],
1351                     "boolean": [
1352                         "constant.language.boolean.rust"
1353                     ],
1354                     "builtinType": [
1355                         "support.type.primitive.rust"
1356                     ],
1357                     "constParameter": [
1358                         "constant.other.caps.rust"
1359                     ],
1360                     "enum": [
1361                         "entity.name.type.enum.rust"
1362                     ],
1363                     "formatSpecifier": [
1364                         "punctuation.section.embedded.rust"
1365                     ],
1366                     "function": [
1367                         "entity.name.function.rust"
1368                     ],
1369                     "interface": [
1370                         "entity.name.type.trait.rust"
1371                     ],
1372                     "keyword": [
1373                         "keyword.other.rust"
1374                     ],
1375                     "keyword.controlFlow": [
1376                         "keyword.control.rust"
1377                     ],
1378                     "lifetime": [
1379                         "storage.modifier.lifetime.rust"
1380                     ],
1381                     "method": [
1382                         "entity.name.function.rust"
1383                     ],
1384                     "struct": [
1385                         "entity.name.type.struct.rust"
1386                     ],
1387                     "typeAlias": [
1388                         "entity.name.type.declaration.rust"
1389                     ],
1390                     "union": [
1391                         "entity.name.type.union.rust"
1392                     ],
1393                     "variable": [
1394                         "variable.other.rust"
1395                     ],
1396                     "variable.constant": [
1397                         "variable.other.constant.rust"
1398                     ],
1399                     "*.mutable": [
1400                         "markup.underline"
1401                     ]
1402                 }
1403             }
1404         ],
1405         "menus": {
1406             "commandPalette": [
1407                 {
1408                     "command": "rust-analyzer.syntaxTree",
1409                     "when": "inRustProject"
1410                 },
1411                 {
1412                     "command": "rust-analyzer.viewHir",
1413                     "when": "inRustProject"
1414                 },
1415                 {
1416                     "command": "rust-analyzer.expandMacro",
1417                     "when": "inRustProject"
1418                 },
1419                 {
1420                     "command": "rust-analyzer.matchingBrace",
1421                     "when": "inRustProject"
1422                 },
1423                 {
1424                     "command": "rust-analyzer.parentModule",
1425                     "when": "inRustProject"
1426                 },
1427                 {
1428                     "command": "rust-analyzer.joinLines",
1429                     "when": "inRustProject"
1430                 },
1431                 {
1432                     "command": "rust-analyzer.run",
1433                     "when": "inRustProject"
1434                 },
1435                 {
1436                     "command": "rust-analyzer.debug",
1437                     "when": "inRustProject"
1438                 },
1439                 {
1440                     "command": "rust-analyzer.newDebugConfig",
1441                     "when": "inRustProject"
1442                 },
1443                 {
1444                     "command": "rust-analyzer.analyzerStatus",
1445                     "when": "inRustProject"
1446                 },
1447                 {
1448                     "command": "rust-analyzer.memoryUsage",
1449                     "when": "inRustProject"
1450                 },
1451                 {
1452                     "command": "rust-analyzer.reloadWorkspace",
1453                     "when": "inRustProject"
1454                 },
1455                 {
1456                     "command": "rust-analyzer.reload",
1457                     "when": "inRustProject"
1458                 },
1459                 {
1460                     "command": "rust-analyzer.updateGithubToken",
1461                     "when": "inRustProject"
1462                 },
1463                 {
1464                     "command": "rust-analyzer.onEnter",
1465                     "when": "inRustProject"
1466                 },
1467                 {
1468                     "command": "rust-analyzer.ssr",
1469                     "when": "inRustProject"
1470                 },
1471                 {
1472                     "command": "rust-analyzer.serverVersion",
1473                     "when": "inRustProject"
1474                 },
1475                 {
1476                     "command": "rust-analyzer.toggleInlayHints",
1477                     "when": "inRustProject"
1478                 },
1479                 {
1480                     "command": "rust-analyzer.openDocs",
1481                     "when": "inRustProject"
1482                 },
1483                 {
1484                     "command": "rust-analyzer.openCargoToml",
1485                     "when": "inRustProject"
1486                 }
1487             ],
1488             "editor/context": [
1489                 {
1490                     "command": "rust-analyzer.peekTests",
1491                     "when": "inRustProject",
1492                     "group": "navigation@1000"
1493                 }
1494             ]
1495         }
1496     }
1497 }