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