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