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