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