]> git.lizzy.rs Git - rust.git/blob - editors/code/package.json
Merge #7002
[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.52.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         "node-fetch": "^2.6.1",
39         "vscode-languageclient": "7.0.0"
40     },
41     "devDependencies": {
42         "@rollup/plugin-commonjs": "^17.0.0",
43         "@rollup/plugin-node-resolve": "^11.0.0",
44         "@types/glob": "^7.1.3",
45         "@types/mocha": "^8.0.4",
46         "@types/node": "~12.12.6",
47         "@types/node-fetch": "^2.5.7",
48         "@types/vscode": "^1.52.0",
49         "@typescript-eslint/eslint-plugin": "^4.9.0",
50         "@typescript-eslint/parser": "^4.9.0",
51         "eslint": "^7.15.0",
52         "glob": "^7.1.6",
53         "mocha": "^8.2.1",
54         "rollup": "^2.34.2",
55         "tslib": "^2.0.3",
56         "typescript": "^4.1.2",
57         "typescript-formatter": "^7.2.2",
58         "vsce": "^1.81.1",
59         "vscode-test": "^1.4.1"
60     },
61     "activationEvents": [
62         "onLanguage:rust",
63         "onCommand:rust-analyzer.analyzerStatus",
64         "onCommand:rust-analyzer.memoryUsage",
65         "onCommand:rust-analyzer.reloadWorkspace",
66         "workspaceContains:**/Cargo.toml"
67     ],
68     "main": "./out/src/main",
69     "contributes": {
70         "taskDefinitions": [
71             {
72                 "type": "cargo",
73                 "required": [
74                     "command"
75                 ],
76                 "properties": {
77                     "label": {
78                         "type": "string"
79                     },
80                     "command": {
81                         "type": "string"
82                     },
83                     "args": {
84                         "type": "array",
85                         "items": {
86                             "type": "string"
87                         }
88                     },
89                     "env": {
90                         "type": "object",
91                         "patternProperties": {
92                             ".+": {
93                                 "type": "string"
94                             }
95                         }
96                     }
97                 }
98             }
99         ],
100         "commands": [
101             {
102                 "command": "rust-analyzer.syntaxTree",
103                 "title": "Show Syntax Tree",
104                 "category": "Rust Analyzer"
105             },
106             {
107                 "command": "rust-analyzer.expandMacro",
108                 "title": "Expand macro recursively",
109                 "category": "Rust Analyzer"
110             },
111             {
112                 "command": "rust-analyzer.matchingBrace",
113                 "title": "Find matching brace",
114                 "category": "Rust Analyzer"
115             },
116             {
117                 "command": "rust-analyzer.parentModule",
118                 "title": "Locate parent module",
119                 "category": "Rust Analyzer"
120             },
121             {
122                 "command": "rust-analyzer.joinLines",
123                 "title": "Join lines",
124                 "category": "Rust Analyzer"
125             },
126             {
127                 "command": "rust-analyzer.run",
128                 "title": "Run",
129                 "category": "Rust Analyzer"
130             },
131             {
132                 "command": "rust-analyzer.debug",
133                 "title": "Debug",
134                 "category": "Rust Analyzer"
135             },
136             {
137                 "command": "rust-analyzer.newDebugConfig",
138                 "title": "Generate launch configuration",
139                 "category": "Rust Analyzer"
140             },
141             {
142                 "command": "rust-analyzer.analyzerStatus",
143                 "title": "Status",
144                 "category": "Rust Analyzer"
145             },
146             {
147                 "command": "rust-analyzer.memoryUsage",
148                 "title": "Memory Usage (Clears Database)",
149                 "category": "Rust Analyzer"
150             },
151             {
152                 "command": "rust-analyzer.reloadWorkspace",
153                 "title": "Reload workspace",
154                 "category": "Rust Analyzer"
155             },
156             {
157                 "command": "rust-analyzer.reload",
158                 "title": "Restart server",
159                 "category": "Rust Analyzer"
160             },
161             {
162                 "command": "rust-analyzer.updateGithubToken",
163                 "title": "Update Github API token",
164                 "category": "Rust Analyzer"
165             },
166             {
167                 "command": "rust-analyzer.onEnter",
168                 "title": "Enhanced enter key",
169                 "category": "Rust Analyzer"
170             },
171             {
172                 "command": "rust-analyzer.ssr",
173                 "title": "Structural Search Replace",
174                 "category": "Rust Analyzer"
175             },
176             {
177                 "command": "rust-analyzer.serverVersion",
178                 "title": "Show RA Version",
179                 "category": "Rust Analyzer"
180             },
181             {
182                 "command": "rust-analyzer.toggleInlayHints",
183                 "title": "Toggle inlay hints",
184                 "category": "Rust Analyzer"
185             },
186             {
187                 "command": "rust-analyzer.openDocs",
188                 "title": "Open docs under cursor",
189                 "category": "Rust Analyzer"
190             },
191             {
192                 "command": "rust-analyzer.openCargoToml",
193                 "title": "Open Cargo.toml",
194                 "category": "Rust Analyzer"
195             }
196         ],
197         "keybindings": [
198             {
199                 "command": "rust-analyzer.parentModule",
200                 "key": "ctrl+shift+u",
201                 "when": "editorTextFocus && editorLangId == rust"
202             },
203             {
204                 "command": "rust-analyzer.matchingBrace",
205                 "key": "ctrl+shift+m",
206                 "when": "editorTextFocus && editorLangId == rust"
207             },
208             {
209                 "command": "rust-analyzer.joinLines",
210                 "key": "ctrl+shift+j",
211                 "when": "editorTextFocus && editorLangId == rust"
212             }
213         ],
214         "configuration": {
215             "type": "object",
216             "title": "Rust Analyzer",
217             "properties": {
218                 "rust-analyzer.cargoRunner": {
219                     "type": [
220                         "null",
221                         "string"
222                     ],
223                     "default": null,
224                     "description": "Custom cargo runner extension ID."
225                 },
226                 "rust-analyzer.runnableEnv": {
227                     "anyOf": [
228                         {
229                             "type": "null"
230                         },
231                         {
232                             "type": "array",
233                             "items": {
234                                 "type": "object",
235                                 "properties": {
236                                     "mask": {
237                                         "type": "string",
238                                         "description": "Runnable name mask"
239                                     },
240                                     "env": {
241                                         "type": "object",
242                                         "description": "Variables in form of { \"key\": \"value\"}"
243                                     }
244                                 }
245                             }
246                         },
247                         {
248                             "type": "object",
249                             "description": "Variables in form of { \"key\": \"value\"}"
250                         }
251                     ],
252                     "default": null,
253                     "markdownDescription": "Environment variables passed to the runnable launched using `Test` or `Debug` lens or `rust-analyzer.run` command."
254                 },
255                 "rust-analyzer.inlayHints.enable": {
256                     "type": "boolean",
257                     "default": true,
258                     "description": "Whether to show inlay hints."
259                 },
260                 "rust-analyzer.updates.channel": {
261                     "type": "string",
262                     "enum": [
263                         "stable",
264                         "nightly"
265                     ],
266                     "default": "stable",
267                     "markdownEnumDescriptions": [
268                         "`stable` updates are shipped weekly, they don't contain cutting-edge features from VSCode proposed APIs but have less bugs in general.",
269                         "`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**."
270                     ],
271                     "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."
272                 },
273                 "rust-analyzer.updates.askBeforeDownload": {
274                     "type": "boolean",
275                     "default": true,
276                     "description": "Whether to ask for permission before downloading any files from the Internet."
277                 },
278                 "rust-analyzer.serverPath": {
279                     "type": [
280                         "null",
281                         "string"
282                     ],
283                     "default": null,
284                     "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"
285                 },
286                 "rust-analyzer.trace.server": {
287                     "type": "string",
288                     "scope": "window",
289                     "enum": [
290                         "off",
291                         "messages",
292                         "verbose"
293                     ],
294                     "enumDescriptions": [
295                         "No traces",
296                         "Error only",
297                         "Full log"
298                     ],
299                     "default": "off",
300                     "description": "Trace requests to the rust-analyzer (this is usually overly verbose and not recommended for regular users)."
301                 },
302                 "rust-analyzer.trace.extension": {
303                     "description": "Enable logging of VS Code extensions itself.",
304                     "type": "boolean",
305                     "default": false
306                 },
307                 "rust-analyzer.debug.engine": {
308                     "type": "string",
309                     "enum": [
310                         "auto",
311                         "vadimcn.vscode-lldb",
312                         "ms-vscode.cpptools"
313                     ],
314                     "default": "auto",
315                     "description": "Preferred debug engine.",
316                     "markdownEnumDescriptions": [
317                         "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).",
318                         "Use [CodeLLDB](https://marketplace.visualstudio.com/items?itemName=vadimcn.vscode-lldb)",
319                         "Use [MS C++ tools](https://marketplace.visualstudio.com/items?itemName=ms-vscode.cpptools)"
320                     ]
321                 },
322                 "rust-analyzer.debug.sourceFileMap": {
323                     "type": "object",
324                     "description": "Optional source file mappings passed to the debug engine.",
325                     "default": {
326                         "/rustc/<id>": "${env:USERPROFILE}/.rustup/toolchains/<toolchain-id>/lib/rustlib/src/rust"
327                     }
328                 },
329                 "rust-analyzer.debug.openDebugPane": {
330                     "markdownDescription": "Whether to open up the `Debug Panel` on debugging start.",
331                     "type": "boolean",
332                     "default": false
333                 },
334                 "rust-analyzer.debug.engineSettings": {
335                     "type": "object",
336                     "default": {},
337                     "markdownDescription": "Optional settings passed to the debug engine. Example: `{ \"lldb\": { \"terminal\":\"external\"} }`"
338                 },
339                 "rust-analyzer.assist.importMergeBehaviour": {
340                     "markdownDescription": "The strategy to use when inserting new imports or merging imports.",
341                     "default": "full",
342                     "type": "string",
343                     "enum": [
344                         "none",
345                         "full",
346                         "last"
347                     ],
348                     "enumDescriptions": [
349                         "No merging",
350                         "Merge all layers of the import trees",
351                         "Only merge the last layer of the import trees"
352                     ]
353                 },
354                 "rust-analyzer.assist.importPrefix": {
355                     "markdownDescription": "The path structure for newly inserted paths to use.",
356                     "default": "plain",
357                     "type": "string",
358                     "enum": [
359                         "plain",
360                         "by_self",
361                         "by_crate"
362                     ],
363                     "enumDescriptions": [
364                         "Insert import paths relative to the current module, using up to one `super` prefix if the parent module contains the requested item.",
365                         "Prefix all import paths with `self` if they don't begin with `self`, `super`, `crate` or a crate name.",
366                         "Force import paths to be absolute by always starting them with `crate` or the crate name they refer to."
367                     ]
368                 },
369                 "rust-analyzer.callInfo.full": {
370                     "markdownDescription": "Show function name and docs in parameter hints.",
371                     "default": true,
372                     "type": "boolean"
373                 },
374                 "rust-analyzer.cargo.autoreload": {
375                     "markdownDescription": "Automatically refresh project info via `cargo metadata` on `Cargo.toml` changes.",
376                     "default": true,
377                     "type": "boolean"
378                 },
379                 "rust-analyzer.cargo.allFeatures": {
380                     "markdownDescription": "Activate all available features.",
381                     "default": false,
382                     "type": "boolean"
383                 },
384                 "rust-analyzer.cargo.features": {
385                     "markdownDescription": "List of features to activate.",
386                     "default": [],
387                     "type": "array",
388                     "items": {
389                         "type": "string"
390                     }
391                 },
392                 "rust-analyzer.cargo.loadOutDirsFromCheck": {
393                     "markdownDescription": "Run `cargo check` on startup to get the correct value for package OUT_DIRs.",
394                     "default": false,
395                     "type": "boolean"
396                 },
397                 "rust-analyzer.cargo.noDefaultFeatures": {
398                     "markdownDescription": "Do not activate the `default` feature.",
399                     "default": false,
400                     "type": "boolean"
401                 },
402                 "rust-analyzer.cargo.target": {
403                     "markdownDescription": "Compilation target (target triple).",
404                     "default": null,
405                     "type": [
406                         "null",
407                         "string"
408                     ]
409                 },
410                 "rust-analyzer.cargo.noSysroot": {
411                     "markdownDescription": "Internal config for debugging, disables loading of sysroot crates.",
412                     "default": false,
413                     "type": "boolean"
414                 },
415                 "rust-analyzer.checkOnSave.enable": {
416                     "markdownDescription": "Run specified `cargo check` command for diagnostics on save.",
417                     "default": true,
418                     "type": "boolean"
419                 },
420                 "rust-analyzer.checkOnSave.allFeatures": {
421                     "markdownDescription": "Check with all features (will be passed as `--all-features`). Defaults to `#rust-analyzer.cargo.allFeatures#`.",
422                     "default": null,
423                     "type": [
424                         "null",
425                         "boolean"
426                     ]
427                 },
428                 "rust-analyzer.checkOnSave.allTargets": {
429                     "markdownDescription": "Check all targets and tests (will be passed as `--all-targets`).",
430                     "default": true,
431                     "type": "boolean"
432                 },
433                 "rust-analyzer.checkOnSave.command": {
434                     "markdownDescription": "Cargo command to use for `cargo check`.",
435                     "default": "check",
436                     "type": "string"
437                 },
438                 "rust-analyzer.checkOnSave.noDefaultFeatures": {
439                     "markdownDescription": "Do not activate the `default` feature.",
440                     "default": null,
441                     "type": [
442                         "null",
443                         "boolean"
444                     ]
445                 },
446                 "rust-analyzer.checkOnSave.target": {
447                     "markdownDescription": "Check for a specific target. Defaults to `#rust-analyzer.cargo.target#`.",
448                     "default": null,
449                     "type": [
450                         "null",
451                         "string"
452                     ]
453                 },
454                 "rust-analyzer.checkOnSave.extraArgs": {
455                     "markdownDescription": "Extra arguments for `cargo check`.",
456                     "default": [],
457                     "type": "array",
458                     "items": {
459                         "type": "string"
460                     }
461                 },
462                 "rust-analyzer.checkOnSave.features": {
463                     "markdownDescription": "List of features to activate. Defaults to `#rust-analyzer.cargo.features#`.",
464                     "default": null,
465                     "type": [
466                         "null",
467                         "array"
468                     ],
469                     "items": {
470                         "type": "string"
471                     }
472                 },
473                 "rust-analyzer.checkOnSave.overrideCommand": {
474                     "markdownDescription": "Advanced option, fully override the command rust-analyzer uses for checking. The command should include `--message-format=json` or similar option.",
475                     "default": null,
476                     "type": [
477                         "null",
478                         "array"
479                     ],
480                     "items": {
481                         "type": "string"
482                     }
483                 },
484                 "rust-analyzer.completion.addCallArgumentSnippets": {
485                     "markdownDescription": "Whether to add argument snippets when completing functions.",
486                     "default": true,
487                     "type": "boolean"
488                 },
489                 "rust-analyzer.completion.addCallParenthesis": {
490                     "markdownDescription": "Whether to add parenthesis when completing functions.",
491                     "default": true,
492                     "type": "boolean"
493                 },
494                 "rust-analyzer.completion.postfix.enable": {
495                     "markdownDescription": "Whether to show postfix snippets like `dbg`, `if`, `not`, etc.",
496                     "default": true,
497                     "type": "boolean"
498                 },
499                 "rust-analyzer.completion.autoimport.enable": {
500                     "markdownDescription": "Toggles the additional completions that automatically add imports when completed. Note that your client must specify the `additionalTextEdits` LSP client capability to truly have this feature enabled.",
501                     "default": true,
502                     "type": "boolean"
503                 },
504                 "rust-analyzer.diagnostics.enable": {
505                     "markdownDescription": "Whether to show native rust-analyzer diagnostics.",
506                     "default": true,
507                     "type": "boolean"
508                 },
509                 "rust-analyzer.diagnostics.enableExperimental": {
510                     "markdownDescription": "Whether to show experimental rust-analyzer diagnostics that might have more false positives than usual.",
511                     "default": true,
512                     "type": "boolean"
513                 },
514                 "rust-analyzer.diagnostics.disabled": {
515                     "markdownDescription": "List of rust-analyzer diagnostics to disable.",
516                     "default": [],
517                     "type": "array",
518                     "items": {
519                         "type": "string"
520                     },
521                     "uniqueItems": true
522                 },
523                 "rust-analyzer.diagnostics.warningsAsHint": {
524                     "markdownDescription": "List of warnings that should be displayed with info severity.\\n\\nThe warnings will be indicated by a blue squiggly underline in code and a blue icon in the `Problems Panel`.",
525                     "default": [],
526                     "type": "array",
527                     "items": {
528                         "type": "string"
529                     }
530                 },
531                 "rust-analyzer.diagnostics.warningsAsInfo": {
532                     "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 and will not show up in the `Problems Panel`.",
533                     "default": [],
534                     "type": "array",
535                     "items": {
536                         "type": "string"
537                     }
538                 },
539                 "rust-analyzer.files.watcher": {
540                     "markdownDescription": "Controls file watching implementation.",
541                     "default": "client",
542                     "type": "string"
543                 },
544                 "rust-analyzer.hoverActions.debug": {
545                     "markdownDescription": "Whether to show `Debug` action. Only applies when `#rust-analyzer.hoverActions.enable#` is set.",
546                     "default": true,
547                     "type": "boolean"
548                 },
549                 "rust-analyzer.hoverActions.enable": {
550                     "markdownDescription": "Whether to show HoverActions in Rust files.",
551                     "default": true,
552                     "type": "boolean"
553                 },
554                 "rust-analyzer.hoverActions.gotoTypeDef": {
555                     "markdownDescription": "Whether to show `Go to Type Definition` action. Only applies when `#rust-analyzer.hoverActions.enable#` is set.",
556                     "default": true,
557                     "type": "boolean"
558                 },
559                 "rust-analyzer.hoverActions.implementations": {
560                     "markdownDescription": "Whether to show `Implementations` action. Only applies when `#rust-analyzer.hoverActions.enable#` is set.",
561                     "default": true,
562                     "type": "boolean"
563                 },
564                 "rust-analyzer.hoverActions.run": {
565                     "markdownDescription": "Whether to show `Run` action. Only applies when `#rust-analyzer.hoverActions.enable#` is set.",
566                     "default": true,
567                     "type": "boolean"
568                 },
569                 "rust-analyzer.hoverActions.linksInHover": {
570                     "markdownDescription": "Use markdown syntax for links in hover.",
571                     "default": true,
572                     "type": "boolean"
573                 },
574                 "rust-analyzer.inlayHints.chainingHints": {
575                     "markdownDescription": "Whether to show inlay type hints for method chains.",
576                     "default": true,
577                     "type": "boolean"
578                 },
579                 "rust-analyzer.inlayHints.maxLength": {
580                     "markdownDescription": "Maximum length for inlay hints. Default is unlimited.",
581                     "default": null,
582                     "type": [
583                         "null",
584                         "integer"
585                     ],
586                     "minimum": 0
587                 },
588                 "rust-analyzer.inlayHints.parameterHints": {
589                     "markdownDescription": "Whether to show function parameter name inlay hints at the call site.",
590                     "default": true,
591                     "type": "boolean"
592                 },
593                 "rust-analyzer.inlayHints.typeHints": {
594                     "markdownDescription": "Whether to show inlay type hints for variables.",
595                     "default": true,
596                     "type": "boolean"
597                 },
598                 "rust-analyzer.lens.debug": {
599                     "markdownDescription": "Whether to show `Debug` lens. Only applies when `#rust-analyzer.lens.enable#` is set.",
600                     "default": true,
601                     "type": "boolean"
602                 },
603                 "rust-analyzer.lens.enable": {
604                     "markdownDescription": "Whether to show CodeLens in Rust files.",
605                     "default": true,
606                     "type": "boolean"
607                 },
608                 "rust-analyzer.lens.implementations": {
609                     "markdownDescription": "Whether to show `Implementations` lens. Only applies when `#rust-analyzer.lens.enable#` is set.",
610                     "default": true,
611                     "type": "boolean"
612                 },
613                 "rust-analyzer.lens.run": {
614                     "markdownDescription": "Whether to show `Run` lens. Only applies when `#rust-analyzer.lens.enable#` is set.",
615                     "default": true,
616                     "type": "boolean"
617                 },
618                 "rust-analyzer.lens.methodReferences": {
619                     "markdownDescription": "Whether to show `Method References` lens. Only applies when `#rust-analyzer.lens.enable#` is set.",
620                     "default": false,
621                     "type": "boolean"
622                 },
623                 "rust-analyzer.linkedProjects": {
624                     "markdownDescription": "Disable project auto-discovery in favor of explicitly specified set of projects.\\n\\nElements must be paths pointing to `Cargo.toml`, `rust-project.json`, or JSON objects in `rust-project.json` format.",
625                     "default": [],
626                     "type": "array",
627                     "items": {
628                         "type": [
629                             "string",
630                             "object"
631                         ]
632                     }
633                 },
634                 "rust-analyzer.lruCapacity": {
635                     "markdownDescription": "Number of syntax trees rust-analyzer keeps in memory.  Defaults to 128.",
636                     "default": null,
637                     "type": [
638                         "null",
639                         "integer"
640                     ],
641                     "minimum": 0
642                 },
643                 "rust-analyzer.notifications.cargoTomlNotFound": {
644                     "markdownDescription": "Whether to show `can't find Cargo.toml` error message.",
645                     "default": true,
646                     "type": "boolean"
647                 },
648                 "rust-analyzer.procMacro.enable": {
649                     "markdownDescription": "Enable Proc macro support, `#rust-analyzer.cargo.loadOutDirsFromCheck#` must be enabled.",
650                     "default": false,
651                     "type": "boolean"
652                 },
653                 "rust-analyzer.runnables.overrideCargo": {
654                     "markdownDescription": "Command to be executed instead of 'cargo' for runnables.",
655                     "default": null,
656                     "type": [
657                         "null",
658                         "string"
659                     ]
660                 },
661                 "rust-analyzer.runnables.cargoExtraArgs": {
662                     "markdownDescription": "Additional arguments to be passed to cargo for runnables such as tests or binaries.\\nFor example, it may be `--release`.",
663                     "default": [],
664                     "type": "array",
665                     "items": {
666                         "type": "string"
667                     }
668                 },
669                 "rust-analyzer.rustcSource": {
670                     "markdownDescription": "Path to the rust compiler sources, for usage in rustc_private projects.",
671                     "default": null,
672                     "type": [
673                         "null",
674                         "string"
675                     ]
676                 },
677                 "rust-analyzer.rustfmt.extraArgs": {
678                     "markdownDescription": "Additional arguments to `rustfmt`.",
679                     "default": [],
680                     "type": "array",
681                     "items": {
682                         "type": "string"
683                     }
684                 },
685                 "rust-analyzer.rustfmt.overrideCommand": {
686                     "markdownDescription": "Advanced option, fully override the command rust-analyzer uses for formatting.",
687                     "default": null,
688                     "type": [
689                         "null",
690                         "array"
691                     ],
692                     "items": {
693                         "type": "string"
694                     }
695                 }
696             }
697         },
698         "problemPatterns": [
699             {
700                 "name": "rustc",
701                 "patterns": [
702                     {
703                         "regexp": "^(warning|warn|error)(?:\\[(.*?)\\])?: (.*)$",
704                         "severity": 1,
705                         "code": 2,
706                         "message": 3
707                     },
708                     {
709                         "regexp": "^[\\s->=]*(.*?):(\\d*):(\\d*)\\s*$",
710                         "file": 1,
711                         "line": 2,
712                         "column": 3
713                     }
714                 ]
715             },
716             {
717                 "name": "rustc-json",
718                 "patterns": [
719                     {
720                         "regexp": "^.*\"message\":{\"message\":\"([^\"]*).*?\"file_name\":\"([^\"]+).*?\"line_start\":(\\d+).*?\"line_end\":(\\d+).*?\"column_start\":(\\d+).*?\"column_end\":(\\d+).*}$",
721                         "message": 1,
722                         "file": 2,
723                         "line": 3,
724                         "endLine": 4,
725                         "column": 5,
726                         "endColumn": 6
727                     }
728                 ]
729             }
730         ],
731         "languages": [
732             {
733                 "id": "ra_syntax_tree",
734                 "extensions": [
735                     ".rast"
736                 ]
737             },
738             {
739                 "id": "rust",
740                 "extensions": [
741                     ".rs"
742                 ],
743                 "aliases": [
744                     "Rust",
745                     "rs"
746                 ],
747                 "configuration": "language-configuration.json"
748             }
749         ],
750         "grammars": [
751             {
752                 "language": "ra_syntax_tree",
753                 "scopeName": "source.ra_syntax_tree",
754                 "path": "ra_syntax_tree.tmGrammar.json"
755             }
756         ],
757         "problemMatchers": [
758             {
759                 "name": "rustc",
760                 "owner": "rustc",
761                 "source": "rustc",
762                 "fileLocation": [
763                     "autoDetect",
764                     "${workspaceRoot}"
765                 ],
766                 "pattern": "$rustc"
767             },
768             {
769                 "name": "rustc-json",
770                 "owner": "rustc",
771                 "source": "rustc",
772                 "fileLocation": [
773                     "autoDetect",
774                     "${workspaceRoot}"
775                 ],
776                 "pattern": "$rustc-json"
777             },
778             {
779                 "name": "rustc-watch",
780                 "owner": "rustc",
781                 "source": "rustc",
782                 "fileLocation": [
783                     "autoDetect",
784                     "${workspaceRoot}"
785                 ],
786                 "background": {
787                     "beginsPattern": "^\\[Running\\b",
788                     "endsPattern": "^\\[Finished running\\b"
789                 },
790                 "pattern": "$rustc"
791             }
792         ],
793         "colors": [
794             {
795                 "id": "rust_analyzer.inlayHints.foreground",
796                 "description": "Foreground color of inlay hints (is overriden by more specific rust_analyzer.inlayHints.foreground.* configurations)",
797                 "defaults": {
798                     "dark": "#A0A0A0F0",
799                     "light": "#747474",
800                     "highContrast": "#BEBEBE"
801                 }
802             },
803             {
804                 "id": "rust_analyzer.inlayHints.background",
805                 "description": "Background color of inlay hints (is overriden by more specific rust_analyzer.inlayHints.background.* configurations)",
806                 "defaults": {
807                     "dark": "#11223300",
808                     "light": "#11223300",
809                     "highContrast": "#11223300"
810                 }
811             },
812             {
813                 "id": "rust_analyzer.inlayHints.foreground.typeHints",
814                 "description": "Foreground color of inlay type hints for variables (overrides rust_analyzer.inlayHints.foreground)",
815                 "defaults": {
816                     "dark": "rust_analyzer.inlayHints.foreground",
817                     "light": "rust_analyzer.inlayHints.foreground",
818                     "highContrast": "rust_analyzer.inlayHints.foreground"
819                 }
820             },
821             {
822                 "id": "rust_analyzer.inlayHints.foreground.chainingHints",
823                 "description": "Foreground color of inlay type hints for method chains (overrides rust_analyzer.inlayHints.foreground)",
824                 "defaults": {
825                     "dark": "rust_analyzer.inlayHints.foreground",
826                     "light": "rust_analyzer.inlayHints.foreground",
827                     "highContrast": "rust_analyzer.inlayHints.foreground"
828                 }
829             },
830             {
831                 "id": "rust_analyzer.inlayHints.foreground.parameterHints",
832                 "description": "Foreground color of function parameter name inlay hints at the call site (overrides rust_analyzer.inlayHints.foreground)",
833                 "defaults": {
834                     "dark": "rust_analyzer.inlayHints.foreground",
835                     "light": "rust_analyzer.inlayHints.foreground",
836                     "highContrast": "rust_analyzer.inlayHints.foreground"
837                 }
838             },
839             {
840                 "id": "rust_analyzer.inlayHints.background.typeHints",
841                 "description": "Background color of inlay type hints for variables (overrides rust_analyzer.inlayHints.background)",
842                 "defaults": {
843                     "dark": "rust_analyzer.inlayHints.background",
844                     "light": "rust_analyzer.inlayHints.background",
845                     "highContrast": "rust_analyzer.inlayHints.background"
846                 }
847             },
848             {
849                 "id": "rust_analyzer.inlayHints.background.chainingHints",
850                 "description": "Background color of inlay type hints for method chains (overrides rust_analyzer.inlayHints.background)",
851                 "defaults": {
852                     "dark": "rust_analyzer.inlayHints.background",
853                     "light": "rust_analyzer.inlayHints.background",
854                     "highContrast": "rust_analyzer.inlayHints.background"
855                 }
856             },
857             {
858                 "id": "rust_analyzer.inlayHints.background.parameterHints",
859                 "description": "Background color of function parameter name inlay hints at the call site (overrides rust_analyzer.inlayHints.background)",
860                 "defaults": {
861                     "dark": "rust_analyzer.inlayHints.background",
862                     "light": "rust_analyzer.inlayHints.background",
863                     "highContrast": "rust_analyzer.inlayHints.background"
864                 }
865             },
866             {
867                 "id": "rust_analyzer.syntaxTreeBorder",
868                 "description": "Color of the border displayed in the Rust source code for the selected syntax node (see \"Show Syntax Tree\" command)",
869                 "defaults": {
870                     "dark": "#ffffff",
871                     "light": "#b700ff",
872                     "highContrast": "#b700ff"
873                 }
874             }
875         ],
876         "semanticTokenTypes": [
877             {
878                 "id": "attribute",
879                 "description": "Style for attributes"
880             },
881             {
882                 "id": "boolean",
883                 "description": "Style for boolean literals",
884                 "superType": "keyword"
885             },
886             {
887                 "id": "builtinType",
888                 "description": "Style for builtin types",
889                 "superType": "type"
890             },
891             {
892                 "id": "lifetime",
893                 "description": "Style for lifetimes"
894             },
895             {
896                 "id": "selfKeyword",
897                 "description": "Style for the self keyword",
898                 "superType": "keyword"
899             },
900             {
901                 "id": "typeAlias",
902                 "description": "Style for type aliases",
903                 "superType": "type"
904             },
905             {
906                 "id": "union",
907                 "description": "Style for C-style untagged unions",
908                 "superType": "type"
909             },
910             {
911                 "id": "unresolvedReference",
912                 "description": "Style for names which can not be resolved due to compilation errors"
913             },
914             {
915                 "id": "formatSpecifier",
916                 "description": "Style for {} placeholders in format strings"
917             }
918         ],
919         "semanticTokenModifiers": [
920             {
921                 "id": "attribute",
922                 "description": "Style for elements within attributes"
923             },
924             {
925                 "id": "constant",
926                 "description": "Style for compile-time constants"
927             },
928             {
929                 "id": "controlFlow",
930                 "description": "Style for control flow keywords"
931             },
932             {
933                 "id": "mutable",
934                 "description": "Style for mutable bindings"
935             },
936             {
937                 "id": "unsafe",
938                 "description": "Style for unsafe operations"
939             },
940             {
941                 "id": "consuming",
942                 "description": "Style for non-Copy lvalues consumed by method/function call"
943             },
944             {
945                 "id": "callable",
946                 "description": "Style for variables/parameters that can be used in call expressions"
947             }
948         ],
949         "semanticTokenScopes": [
950             {
951                 "language": "rust",
952                 "scopes": {
953                     "attribute": [
954                         "meta.attribute.rust"
955                     ],
956                     "function.attribute": [
957                         "entity.name.function.attribute.rust"
958                     ],
959                     "boolean": [
960                         "constant.language.boolean.rust"
961                     ],
962                     "builtinType": [
963                         "support.type.primitive.rust"
964                     ],
965                     "lifetime": [
966                         "storage.modifier.lifetime.rust"
967                     ],
968                     "typeAlias": [
969                         "entity.name.type.typeAlias.rust"
970                     ],
971                     "union": [
972                         "entity.name.type.union.rust"
973                     ],
974                     "struct": [
975                         "entity.name.type.struct.rust"
976                     ],
977                     "keyword": [
978                         "keyword.other.rust"
979                     ],
980                     "keyword.controlFlow": [
981                         "keyword.control.rust"
982                     ],
983                     "variable.constant": [
984                         "variable.other.constant.rust"
985                     ],
986                     "formatSpecifier": [
987                         "punctuation.section.embedded.rust"
988                     ],
989                     "*.mutable": [
990                         "markup.underline"
991                     ]
992                 }
993             }
994         ],
995         "menus": {
996             "commandPalette": [
997                 {
998                     "command": "rust-analyzer.syntaxTree",
999                     "when": "inRustProject"
1000                 },
1001                 {
1002                     "command": "rust-analyzer.expandMacro",
1003                     "when": "inRustProject"
1004                 },
1005                 {
1006                     "command": "rust-analyzer.matchingBrace",
1007                     "when": "inRustProject"
1008                 },
1009                 {
1010                     "command": "rust-analyzer.parentModule",
1011                     "when": "inRustProject"
1012                 },
1013                 {
1014                     "command": "rust-analyzer.joinLines",
1015                     "when": "inRustProject"
1016                 },
1017                 {
1018                     "command": "rust-analyzer.run",
1019                     "when": "inRustProject"
1020                 },
1021                 {
1022                     "command": "rust-analyzer.debug",
1023                     "when": "inRustProject"
1024                 },
1025                 {
1026                     "command": "rust-analyzer.newDebugConfig",
1027                     "when": "inRustProject"
1028                 },
1029                 {
1030                     "command": "rust-analyzer.analyzerStatus",
1031                     "when": "inRustProject"
1032                 },
1033                 {
1034                     "command": "rust-analyzer.memoryUsage",
1035                     "when": "inRustProject"
1036                 },
1037                 {
1038                     "command": "rust-analyzer.reloadWorkspace",
1039                     "when": "inRustProject"
1040                 },
1041                 {
1042                     "command": "rust-analyzer.reload",
1043                     "when": "inRustProject"
1044                 },
1045                 {
1046                     "command": "rust-analyzer.updateGithubToken",
1047                     "when": "inRustProject"
1048                 },
1049                 {
1050                     "command": "rust-analyzer.onEnter",
1051                     "when": "inRustProject"
1052                 },
1053                 {
1054                     "command": "rust-analyzer.ssr",
1055                     "when": "inRustProject"
1056                 },
1057                 {
1058                     "command": "rust-analyzer.serverVersion",
1059                     "when": "inRustProject"
1060                 },
1061                 {
1062                     "command": "rust-analyzer.toggleInlayHints",
1063                     "when": "inRustProject"
1064                 },
1065                 {
1066                     "command": "rust-analyzer.openDocs",
1067                     "when": "inRustProject"
1068                 },
1069                 {
1070                     "command": "rust-analyzer.openCargoToml",
1071                     "when": "inRustProject"
1072                 }
1073             ]
1074         }
1075     }
1076 }