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