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