]> git.lizzy.rs Git - rust.git/blob - editors/code/package.json
Merge #9764
[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.57.0"
25     },
26     "enableProposedApi": true,
27     "scripts": {
28         "vscode:prepublish": "tsc && rollup -c",
29         "package": "vsce package -o rust-analyzer.vsix",
30         "build": "tsc",
31         "watch": "tsc --watch",
32         "lint": "tsfmt --verify && eslint -c .eslintrc.js --ext ts ./src ./tests",
33         "fix": " tsfmt -r       && eslint -c .eslintrc.js --ext ts ./src ./tests --fix",
34         "pretest": "npm run build",
35         "test": "node ./out/tests/runTests.js"
36     },
37     "dependencies": {
38         "https-proxy-agent": "^5.0.0",
39         "node-fetch": "^2.6.1",
40         "vscode-languageclient": "^7.1.0-next.5"
41     },
42     "devDependencies": {
43         "@rollup/plugin-commonjs": "^17.0.0",
44         "@rollup/plugin-node-resolve": "^13.0.0",
45         "@types/glob": "^7.1.4",
46         "@types/mocha": "^8.2.3",
47         "@types/node": "~14.17.5",
48         "@types/node-fetch": "^2.5.11",
49         "@types/vscode": "^1.57.0",
50         "@typescript-eslint/eslint-plugin": "^4.28.2",
51         "@typescript-eslint/parser": "^4.28.2",
52         "eslint": "^7.30.0",
53         "glob": "^7.1.6",
54         "mocha": "^9.0.2",
55         "rollup": "^2.51.1",
56         "tslib": "^2.3.0",
57         "typescript": "^4.3.5",
58         "typescript-formatter": "^7.2.2",
59         "vsce": "^1.95.1",
60         "vscode-test": "^1.5.1"
61     },
62     "activationEvents": [
63         "onLanguage:rust",
64         "onCommand:rust-analyzer.analyzerStatus",
65         "onCommand:rust-analyzer.memoryUsage",
66         "onCommand:rust-analyzer.reloadWorkspace",
67         "workspaceContains:**/Cargo.toml"
68     ],
69     "main": "./out/src/main",
70     "contributes": {
71         "taskDefinitions": [
72             {
73                 "type": "cargo",
74                 "required": [
75                     "command"
76                 ],
77                 "properties": {
78                     "label": {
79                         "type": "string"
80                     },
81                     "command": {
82                         "type": "string"
83                     },
84                     "args": {
85                         "type": "array",
86                         "items": {
87                             "type": "string"
88                         }
89                     },
90                     "env": {
91                         "type": "object",
92                         "patternProperties": {
93                             ".+": {
94                                 "type": "string"
95                             }
96                         }
97                     }
98                 }
99             }
100         ],
101         "commands": [
102             {
103                 "command": "rust-analyzer.syntaxTree",
104                 "title": "Show Syntax Tree",
105                 "category": "Rust Analyzer"
106             },
107             {
108                 "command": "rust-analyzer.viewHir",
109                 "title": "View Hir",
110                 "category": "Rust Analyzer"
111             },
112             {
113                 "command": "rust-analyzer.viewItemTree",
114                 "title": "Debug ItemTree",
115                 "category": "Rust Analyzer"
116             },
117             {
118                 "command": "rust-analyzer.viewCrateGraph",
119                 "title": "View Crate Graph",
120                 "category": "Rust Analyzer"
121             },
122             {
123                 "command": "rust-analyzer.viewFullCrateGraph",
124                 "title": "View Crate Graph (Full)",
125                 "category": "Rust Analyzer"
126             },
127             {
128                 "command": "rust-analyzer.expandMacro",
129                 "title": "Expand macro recursively",
130                 "category": "Rust Analyzer"
131             },
132             {
133                 "command": "rust-analyzer.matchingBrace",
134                 "title": "Find matching brace",
135                 "category": "Rust Analyzer"
136             },
137             {
138                 "command": "rust-analyzer.parentModule",
139                 "title": "Locate parent module",
140                 "category": "Rust Analyzer"
141             },
142             {
143                 "command": "rust-analyzer.joinLines",
144                 "title": "Join lines",
145                 "category": "Rust Analyzer"
146             },
147             {
148                 "command": "rust-analyzer.run",
149                 "title": "Run",
150                 "category": "Rust Analyzer"
151             },
152             {
153                 "command": "rust-analyzer.copyRunCommandLine",
154                 "title": "Copy Run Command Line",
155                 "category": "Rust Analyzer"
156             },
157             {
158                 "command": "rust-analyzer.debug",
159                 "title": "Debug",
160                 "category": "Rust Analyzer"
161             },
162             {
163                 "command": "rust-analyzer.newDebugConfig",
164                 "title": "Generate launch configuration",
165                 "category": "Rust Analyzer"
166             },
167             {
168                 "command": "rust-analyzer.analyzerStatus",
169                 "title": "Status",
170                 "category": "Rust Analyzer"
171             },
172             {
173                 "command": "rust-analyzer.memoryUsage",
174                 "title": "Memory Usage (Clears Database)",
175                 "category": "Rust Analyzer"
176             },
177             {
178                 "command": "rust-analyzer.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.updates.channel": {
307                     "type": "string",
308                     "enum": [
309                         "stable",
310                         "nightly"
311                     ],
312                     "default": "stable",
313                     "markdownEnumDescriptions": [
314                         "`stable` updates are shipped weekly, they don't contain cutting-edge features from VSCode proposed APIs but have less bugs in general.",
315                         "`nightly` updates are shipped daily (extension updates automatically by downloading artifacts directly from GitHub), they contain cutting-edge features and latest bug fixes. These releases help us get your feedback very quickly and speed up rust-analyzer development **drastically**."
316                     ],
317                     "markdownDescription": "Choose `nightly` updates to get the latest features and bug fixes every day. While `stable` releases occur weekly and don't contain cutting-edge features from VSCode proposed APIs."
318                 },
319                 "rust-analyzer.updates.askBeforeDownload": {
320                     "type": "boolean",
321                     "default": false,
322                     "description": "Whether to ask for permission before downloading any files from the Internet."
323                 },
324                 "rust-analyzer.server.path": {
325                     "type": [
326                         "null",
327                         "string"
328                     ],
329                     "scope": "machine-overridable",
330                     "default": null,
331                     "markdownDescription": "Path to rust-analyzer executable (points to bundled binary by default). If this is set, then `#rust-analyzer.updates.channel#` setting is not used"
332                 },
333                 "rust-analyzer.server.extraEnv": {
334                     "type": [
335                         "null",
336                         "object"
337                     ],
338                     "default": null,
339                     "markdownDescription": "Extra environment variables that will be passed to the rust-analyzer executable. Useful for passing e.g. `RA_LOG` for debugging."
340                 },
341                 "rust-analyzer.trace.server": {
342                     "type": "string",
343                     "scope": "window",
344                     "enum": [
345                         "off",
346                         "messages",
347                         "verbose"
348                     ],
349                     "enumDescriptions": [
350                         "No traces",
351                         "Error only",
352                         "Full log"
353                     ],
354                     "default": "off",
355                     "description": "Trace requests to the rust-analyzer (this is usually overly verbose and not recommended for regular users)."
356                 },
357                 "rust-analyzer.trace.extension": {
358                     "description": "Enable logging of VS Code extensions itself.",
359                     "type": "boolean",
360                     "default": false
361                 },
362                 "rust-analyzer.debug.engine": {
363                     "type": "string",
364                     "enum": [
365                         "auto",
366                         "vadimcn.vscode-lldb",
367                         "ms-vscode.cpptools"
368                     ],
369                     "default": "auto",
370                     "description": "Preferred debug engine.",
371                     "markdownEnumDescriptions": [
372                         "First try to use [CodeLLDB](https://marketplace.visualstudio.com/items?itemName=vadimcn.vscode-lldb), if it's not installed try to use [MS C++ tools](https://marketplace.visualstudio.com/items?itemName=ms-vscode.cpptools).",
373                         "Use [CodeLLDB](https://marketplace.visualstudio.com/items?itemName=vadimcn.vscode-lldb)",
374                         "Use [MS C++ tools](https://marketplace.visualstudio.com/items?itemName=ms-vscode.cpptools)"
375                     ]
376                 },
377                 "rust-analyzer.debug.sourceFileMap": {
378                     "type": [
379                         "object",
380                         "string"
381                     ],
382                     "const": "auto",
383                     "description": "Optional source file mappings passed to the debug engine.",
384                     "default": {
385                         "/rustc/<id>": "${env:USERPROFILE}/.rustup/toolchains/<toolchain-id>/lib/rustlib/src/rust"
386                     }
387                 },
388                 "rust-analyzer.debug.openDebugPane": {
389                     "markdownDescription": "Whether to open up the `Debug Panel` on debugging start.",
390                     "type": "boolean",
391                     "default": false
392                 },
393                 "rust-analyzer.debug.engineSettings": {
394                     "type": "object",
395                     "default": {},
396                     "markdownDescription": "Optional settings passed to the debug engine. Example: `{ \"lldb\": { \"terminal\":\"external\"} }`"
397                 },
398                 "$generated-start": {},
399                 "rust-analyzer.assist.importGranularity": {
400                     "markdownDescription": "How imports should be grouped into use statements.",
401                     "default": "crate",
402                     "type": "string",
403                     "enum": [
404                         "preserve",
405                         "crate",
406                         "module",
407                         "item"
408                     ],
409                     "enumDescriptions": [
410                         "Do not change the granularity of any imports and preserve the original structure written by the developer.",
411                         "Merge imports from the same crate into a single use statement. Conversely, imports from different crates are split into separate statements.",
412                         "Merge imports from the same module into a single use statement. Conversely, imports from different modules are split into separate statements.",
413                         "Flatten imports so that each has its own use statement."
414                     ]
415                 },
416                 "rust-analyzer.assist.importEnforceGranularity": {
417                     "markdownDescription": "Whether to enforce the import granularity setting for all files. If set to false rust-analyzer will try to keep import styles consistent per file.",
418                     "default": false,
419                     "type": "boolean"
420                 },
421                 "rust-analyzer.assist.importPrefix": {
422                     "markdownDescription": "The path structure for newly inserted paths to use.",
423                     "default": "plain",
424                     "type": "string",
425                     "enum": [
426                         "plain",
427                         "self",
428                         "crate"
429                     ],
430                     "enumDescriptions": [
431                         "Insert import paths relative to the current module, using up to one `super` prefix if the parent module contains the requested item.",
432                         "Insert import paths relative to the current module, using up to one `super` prefix if the parent module contains the requested item. Prefixes `self` in front of the path if it starts with a module.",
433                         "Force import paths to be absolute by always starting them with `crate` or the extern crate name they come from."
434                     ]
435                 },
436                 "rust-analyzer.assist.importGroup": {
437                     "markdownDescription": "Group inserted imports by the [following order](https://rust-analyzer.github.io/manual.html#auto-import). Groups are separated by newlines.",
438                     "default": true,
439                     "type": "boolean"
440                 },
441                 "rust-analyzer.assist.allowMergingIntoGlobImports": {
442                     "markdownDescription": "Whether to allow import insertion to merge new imports into single path glob imports like `use std::fmt::*;`.",
443                     "default": true,
444                     "type": "boolean"
445                 },
446                 "rust-analyzer.callInfo.full": {
447                     "markdownDescription": "Show function name and docs in parameter hints.",
448                     "default": true,
449                     "type": "boolean"
450                 },
451                 "rust-analyzer.cargo.autoreload": {
452                     "markdownDescription": "Automatically refresh project info via `cargo metadata` on\n`Cargo.toml` changes.",
453                     "default": true,
454                     "type": "boolean"
455                 },
456                 "rust-analyzer.cargo.allFeatures": {
457                     "markdownDescription": "Activate all available features (`--all-features`).",
458                     "default": false,
459                     "type": "boolean"
460                 },
461                 "rust-analyzer.cargo.unsetTest": {
462                     "markdownDescription": "Unsets `#[cfg(test)]` for the specified crates.",
463                     "default": [
464                         "core"
465                     ],
466                     "type": "array",
467                     "items": {
468                         "type": "string"
469                     }
470                 },
471                 "rust-analyzer.cargo.features": {
472                     "markdownDescription": "List of features to activate.",
473                     "default": [],
474                     "type": "array",
475                     "items": {
476                         "type": "string"
477                     }
478                 },
479                 "rust-analyzer.cargo.runBuildScripts": {
480                     "markdownDescription": "Run build scripts (`build.rs`) for more precise code analysis.",
481                     "default": true,
482                     "type": "boolean"
483                 },
484                 "rust-analyzer.cargo.useRustcWrapperForBuildScripts": {
485                     "markdownDescription": "Use `RUSTC_WRAPPER=rust-analyzer` when running build scripts to\navoid compiling unnecessary things.",
486                     "default": true,
487                     "type": "boolean"
488                 },
489                 "rust-analyzer.cargo.noDefaultFeatures": {
490                     "markdownDescription": "Do not activate the `default` feature.",
491                     "default": false,
492                     "type": "boolean"
493                 },
494                 "rust-analyzer.cargo.target": {
495                     "markdownDescription": "Compilation target (target triple).",
496                     "default": null,
497                     "type": [
498                         "null",
499                         "string"
500                     ]
501                 },
502                 "rust-analyzer.cargo.noSysroot": {
503                     "markdownDescription": "Internal config for debugging, disables loading of sysroot crates.",
504                     "default": false,
505                     "type": "boolean"
506                 },
507                 "rust-analyzer.checkOnSave.enable": {
508                     "markdownDescription": "Run specified `cargo check` command for diagnostics on save.",
509                     "default": true,
510                     "type": "boolean"
511                 },
512                 "rust-analyzer.checkOnSave.allFeatures": {
513                     "markdownDescription": "Check with all features (`--all-features`).\nDefaults to `#rust-analyzer.cargo.allFeatures#`.",
514                     "default": null,
515                     "type": [
516                         "null",
517                         "boolean"
518                     ]
519                 },
520                 "rust-analyzer.checkOnSave.allTargets": {
521                     "markdownDescription": "Check all targets and tests (`--all-targets`).",
522                     "default": true,
523                     "type": "boolean"
524                 },
525                 "rust-analyzer.checkOnSave.command": {
526                     "markdownDescription": "Cargo command to use for `cargo check`.",
527                     "default": "check",
528                     "type": "string"
529                 },
530                 "rust-analyzer.checkOnSave.noDefaultFeatures": {
531                     "markdownDescription": "Do not activate the `default` feature.",
532                     "default": null,
533                     "type": [
534                         "null",
535                         "boolean"
536                     ]
537                 },
538                 "rust-analyzer.checkOnSave.target": {
539                     "markdownDescription": "Check for a specific target. Defaults to\n`#rust-analyzer.cargo.target#`.",
540                     "default": null,
541                     "type": [
542                         "null",
543                         "string"
544                     ]
545                 },
546                 "rust-analyzer.checkOnSave.extraArgs": {
547                     "markdownDescription": "Extra arguments for `cargo check`.",
548                     "default": [],
549                     "type": "array",
550                     "items": {
551                         "type": "string"
552                     }
553                 },
554                 "rust-analyzer.checkOnSave.features": {
555                     "markdownDescription": "List of features to activate. Defaults to\n`#rust-analyzer.cargo.features#`.",
556                     "default": null,
557                     "type": [
558                         "null",
559                         "array"
560                     ],
561                     "items": {
562                         "type": "string"
563                     }
564                 },
565                 "rust-analyzer.checkOnSave.overrideCommand": {
566                     "markdownDescription": "Advanced option, fully override the command rust-analyzer uses for\nchecking. The command should include `--message-format=json` or\nsimilar option.",
567                     "default": null,
568                     "type": [
569                         "null",
570                         "array"
571                     ],
572                     "items": {
573                         "type": "string"
574                     }
575                 },
576                 "rust-analyzer.completion.addCallArgumentSnippets": {
577                     "markdownDescription": "Whether to add argument snippets when completing functions.\nOnly applies when `#rust-analyzer.completion.addCallParenthesis#` is set.",
578                     "default": true,
579                     "type": "boolean"
580                 },
581                 "rust-analyzer.completion.addCallParenthesis": {
582                     "markdownDescription": "Whether to add parenthesis when completing functions.",
583                     "default": true,
584                     "type": "boolean"
585                 },
586                 "rust-analyzer.completion.postfix.enable": {
587                     "markdownDescription": "Whether to show postfix snippets like `dbg`, `if`, `not`, etc.",
588                     "default": true,
589                     "type": "boolean"
590                 },
591                 "rust-analyzer.completion.autoimport.enable": {
592                     "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.",
593                     "default": true,
594                     "type": "boolean"
595                 },
596                 "rust-analyzer.completion.autoself.enable": {
597                     "markdownDescription": "Toggles the additional completions that automatically show method calls and field accesses\nwith `self` prefixed to them when inside a method.",
598                     "default": true,
599                     "type": "boolean"
600                 },
601                 "rust-analyzer.diagnostics.enable": {
602                     "markdownDescription": "Whether to show native rust-analyzer diagnostics.",
603                     "default": true,
604                     "type": "boolean"
605                 },
606                 "rust-analyzer.diagnostics.enableExperimental": {
607                     "markdownDescription": "Whether to show experimental rust-analyzer diagnostics that might\nhave more false positives than usual.",
608                     "default": true,
609                     "type": "boolean"
610                 },
611                 "rust-analyzer.diagnostics.disabled": {
612                     "markdownDescription": "List of rust-analyzer diagnostics to disable.",
613                     "default": [],
614                     "type": "array",
615                     "items": {
616                         "type": "string"
617                     },
618                     "uniqueItems": true
619                 },
620                 "rust-analyzer.diagnostics.remapPrefix": {
621                     "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`.",
622                     "default": {},
623                     "type": "object"
624                 },
625                 "rust-analyzer.diagnostics.warningsAsHint": {
626                     "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`.",
627                     "default": [],
628                     "type": "array",
629                     "items": {
630                         "type": "string"
631                     }
632                 },
633                 "rust-analyzer.diagnostics.warningsAsInfo": {
634                     "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`.",
635                     "default": [],
636                     "type": "array",
637                     "items": {
638                         "type": "string"
639                     }
640                 },
641                 "rust-analyzer.experimental.procAttrMacros": {
642                     "markdownDescription": "Expand attribute macros.",
643                     "default": false,
644                     "type": "boolean"
645                 },
646                 "rust-analyzer.files.watcher": {
647                     "markdownDescription": "Controls file watching implementation.",
648                     "default": "client",
649                     "type": "string"
650                 },
651                 "rust-analyzer.files.excludeDirs": {
652                     "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`.",
653                     "default": [],
654                     "type": "array",
655                     "items": {
656                         "type": "string"
657                     }
658                 },
659                 "rust-analyzer.highlightRelated.references": {
660                     "markdownDescription": "Enables highlighting of related references while hovering your mouse above any identifier.",
661                     "default": true,
662                     "type": "boolean"
663                 },
664                 "rust-analyzer.highlightRelated.exitPoints": {
665                     "markdownDescription": "Enables highlighting of all exit points while hovering your mouse above any `return`, `?`, or return type arrow (`->`).",
666                     "default": true,
667                     "type": "boolean"
668                 },
669                 "rust-analyzer.highlightRelated.breakPoints": {
670                     "markdownDescription": "Enables highlighting of related references while hovering your mouse `break`, `loop`, `while`, or `for` keywords.",
671                     "default": true,
672                     "type": "boolean"
673                 },
674                 "rust-analyzer.highlightRelated.yieldPoints": {
675                     "markdownDescription": "Enables highlighting of all break points for a loop or block context while hovering your mouse above any `async` or `await` keywords.",
676                     "default": true,
677                     "type": "boolean"
678                 },
679                 "rust-analyzer.highlighting.strings": {
680                     "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.",
681                     "default": true,
682                     "type": "boolean"
683                 },
684                 "rust-analyzer.hover.documentation": {
685                     "markdownDescription": "Whether to show documentation on hover.",
686                     "default": true,
687                     "type": "boolean"
688                 },
689                 "rust-analyzer.hover.linksInHover": {
690                     "markdownDescription": "Use markdown syntax for links in hover.",
691                     "default": true,
692                     "type": "boolean"
693                 },
694                 "rust-analyzer.hoverActions.debug": {
695                     "markdownDescription": "Whether to show `Debug` action. Only applies when\n`#rust-analyzer.hoverActions.enable#` is set.",
696                     "default": true,
697                     "type": "boolean"
698                 },
699                 "rust-analyzer.hoverActions.enable": {
700                     "markdownDescription": "Whether to show HoverActions in Rust files.",
701                     "default": true,
702                     "type": "boolean"
703                 },
704                 "rust-analyzer.hoverActions.gotoTypeDef": {
705                     "markdownDescription": "Whether to show `Go to Type Definition` action. Only applies when\n`#rust-analyzer.hoverActions.enable#` is set.",
706                     "default": true,
707                     "type": "boolean"
708                 },
709                 "rust-analyzer.hoverActions.implementations": {
710                     "markdownDescription": "Whether to show `Implementations` action. Only applies when\n`#rust-analyzer.hoverActions.enable#` is set.",
711                     "default": true,
712                     "type": "boolean"
713                 },
714                 "rust-analyzer.hoverActions.references": {
715                     "markdownDescription": "Whether to show `References` action. Only applies when\n`#rust-analyzer.hoverActions.enable#` is set.",
716                     "default": false,
717                     "type": "boolean"
718                 },
719                 "rust-analyzer.hoverActions.run": {
720                     "markdownDescription": "Whether to show `Run` action. Only applies when\n`#rust-analyzer.hoverActions.enable#` is set.",
721                     "default": true,
722                     "type": "boolean"
723                 },
724                 "rust-analyzer.inlayHints.chainingHints": {
725                     "markdownDescription": "Whether to show inlay type hints for method chains.",
726                     "default": true,
727                     "type": "boolean"
728                 },
729                 "rust-analyzer.inlayHints.maxLength": {
730                     "markdownDescription": "Maximum length for inlay hints. Set to null to have an unlimited length.",
731                     "default": 25,
732                     "type": [
733                         "null",
734                         "integer"
735                     ],
736                     "minimum": 0
737                 },
738                 "rust-analyzer.inlayHints.parameterHints": {
739                     "markdownDescription": "Whether to show function parameter name inlay hints at the call\nsite.",
740                     "default": true,
741                     "type": "boolean"
742                 },
743                 "rust-analyzer.inlayHints.typeHints": {
744                     "markdownDescription": "Whether to show inlay type hints for variables.",
745                     "default": true,
746                     "type": "boolean"
747                 },
748                 "rust-analyzer.joinLines.joinElseIf": {
749                     "markdownDescription": "Join lines inserts else between consecutive ifs.",
750                     "default": true,
751                     "type": "boolean"
752                 },
753                 "rust-analyzer.joinLines.removeTrailingComma": {
754                     "markdownDescription": "Join lines removes trailing commas.",
755                     "default": true,
756                     "type": "boolean"
757                 },
758                 "rust-analyzer.joinLines.unwrapTrivialBlock": {
759                     "markdownDescription": "Join lines unwraps trivial blocks.",
760                     "default": true,
761                     "type": "boolean"
762                 },
763                 "rust-analyzer.lens.debug": {
764                     "markdownDescription": "Whether to show `Debug` lens. Only applies when\n`#rust-analyzer.lens.enable#` is set.",
765                     "default": true,
766                     "type": "boolean"
767                 },
768                 "rust-analyzer.lens.enable": {
769                     "markdownDescription": "Whether to show CodeLens in Rust files.",
770                     "default": true,
771                     "type": "boolean"
772                 },
773                 "rust-analyzer.lens.implementations": {
774                     "markdownDescription": "Whether to show `Implementations` lens. Only applies when\n`#rust-analyzer.lens.enable#` is set.",
775                     "default": true,
776                     "type": "boolean"
777                 },
778                 "rust-analyzer.lens.run": {
779                     "markdownDescription": "Whether to show `Run` lens. Only applies when\n`#rust-analyzer.lens.enable#` is set.",
780                     "default": true,
781                     "type": "boolean"
782                 },
783                 "rust-analyzer.lens.methodReferences": {
784                     "markdownDescription": "Whether to show `Method References` lens. Only applies when\n`#rust-analyzer.lens.enable#` is set.",
785                     "default": false,
786                     "type": "boolean"
787                 },
788                 "rust-analyzer.lens.references": {
789                     "markdownDescription": "Whether to show `References` lens. Only applies when\n`#rust-analyzer.lens.enable#` is set.",
790                     "default": false,
791                     "type": "boolean"
792                 },
793                 "rust-analyzer.lens.forceCustomCommands": {
794                     "markdownDescription": "Internal config: use custom client-side commands even when the\nclient doesn't set the corresponding capability.",
795                     "default": true,
796                     "type": "boolean"
797                 },
798                 "rust-analyzer.linkedProjects": {
799                     "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.",
800                     "default": [],
801                     "type": "array",
802                     "items": {
803                         "type": [
804                             "string",
805                             "object"
806                         ]
807                     }
808                 },
809                 "rust-analyzer.lruCapacity": {
810                     "markdownDescription": "Number of syntax trees rust-analyzer keeps in memory. Defaults to 128.",
811                     "default": null,
812                     "type": [
813                         "null",
814                         "integer"
815                     ],
816                     "minimum": 0
817                 },
818                 "rust-analyzer.notifications.cargoTomlNotFound": {
819                     "markdownDescription": "Whether to show `can't find Cargo.toml` error message.",
820                     "default": true,
821                     "type": "boolean"
822                 },
823                 "rust-analyzer.procMacro.enable": {
824                     "markdownDescription": "Enable support for procedural macros, implies `#rust-analyzer.cargo.runBuildScripts#`.",
825                     "default": true,
826                     "type": "boolean"
827                 },
828                 "rust-analyzer.procMacro.server": {
829                     "markdownDescription": "Internal config, path to proc-macro server executable (typically,\nthis is rust-analyzer itself, but we override this in tests).",
830                     "default": null,
831                     "type": [
832                         "null",
833                         "string"
834                     ]
835                 },
836                 "rust-analyzer.runnables.overrideCargo": {
837                     "markdownDescription": "Command to be executed instead of 'cargo' for runnables.",
838                     "default": null,
839                     "type": [
840                         "null",
841                         "string"
842                     ]
843                 },
844                 "rust-analyzer.runnables.cargoExtraArgs": {
845                     "markdownDescription": "Additional arguments to be passed to cargo for runnables such as\ntests or binaries. For example, it may be `--release`.",
846                     "default": [],
847                     "type": "array",
848                     "items": {
849                         "type": "string"
850                     }
851                 },
852                 "rust-analyzer.rustcSource": {
853                     "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.\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 is not reloaded automatically; you must restart rust-analyzer for it to take effect.",
854                     "default": null,
855                     "type": [
856                         "null",
857                         "string"
858                     ]
859                 },
860                 "rust-analyzer.rustfmt.extraArgs": {
861                     "markdownDescription": "Additional arguments to `rustfmt`.",
862                     "default": [],
863                     "type": "array",
864                     "items": {
865                         "type": "string"
866                     }
867                 },
868                 "rust-analyzer.rustfmt.overrideCommand": {
869                     "markdownDescription": "Advanced option, fully override the command rust-analyzer uses for\nformatting.",
870                     "default": null,
871                     "type": [
872                         "null",
873                         "array"
874                     ],
875                     "items": {
876                         "type": "string"
877                     }
878                 },
879                 "rust-analyzer.rustfmt.enableRangeFormatting": {
880                     "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.",
881                     "default": false,
882                     "type": "boolean"
883                 },
884                 "rust-analyzer.workspace.symbol.search.scope": {
885                     "markdownDescription": "Workspace symbol search scope.",
886                     "default": "workspace",
887                     "type": "string",
888                     "enum": [
889                         "workspace",
890                         "workspace_and_dependencies"
891                     ],
892                     "enumDescriptions": [
893                         "Search in current workspace only",
894                         "Search in current workspace and dependencies"
895                     ]
896                 },
897                 "rust-analyzer.workspace.symbol.search.kind": {
898                     "markdownDescription": "Workspace symbol search kind.",
899                     "default": "only_types",
900                     "type": "string",
901                     "enum": [
902                         "only_types",
903                         "all_symbols"
904                     ],
905                     "enumDescriptions": [
906                         "Search for types only",
907                         "Search for all symbols kinds"
908                     ]
909                 },
910                 "$generated-end": {}
911             }
912         },
913         "problemPatterns": [
914             {
915                 "name": "rustc",
916                 "patterns": [
917                     {
918                         "regexp": "^(warning|warn|error)(?:\\[(.*?)\\])?: (.*)$",
919                         "severity": 1,
920                         "code": 2,
921                         "message": 3
922                     },
923                     {
924                         "regexp": "^[\\s->=]*(.*?):(\\d*):(\\d*)\\s*$",
925                         "file": 1,
926                         "line": 2,
927                         "column": 3
928                     }
929                 ]
930             },
931             {
932                 "name": "rustc-json",
933                 "patterns": [
934                     {
935                         "regexp": "^.*\"message\":{\"message\":\"([^\"]*).*?\"file_name\":\"([^\"]+).*?\"line_start\":(\\d+).*?\"line_end\":(\\d+).*?\"column_start\":(\\d+).*?\"column_end\":(\\d+).*}$",
936                         "message": 1,
937                         "file": 2,
938                         "line": 3,
939                         "endLine": 4,
940                         "column": 5,
941                         "endColumn": 6
942                     }
943                 ]
944             }
945         ],
946         "languages": [
947             {
948                 "id": "ra_syntax_tree",
949                 "extensions": [
950                     ".rast"
951                 ]
952             },
953             {
954                 "id": "rust",
955                 "extensions": [
956                     ".rs"
957                 ],
958                 "aliases": [
959                     "Rust",
960                     "rs"
961                 ],
962                 "configuration": "language-configuration.json"
963             }
964         ],
965         "grammars": [
966             {
967                 "language": "ra_syntax_tree",
968                 "scopeName": "source.ra_syntax_tree",
969                 "path": "ra_syntax_tree.tmGrammar.json"
970             }
971         ],
972         "problemMatchers": [
973             {
974                 "name": "rustc",
975                 "owner": "rustc",
976                 "source": "rustc",
977                 "fileLocation": [
978                     "autoDetect",
979                     "${workspaceRoot}"
980                 ],
981                 "pattern": "$rustc"
982             },
983             {
984                 "name": "rustc-json",
985                 "owner": "rustc",
986                 "source": "rustc",
987                 "fileLocation": [
988                     "autoDetect",
989                     "${workspaceRoot}"
990                 ],
991                 "pattern": "$rustc-json"
992             },
993             {
994                 "name": "rustc-watch",
995                 "owner": "rustc",
996                 "source": "rustc",
997                 "fileLocation": [
998                     "autoDetect",
999                     "${workspaceRoot}"
1000                 ],
1001                 "background": {
1002                     "beginsPattern": "^\\[Running\\b",
1003                     "endsPattern": "^\\[Finished running\\b"
1004                 },
1005                 "pattern": "$rustc"
1006             }
1007         ],
1008         "colors": [
1009             {
1010                 "id": "rust_analyzer.inlayHints.foreground",
1011                 "description": "Foreground color of inlay hints (is overriden by more specific rust_analyzer.inlayHints.foreground.* configurations)",
1012                 "defaults": {
1013                     "dark": "#A0A0A0F0",
1014                     "light": "#747474",
1015                     "highContrast": "#BEBEBE"
1016                 }
1017             },
1018             {
1019                 "id": "rust_analyzer.inlayHints.background",
1020                 "description": "Background color of inlay hints (is overriden by more specific rust_analyzer.inlayHints.background.* configurations)",
1021                 "defaults": {
1022                     "dark": "#11223300",
1023                     "light": "#11223300",
1024                     "highContrast": "#11223300"
1025                 }
1026             },
1027             {
1028                 "id": "rust_analyzer.inlayHints.foreground.typeHints",
1029                 "description": "Foreground color of inlay type hints for variables (overrides rust_analyzer.inlayHints.foreground)",
1030                 "defaults": {
1031                     "dark": "rust_analyzer.inlayHints.foreground",
1032                     "light": "rust_analyzer.inlayHints.foreground",
1033                     "highContrast": "rust_analyzer.inlayHints.foreground"
1034                 }
1035             },
1036             {
1037                 "id": "rust_analyzer.inlayHints.foreground.chainingHints",
1038                 "description": "Foreground color of inlay type hints for method chains (overrides rust_analyzer.inlayHints.foreground)",
1039                 "defaults": {
1040                     "dark": "rust_analyzer.inlayHints.foreground",
1041                     "light": "rust_analyzer.inlayHints.foreground",
1042                     "highContrast": "rust_analyzer.inlayHints.foreground"
1043                 }
1044             },
1045             {
1046                 "id": "rust_analyzer.inlayHints.foreground.parameterHints",
1047                 "description": "Foreground color of function parameter name inlay hints at the call site (overrides rust_analyzer.inlayHints.foreground)",
1048                 "defaults": {
1049                     "dark": "rust_analyzer.inlayHints.foreground",
1050                     "light": "rust_analyzer.inlayHints.foreground",
1051                     "highContrast": "rust_analyzer.inlayHints.foreground"
1052                 }
1053             },
1054             {
1055                 "id": "rust_analyzer.inlayHints.background.typeHints",
1056                 "description": "Background color of inlay type hints for variables (overrides rust_analyzer.inlayHints.background)",
1057                 "defaults": {
1058                     "dark": "rust_analyzer.inlayHints.background",
1059                     "light": "rust_analyzer.inlayHints.background",
1060                     "highContrast": "rust_analyzer.inlayHints.background"
1061                 }
1062             },
1063             {
1064                 "id": "rust_analyzer.inlayHints.background.chainingHints",
1065                 "description": "Background color of inlay type hints for method chains (overrides rust_analyzer.inlayHints.background)",
1066                 "defaults": {
1067                     "dark": "rust_analyzer.inlayHints.background",
1068                     "light": "rust_analyzer.inlayHints.background",
1069                     "highContrast": "rust_analyzer.inlayHints.background"
1070                 }
1071             },
1072             {
1073                 "id": "rust_analyzer.inlayHints.background.parameterHints",
1074                 "description": "Background color of function parameter name inlay hints at the call site (overrides rust_analyzer.inlayHints.background)",
1075                 "defaults": {
1076                     "dark": "rust_analyzer.inlayHints.background",
1077                     "light": "rust_analyzer.inlayHints.background",
1078                     "highContrast": "rust_analyzer.inlayHints.background"
1079                 }
1080             },
1081             {
1082                 "id": "rust_analyzer.syntaxTreeBorder",
1083                 "description": "Color of the border displayed in the Rust source code for the selected syntax node (see \"Show Syntax Tree\" command)",
1084                 "defaults": {
1085                     "dark": "#ffffff",
1086                     "light": "#b700ff",
1087                     "highContrast": "#b700ff"
1088                 }
1089             }
1090         ],
1091         "semanticTokenTypes": [
1092             {
1093                 "id": "attribute",
1094                 "description": "Style for attributes"
1095             },
1096             {
1097                 "id": "boolean",
1098                 "description": "Style for boolean literals",
1099                 "superType": "keyword"
1100             },
1101             {
1102                 "id": "builtinType",
1103                 "description": "Style for builtin types",
1104                 "superType": "type"
1105             },
1106             {
1107                 "id": "lifetime",
1108                 "description": "Style for lifetimes"
1109             },
1110             {
1111                 "id": "selfKeyword",
1112                 "description": "Style for the self keyword",
1113                 "superType": "keyword"
1114             },
1115             {
1116                 "id": "typeAlias",
1117                 "description": "Style for type aliases",
1118                 "superType": "type"
1119             },
1120             {
1121                 "id": "union",
1122                 "description": "Style for C-style untagged unions",
1123                 "superType": "type"
1124             },
1125             {
1126                 "id": "unresolvedReference",
1127                 "description": "Style for names which can not be resolved due to compilation errors"
1128             },
1129             {
1130                 "id": "formatSpecifier",
1131                 "description": "Style for {} placeholders in format strings"
1132             },
1133             {
1134                 "id": "punctuation",
1135                 "description": "generic punctuation"
1136             },
1137             {
1138                 "id": "parenthesis",
1139                 "description": "( or )",
1140                 "superType": "punctuation"
1141             },
1142             {
1143                 "id": "bracket",
1144                 "description": "[ or ]",
1145                 "superType": "punctuation"
1146             },
1147             {
1148                 "id": "brace",
1149                 "description": "{ or }",
1150                 "superType": "punctuation"
1151             },
1152             {
1153                 "id": "angle",
1154                 "description": "< or >",
1155                 "superType": "punctuation"
1156             },
1157             {
1158                 "id": "comma",
1159                 "description": ",",
1160                 "superType": "punctuation"
1161             },
1162             {
1163                 "id": "colon",
1164                 "description": ":",
1165                 "superType": "punctuation"
1166             },
1167             {
1168                 "id": "semicolon",
1169                 "description": ";",
1170                 "superType": "punctuation"
1171             },
1172             {
1173                 "id": "dot",
1174                 "description": ".",
1175                 "superType": "punctuation"
1176             }
1177         ],
1178         "semanticTokenModifiers": [
1179             {
1180                 "id": "attribute",
1181                 "description": "Style for elements within attributes"
1182             },
1183             {
1184                 "id": "constant",
1185                 "description": "Style for compile-time constants"
1186             },
1187             {
1188                 "id": "controlFlow",
1189                 "description": "Style for control flow keywords"
1190             },
1191             {
1192                 "id": "mutable",
1193                 "description": "Style for mutable bindings"
1194             },
1195             {
1196                 "id": "unsafe",
1197                 "description": "Style for unsafe operations"
1198             },
1199             {
1200                 "id": "consuming",
1201                 "description": "Style for non-Copy lvalues consumed by method/function call"
1202             },
1203             {
1204                 "id": "callable",
1205                 "description": "Style for variables/parameters that can be used in call expressions"
1206             }
1207         ],
1208         "semanticTokenScopes": [
1209             {
1210                 "language": "rust",
1211                 "scopes": {
1212                     "attribute": [
1213                         "meta.attribute.rust"
1214                     ],
1215                     "function.attribute": [
1216                         "entity.name.function.attribute.rust"
1217                     ],
1218                     "boolean": [
1219                         "constant.language.boolean.rust"
1220                     ],
1221                     "builtinType": [
1222                         "support.type.primitive.rust"
1223                     ],
1224                     "lifetime": [
1225                         "storage.modifier.lifetime.rust"
1226                     ],
1227                     "typeAlias": [
1228                         "entity.name.type.typeAlias.rust"
1229                     ],
1230                     "union": [
1231                         "entity.name.type.union.rust"
1232                     ],
1233                     "struct": [
1234                         "entity.name.type.struct.rust"
1235                     ],
1236                     "keyword": [
1237                         "keyword.other.rust"
1238                     ],
1239                     "keyword.controlFlow": [
1240                         "keyword.control.rust"
1241                     ],
1242                     "variable.constant": [
1243                         "variable.other.constant.rust"
1244                     ],
1245                     "formatSpecifier": [
1246                         "punctuation.section.embedded.rust"
1247                     ],
1248                     "*.mutable": [
1249                         "markup.underline"
1250                     ]
1251                 }
1252             }
1253         ],
1254         "menus": {
1255             "commandPalette": [
1256                 {
1257                     "command": "rust-analyzer.syntaxTree",
1258                     "when": "inRustProject"
1259                 },
1260                 {
1261                     "command": "rust-analyzer.viewHir",
1262                     "when": "inRustProject"
1263                 },
1264                 {
1265                     "command": "rust-analyzer.expandMacro",
1266                     "when": "inRustProject"
1267                 },
1268                 {
1269                     "command": "rust-analyzer.matchingBrace",
1270                     "when": "inRustProject"
1271                 },
1272                 {
1273                     "command": "rust-analyzer.parentModule",
1274                     "when": "inRustProject"
1275                 },
1276                 {
1277                     "command": "rust-analyzer.joinLines",
1278                     "when": "inRustProject"
1279                 },
1280                 {
1281                     "command": "rust-analyzer.run",
1282                     "when": "inRustProject"
1283                 },
1284                 {
1285                     "command": "rust-analyzer.debug",
1286                     "when": "inRustProject"
1287                 },
1288                 {
1289                     "command": "rust-analyzer.newDebugConfig",
1290                     "when": "inRustProject"
1291                 },
1292                 {
1293                     "command": "rust-analyzer.analyzerStatus",
1294                     "when": "inRustProject"
1295                 },
1296                 {
1297                     "command": "rust-analyzer.memoryUsage",
1298                     "when": "inRustProject"
1299                 },
1300                 {
1301                     "command": "rust-analyzer.reloadWorkspace",
1302                     "when": "inRustProject"
1303                 },
1304                 {
1305                     "command": "rust-analyzer.reload",
1306                     "when": "inRustProject"
1307                 },
1308                 {
1309                     "command": "rust-analyzer.updateGithubToken",
1310                     "when": "inRustProject"
1311                 },
1312                 {
1313                     "command": "rust-analyzer.onEnter",
1314                     "when": "inRustProject"
1315                 },
1316                 {
1317                     "command": "rust-analyzer.ssr",
1318                     "when": "inRustProject"
1319                 },
1320                 {
1321                     "command": "rust-analyzer.serverVersion",
1322                     "when": "inRustProject"
1323                 },
1324                 {
1325                     "command": "rust-analyzer.toggleInlayHints",
1326                     "when": "inRustProject"
1327                 },
1328                 {
1329                     "command": "rust-analyzer.openDocs",
1330                     "when": "inRustProject"
1331                 },
1332                 {
1333                     "command": "rust-analyzer.openCargoToml",
1334                     "when": "inRustProject"
1335                 }
1336             ],
1337             "editor/context": [
1338                 {
1339                     "command": "rust-analyzer.peekTests",
1340                     "when": "inRustProject",
1341                     "group": "navigation@1000"
1342                 }
1343             ]
1344         }
1345     }
1346 }