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