]> git.lizzy.rs Git - rust.git/blob - editors/code/package.json
Merge #7393
[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                 "rust-analyzer.assist.importMergeBehavior": {
353                     "markdownDescription": "The strategy to use when inserting new imports or merging imports.",
354                     "default": "full",
355                     "type": "string",
356                     "enum": [
357                         "none",
358                         "full",
359                         "last"
360                     ],
361                     "enumDescriptions": [
362                         "No merging",
363                         "Merge all layers of the import trees",
364                         "Only merge the last layer of the import trees"
365                     ]
366                 },
367                 "rust-analyzer.assist.importPrefix": {
368                     "markdownDescription": "The path structure for newly inserted paths to use.",
369                     "default": "plain",
370                     "type": "string",
371                     "enum": [
372                         "plain",
373                         "by_self",
374                         "by_crate"
375                     ],
376                     "enumDescriptions": [
377                         "Insert import paths relative to the current module, using up to one `super` prefix if the parent module contains the requested item.",
378                         "Prefix all import paths with `self` if they don't begin with `self`, `super`, `crate` or a crate name.",
379                         "Force import paths to be absolute by always starting them with `crate` or the crate name they refer to."
380                     ]
381                 },
382                 "rust-analyzer.callInfo.full": {
383                     "markdownDescription": "Show function name and docs in parameter hints.",
384                     "default": true,
385                     "type": "boolean"
386                 },
387                 "rust-analyzer.cargo.autoreload": {
388                     "markdownDescription": "Automatically refresh project info via `cargo metadata` on `Cargo.toml` changes.",
389                     "default": true,
390                     "type": "boolean"
391                 },
392                 "rust-analyzer.cargo.allFeatures": {
393                     "markdownDescription": "Activate all available features.",
394                     "default": false,
395                     "type": "boolean"
396                 },
397                 "rust-analyzer.cargo.features": {
398                     "markdownDescription": "List of features to activate.",
399                     "default": [],
400                     "type": "array",
401                     "items": {
402                         "type": "string"
403                     }
404                 },
405                 "rust-analyzer.cargo.loadOutDirsFromCheck": {
406                     "markdownDescription": "Run `cargo check` on startup to get the correct value for package OUT_DIRs.",
407                     "default": false,
408                     "type": "boolean"
409                 },
410                 "rust-analyzer.cargo.noDefaultFeatures": {
411                     "markdownDescription": "Do not activate the `default` feature.",
412                     "default": false,
413                     "type": "boolean"
414                 },
415                 "rust-analyzer.cargo.target": {
416                     "markdownDescription": "Compilation target (target triple).",
417                     "default": null,
418                     "type": [
419                         "null",
420                         "string"
421                     ]
422                 },
423                 "rust-analyzer.cargo.noSysroot": {
424                     "markdownDescription": "Internal config for debugging, disables loading of sysroot crates.",
425                     "default": false,
426                     "type": "boolean"
427                 },
428                 "rust-analyzer.checkOnSave.enable": {
429                     "markdownDescription": "Run specified `cargo check` command for diagnostics on save.",
430                     "default": true,
431                     "type": "boolean"
432                 },
433                 "rust-analyzer.checkOnSave.allFeatures": {
434                     "markdownDescription": "Check with all features (will be passed as `--all-features`). Defaults to `#rust-analyzer.cargo.allFeatures#`.",
435                     "default": null,
436                     "type": [
437                         "null",
438                         "boolean"
439                     ]
440                 },
441                 "rust-analyzer.checkOnSave.allTargets": {
442                     "markdownDescription": "Check all targets and tests (will be passed as `--all-targets`).",
443                     "default": true,
444                     "type": "boolean"
445                 },
446                 "rust-analyzer.checkOnSave.command": {
447                     "markdownDescription": "Cargo command to use for `cargo check`.",
448                     "default": "check",
449                     "type": "string"
450                 },
451                 "rust-analyzer.checkOnSave.noDefaultFeatures": {
452                     "markdownDescription": "Do not activate the `default` feature.",
453                     "default": null,
454                     "type": [
455                         "null",
456                         "boolean"
457                     ]
458                 },
459                 "rust-analyzer.checkOnSave.target": {
460                     "markdownDescription": "Check for a specific target. Defaults to `#rust-analyzer.cargo.target#`.",
461                     "default": null,
462                     "type": [
463                         "null",
464                         "string"
465                     ]
466                 },
467                 "rust-analyzer.checkOnSave.extraArgs": {
468                     "markdownDescription": "Extra arguments for `cargo check`.",
469                     "default": [],
470                     "type": "array",
471                     "items": {
472                         "type": "string"
473                     }
474                 },
475                 "rust-analyzer.checkOnSave.features": {
476                     "markdownDescription": "List of features to activate. Defaults to `#rust-analyzer.cargo.features#`.",
477                     "default": null,
478                     "type": [
479                         "null",
480                         "array"
481                     ],
482                     "items": {
483                         "type": "string"
484                     }
485                 },
486                 "rust-analyzer.checkOnSave.overrideCommand": {
487                     "markdownDescription": "Advanced option, fully override the command rust-analyzer uses for checking. The command should include `--message-format=json` or similar option.",
488                     "default": null,
489                     "type": [
490                         "null",
491                         "array"
492                     ],
493                     "items": {
494                         "type": "string"
495                     }
496                 },
497                 "rust-analyzer.completion.addCallArgumentSnippets": {
498                     "markdownDescription": "Whether to add argument snippets when completing functions.",
499                     "default": true,
500                     "type": "boolean"
501                 },
502                 "rust-analyzer.completion.addCallParenthesis": {
503                     "markdownDescription": "Whether to add parenthesis when completing functions.",
504                     "default": true,
505                     "type": "boolean"
506                 },
507                 "rust-analyzer.completion.postfix.enable": {
508                     "markdownDescription": "Whether to show postfix snippets like `dbg`, `if`, `not`, etc.",
509                     "default": true,
510                     "type": "boolean"
511                 },
512                 "rust-analyzer.completion.autoimport.enable": {
513                     "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.",
514                     "default": true,
515                     "type": "boolean"
516                 },
517                 "rust-analyzer.diagnostics.enable": {
518                     "markdownDescription": "Whether to show native rust-analyzer diagnostics.",
519                     "default": true,
520                     "type": "boolean"
521                 },
522                 "rust-analyzer.diagnostics.enableExperimental": {
523                     "markdownDescription": "Whether to show experimental rust-analyzer diagnostics that might have more false positives than usual.",
524                     "default": true,
525                     "type": "boolean"
526                 },
527                 "rust-analyzer.diagnostics.disabled": {
528                     "markdownDescription": "List of rust-analyzer diagnostics to disable.",
529                     "default": [],
530                     "type": "array",
531                     "items": {
532                         "type": "string"
533                     },
534                     "uniqueItems": true
535                 },
536                 "rust-analyzer.diagnostics.warningsAsHint": {
537                     "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`.",
538                     "default": [],
539                     "type": "array",
540                     "items": {
541                         "type": "string"
542                     }
543                 },
544                 "rust-analyzer.diagnostics.warningsAsInfo": {
545                     "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`.",
546                     "default": [],
547                     "type": "array",
548                     "items": {
549                         "type": "string"
550                     }
551                 },
552                 "rust-analyzer.files.watcher": {
553                     "markdownDescription": "Controls file watching implementation.",
554                     "default": "client",
555                     "type": "string"
556                 },
557                 "rust-analyzer.hoverActions.debug": {
558                     "markdownDescription": "Whether to show `Debug` action. Only applies when `#rust-analyzer.hoverActions.enable#` is set.",
559                     "default": true,
560                     "type": "boolean"
561                 },
562                 "rust-analyzer.hoverActions.enable": {
563                     "markdownDescription": "Whether to show HoverActions in Rust files.",
564                     "default": true,
565                     "type": "boolean"
566                 },
567                 "rust-analyzer.hoverActions.gotoTypeDef": {
568                     "markdownDescription": "Whether to show `Go to Type Definition` action. Only applies when `#rust-analyzer.hoverActions.enable#` is set.",
569                     "default": true,
570                     "type": "boolean"
571                 },
572                 "rust-analyzer.hoverActions.implementations": {
573                     "markdownDescription": "Whether to show `Implementations` action. Only applies when `#rust-analyzer.hoverActions.enable#` is set.",
574                     "default": true,
575                     "type": "boolean"
576                 },
577                 "rust-analyzer.hoverActions.run": {
578                     "markdownDescription": "Whether to show `Run` action. Only applies when `#rust-analyzer.hoverActions.enable#` is set.",
579                     "default": true,
580                     "type": "boolean"
581                 },
582                 "rust-analyzer.hoverActions.linksInHover": {
583                     "markdownDescription": "Use markdown syntax for links in hover.",
584                     "default": true,
585                     "type": "boolean"
586                 },
587                 "rust-analyzer.inlayHints.chainingHints": {
588                     "markdownDescription": "Whether to show inlay type hints for method chains.",
589                     "default": true,
590                     "type": "boolean"
591                 },
592                 "rust-analyzer.inlayHints.maxLength": {
593                     "markdownDescription": "Maximum length for inlay hints. Default is unlimited.",
594                     "default": null,
595                     "type": [
596                         "null",
597                         "integer"
598                     ],
599                     "minimum": 0
600                 },
601                 "rust-analyzer.inlayHints.parameterHints": {
602                     "markdownDescription": "Whether to show function parameter name inlay hints at the call site.",
603                     "default": true,
604                     "type": "boolean"
605                 },
606                 "rust-analyzer.inlayHints.typeHints": {
607                     "markdownDescription": "Whether to show inlay type hints for variables.",
608                     "default": true,
609                     "type": "boolean"
610                 },
611                 "rust-analyzer.lens.debug": {
612                     "markdownDescription": "Whether to show `Debug` lens. Only applies when `#rust-analyzer.lens.enable#` is set.",
613                     "default": true,
614                     "type": "boolean"
615                 },
616                 "rust-analyzer.lens.enable": {
617                     "markdownDescription": "Whether to show CodeLens in Rust files.",
618                     "default": true,
619                     "type": "boolean"
620                 },
621                 "rust-analyzer.lens.implementations": {
622                     "markdownDescription": "Whether to show `Implementations` lens. Only applies when `#rust-analyzer.lens.enable#` is set.",
623                     "default": true,
624                     "type": "boolean"
625                 },
626                 "rust-analyzer.lens.run": {
627                     "markdownDescription": "Whether to show `Run` lens. Only applies when `#rust-analyzer.lens.enable#` is set.",
628                     "default": true,
629                     "type": "boolean"
630                 },
631                 "rust-analyzer.lens.methodReferences": {
632                     "markdownDescription": "Whether to show `Method References` lens. Only applies when `#rust-analyzer.lens.enable#` is set.",
633                     "default": false,
634                     "type": "boolean"
635                 },
636                 "rust-analyzer.lens.references": {
637                     "markdownDescription": "Whether to show `References` lens. Only applies when `#rust-analyzer.lens.enable#` is set.",
638                     "default": false,
639                     "type": "boolean"
640                 },
641                 "rust-analyzer.linkedProjects": {
642                     "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.",
643                     "default": [],
644                     "type": "array",
645                     "items": {
646                         "type": [
647                             "string",
648                             "object"
649                         ]
650                     }
651                 },
652                 "rust-analyzer.lruCapacity": {
653                     "markdownDescription": "Number of syntax trees rust-analyzer keeps in memory.  Defaults to 128.",
654                     "default": null,
655                     "type": [
656                         "null",
657                         "integer"
658                     ],
659                     "minimum": 0
660                 },
661                 "rust-analyzer.notifications.cargoTomlNotFound": {
662                     "markdownDescription": "Whether to show `can't find Cargo.toml` error message.",
663                     "default": true,
664                     "type": "boolean"
665                 },
666                 "rust-analyzer.procMacro.enable": {
667                     "markdownDescription": "Enable Proc macro support, `#rust-analyzer.cargo.loadOutDirsFromCheck#` must be enabled.",
668                     "default": false,
669                     "type": "boolean"
670                 },
671                 "rust-analyzer.procMacro.server": {
672                     "markdownDescription": "Internal config, path to proc-macro server executable (typically, this is rust-analyzer itself, but we override this in tests).",
673                     "default": null,
674                     "type": [
675                         "null",
676                         "string"
677                     ]
678                 },
679                 "rust-analyzer.runnables.overrideCargo": {
680                     "markdownDescription": "Command to be executed instead of 'cargo' for runnables.",
681                     "default": null,
682                     "type": [
683                         "null",
684                         "string"
685                     ]
686                 },
687                 "rust-analyzer.runnables.cargoExtraArgs": {
688                     "markdownDescription": "Additional arguments to be passed to cargo for runnables such as tests or binaries.\\nFor example, it may be `--release`.",
689                     "default": [],
690                     "type": "array",
691                     "items": {
692                         "type": "string"
693                     }
694                 },
695                 "rust-analyzer.rustcSource": {
696                     "markdownDescription": "Path to the rust compiler sources, for usage in rustc_private projects.",
697                     "default": null,
698                     "type": [
699                         "null",
700                         "string"
701                     ]
702                 },
703                 "rust-analyzer.rustfmt.extraArgs": {
704                     "markdownDescription": "Additional arguments to `rustfmt`.",
705                     "default": [],
706                     "type": "array",
707                     "items": {
708                         "type": "string"
709                     }
710                 },
711                 "rust-analyzer.rustfmt.overrideCommand": {
712                     "markdownDescription": "Advanced option, fully override the command rust-analyzer uses for formatting.",
713                     "default": null,
714                     "type": [
715                         "null",
716                         "array"
717                     ],
718                     "items": {
719                         "type": "string"
720                     }
721                 }
722             }
723         },
724         "problemPatterns": [
725             {
726                 "name": "rustc",
727                 "patterns": [
728                     {
729                         "regexp": "^(warning|warn|error)(?:\\[(.*?)\\])?: (.*)$",
730                         "severity": 1,
731                         "code": 2,
732                         "message": 3
733                     },
734                     {
735                         "regexp": "^[\\s->=]*(.*?):(\\d*):(\\d*)\\s*$",
736                         "file": 1,
737                         "line": 2,
738                         "column": 3
739                     }
740                 ]
741             },
742             {
743                 "name": "rustc-json",
744                 "patterns": [
745                     {
746                         "regexp": "^.*\"message\":{\"message\":\"([^\"]*).*?\"file_name\":\"([^\"]+).*?\"line_start\":(\\d+).*?\"line_end\":(\\d+).*?\"column_start\":(\\d+).*?\"column_end\":(\\d+).*}$",
747                         "message": 1,
748                         "file": 2,
749                         "line": 3,
750                         "endLine": 4,
751                         "column": 5,
752                         "endColumn": 6
753                     }
754                 ]
755             }
756         ],
757         "languages": [
758             {
759                 "id": "ra_syntax_tree",
760                 "extensions": [
761                     ".rast"
762                 ]
763             },
764             {
765                 "id": "rust",
766                 "extensions": [
767                     ".rs"
768                 ],
769                 "aliases": [
770                     "Rust",
771                     "rs"
772                 ],
773                 "configuration": "language-configuration.json"
774             }
775         ],
776         "grammars": [
777             {
778                 "language": "ra_syntax_tree",
779                 "scopeName": "source.ra_syntax_tree",
780                 "path": "ra_syntax_tree.tmGrammar.json"
781             }
782         ],
783         "problemMatchers": [
784             {
785                 "name": "rustc",
786                 "owner": "rustc",
787                 "source": "rustc",
788                 "fileLocation": [
789                     "autoDetect",
790                     "${workspaceRoot}"
791                 ],
792                 "pattern": "$rustc"
793             },
794             {
795                 "name": "rustc-json",
796                 "owner": "rustc",
797                 "source": "rustc",
798                 "fileLocation": [
799                     "autoDetect",
800                     "${workspaceRoot}"
801                 ],
802                 "pattern": "$rustc-json"
803             },
804             {
805                 "name": "rustc-watch",
806                 "owner": "rustc",
807                 "source": "rustc",
808                 "fileLocation": [
809                     "autoDetect",
810                     "${workspaceRoot}"
811                 ],
812                 "background": {
813                     "beginsPattern": "^\\[Running\\b",
814                     "endsPattern": "^\\[Finished running\\b"
815                 },
816                 "pattern": "$rustc"
817             }
818         ],
819         "colors": [
820             {
821                 "id": "rust_analyzer.inlayHints.foreground",
822                 "description": "Foreground color of inlay hints (is overriden by more specific rust_analyzer.inlayHints.foreground.* configurations)",
823                 "defaults": {
824                     "dark": "#A0A0A0F0",
825                     "light": "#747474",
826                     "highContrast": "#BEBEBE"
827                 }
828             },
829             {
830                 "id": "rust_analyzer.inlayHints.background",
831                 "description": "Background color of inlay hints (is overriden by more specific rust_analyzer.inlayHints.background.* configurations)",
832                 "defaults": {
833                     "dark": "#11223300",
834                     "light": "#11223300",
835                     "highContrast": "#11223300"
836                 }
837             },
838             {
839                 "id": "rust_analyzer.inlayHints.foreground.typeHints",
840                 "description": "Foreground color of inlay type hints for variables (overrides rust_analyzer.inlayHints.foreground)",
841                 "defaults": {
842                     "dark": "rust_analyzer.inlayHints.foreground",
843                     "light": "rust_analyzer.inlayHints.foreground",
844                     "highContrast": "rust_analyzer.inlayHints.foreground"
845                 }
846             },
847             {
848                 "id": "rust_analyzer.inlayHints.foreground.chainingHints",
849                 "description": "Foreground color of inlay type hints for method chains (overrides rust_analyzer.inlayHints.foreground)",
850                 "defaults": {
851                     "dark": "rust_analyzer.inlayHints.foreground",
852                     "light": "rust_analyzer.inlayHints.foreground",
853                     "highContrast": "rust_analyzer.inlayHints.foreground"
854                 }
855             },
856             {
857                 "id": "rust_analyzer.inlayHints.foreground.parameterHints",
858                 "description": "Foreground color of function parameter name inlay hints at the call site (overrides rust_analyzer.inlayHints.foreground)",
859                 "defaults": {
860                     "dark": "rust_analyzer.inlayHints.foreground",
861                     "light": "rust_analyzer.inlayHints.foreground",
862                     "highContrast": "rust_analyzer.inlayHints.foreground"
863                 }
864             },
865             {
866                 "id": "rust_analyzer.inlayHints.background.typeHints",
867                 "description": "Background color of inlay type hints for variables (overrides rust_analyzer.inlayHints.background)",
868                 "defaults": {
869                     "dark": "rust_analyzer.inlayHints.background",
870                     "light": "rust_analyzer.inlayHints.background",
871                     "highContrast": "rust_analyzer.inlayHints.background"
872                 }
873             },
874             {
875                 "id": "rust_analyzer.inlayHints.background.chainingHints",
876                 "description": "Background color of inlay type hints for method chains (overrides rust_analyzer.inlayHints.background)",
877                 "defaults": {
878                     "dark": "rust_analyzer.inlayHints.background",
879                     "light": "rust_analyzer.inlayHints.background",
880                     "highContrast": "rust_analyzer.inlayHints.background"
881                 }
882             },
883             {
884                 "id": "rust_analyzer.inlayHints.background.parameterHints",
885                 "description": "Background color of function parameter name inlay hints at the call site (overrides rust_analyzer.inlayHints.background)",
886                 "defaults": {
887                     "dark": "rust_analyzer.inlayHints.background",
888                     "light": "rust_analyzer.inlayHints.background",
889                     "highContrast": "rust_analyzer.inlayHints.background"
890                 }
891             },
892             {
893                 "id": "rust_analyzer.syntaxTreeBorder",
894                 "description": "Color of the border displayed in the Rust source code for the selected syntax node (see \"Show Syntax Tree\" command)",
895                 "defaults": {
896                     "dark": "#ffffff",
897                     "light": "#b700ff",
898                     "highContrast": "#b700ff"
899                 }
900             }
901         ],
902         "semanticTokenTypes": [
903             {
904                 "id": "attribute",
905                 "description": "Style for attributes"
906             },
907             {
908                 "id": "boolean",
909                 "description": "Style for boolean literals",
910                 "superType": "keyword"
911             },
912             {
913                 "id": "builtinType",
914                 "description": "Style for builtin types",
915                 "superType": "type"
916             },
917             {
918                 "id": "lifetime",
919                 "description": "Style for lifetimes"
920             },
921             {
922                 "id": "selfKeyword",
923                 "description": "Style for the self keyword",
924                 "superType": "keyword"
925             },
926             {
927                 "id": "typeAlias",
928                 "description": "Style for type aliases",
929                 "superType": "type"
930             },
931             {
932                 "id": "union",
933                 "description": "Style for C-style untagged unions",
934                 "superType": "type"
935             },
936             {
937                 "id": "unresolvedReference",
938                 "description": "Style for names which can not be resolved due to compilation errors"
939             },
940             {
941                 "id": "formatSpecifier",
942                 "description": "Style for {} placeholders in format strings"
943             }
944         ],
945         "semanticTokenModifiers": [
946             {
947                 "id": "attribute",
948                 "description": "Style for elements within attributes"
949             },
950             {
951                 "id": "constant",
952                 "description": "Style for compile-time constants"
953             },
954             {
955                 "id": "controlFlow",
956                 "description": "Style for control flow keywords"
957             },
958             {
959                 "id": "mutable",
960                 "description": "Style for mutable bindings"
961             },
962             {
963                 "id": "unsafe",
964                 "description": "Style for unsafe operations"
965             },
966             {
967                 "id": "consuming",
968                 "description": "Style for non-Copy lvalues consumed by method/function call"
969             },
970             {
971                 "id": "callable",
972                 "description": "Style for variables/parameters that can be used in call expressions"
973             }
974         ],
975         "semanticTokenScopes": [
976             {
977                 "language": "rust",
978                 "scopes": {
979                     "attribute": [
980                         "meta.attribute.rust"
981                     ],
982                     "function.attribute": [
983                         "entity.name.function.attribute.rust"
984                     ],
985                     "boolean": [
986                         "constant.language.boolean.rust"
987                     ],
988                     "builtinType": [
989                         "support.type.primitive.rust"
990                     ],
991                     "lifetime": [
992                         "storage.modifier.lifetime.rust"
993                     ],
994                     "typeAlias": [
995                         "entity.name.type.typeAlias.rust"
996                     ],
997                     "union": [
998                         "entity.name.type.union.rust"
999                     ],
1000                     "struct": [
1001                         "entity.name.type.struct.rust"
1002                     ],
1003                     "keyword": [
1004                         "keyword.other.rust"
1005                     ],
1006                     "keyword.controlFlow": [
1007                         "keyword.control.rust"
1008                     ],
1009                     "variable.constant": [
1010                         "variable.other.constant.rust"
1011                     ],
1012                     "formatSpecifier": [
1013                         "punctuation.section.embedded.rust"
1014                     ],
1015                     "*.mutable": [
1016                         "markup.underline"
1017                     ]
1018                 }
1019             }
1020         ],
1021         "menus": {
1022             "commandPalette": [
1023                 {
1024                     "command": "rust-analyzer.syntaxTree",
1025                     "when": "inRustProject"
1026                 },
1027                 {
1028                     "command": "rust-analyzer.viewHir",
1029                     "when": "inRustProject"
1030                 },
1031                 {
1032                     "command": "rust-analyzer.expandMacro",
1033                     "when": "inRustProject"
1034                 },
1035                 {
1036                     "command": "rust-analyzer.matchingBrace",
1037                     "when": "inRustProject"
1038                 },
1039                 {
1040                     "command": "rust-analyzer.parentModule",
1041                     "when": "inRustProject"
1042                 },
1043                 {
1044                     "command": "rust-analyzer.joinLines",
1045                     "when": "inRustProject"
1046                 },
1047                 {
1048                     "command": "rust-analyzer.run",
1049                     "when": "inRustProject"
1050                 },
1051                 {
1052                     "command": "rust-analyzer.debug",
1053                     "when": "inRustProject"
1054                 },
1055                 {
1056                     "command": "rust-analyzer.newDebugConfig",
1057                     "when": "inRustProject"
1058                 },
1059                 {
1060                     "command": "rust-analyzer.analyzerStatus",
1061                     "when": "inRustProject"
1062                 },
1063                 {
1064                     "command": "rust-analyzer.memoryUsage",
1065                     "when": "inRustProject"
1066                 },
1067                 {
1068                     "command": "rust-analyzer.reloadWorkspace",
1069                     "when": "inRustProject"
1070                 },
1071                 {
1072                     "command": "rust-analyzer.reload",
1073                     "when": "inRustProject"
1074                 },
1075                 {
1076                     "command": "rust-analyzer.updateGithubToken",
1077                     "when": "inRustProject"
1078                 },
1079                 {
1080                     "command": "rust-analyzer.onEnter",
1081                     "when": "inRustProject"
1082                 },
1083                 {
1084                     "command": "rust-analyzer.ssr",
1085                     "when": "inRustProject"
1086                 },
1087                 {
1088                     "command": "rust-analyzer.serverVersion",
1089                     "when": "inRustProject"
1090                 },
1091                 {
1092                     "command": "rust-analyzer.toggleInlayHints",
1093                     "when": "inRustProject"
1094                 },
1095                 {
1096                     "command": "rust-analyzer.openDocs",
1097                     "when": "inRustProject"
1098                 },
1099                 {
1100                     "command": "rust-analyzer.openCargoToml",
1101                     "when": "inRustProject"
1102                 }
1103             ]
1104         }
1105     }
1106 }