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