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