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