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