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