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