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