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