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