]> git.lizzy.rs Git - rust.git/blob - editors/code/package.json
Update plugin-node-resolve
[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.53.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         "https-proxy-agent": "^5.0.0",
39         "node-fetch": "^2.6.1",
40         "vscode-languageclient": "^7.1.0-next.5"
41     },
42     "devDependencies": {
43         "@rollup/plugin-commonjs": "^17.0.0",
44         "@rollup/plugin-node-resolve": "^13.0.0",
45         "@types/glob": "^7.1.3",
46         "@types/mocha": "^8.0.4",
47         "@types/node": "~14.17.3",
48         "@types/node-fetch": "^2.5.7",
49         "@types/vscode": "^1.53.0",
50         "@typescript-eslint/eslint-plugin": "^4.26.1",
51         "@typescript-eslint/parser": "^4.26.1",
52         "eslint": "^7.28.0",
53         "glob": "^7.1.6",
54         "mocha": "^8.2.1",
55         "rollup": "^2.51.1",
56         "tslib": "^2.0.3",
57         "typescript": "^4.3.2",
58         "typescript-formatter": "^7.2.2",
59         "vsce": "^1.85.0",
60         "vscode-test": "^1.5.1"
61     },
62     "activationEvents": [
63         "onLanguage:rust",
64         "onCommand:rust-analyzer.analyzerStatus",
65         "onCommand:rust-analyzer.memoryUsage",
66         "onCommand:rust-analyzer.reloadWorkspace",
67         "workspaceContains:**/Cargo.toml"
68     ],
69     "main": "./out/src/main",
70     "contributes": {
71         "taskDefinitions": [
72             {
73                 "type": "cargo",
74                 "required": [
75                     "command"
76                 ],
77                 "properties": {
78                     "label": {
79                         "type": "string"
80                     },
81                     "command": {
82                         "type": "string"
83                     },
84                     "args": {
85                         "type": "array",
86                         "items": {
87                             "type": "string"
88                         }
89                     },
90                     "env": {
91                         "type": "object",
92                         "patternProperties": {
93                             ".+": {
94                                 "type": "string"
95                             }
96                         }
97                     }
98                 }
99             }
100         ],
101         "commands": [
102             {
103                 "command": "rust-analyzer.syntaxTree",
104                 "title": "Show Syntax Tree",
105                 "category": "Rust Analyzer"
106             },
107             {
108                 "command": "rust-analyzer.viewHir",
109                 "title": "View Hir",
110                 "category": "Rust Analyzer"
111             },
112             {
113                 "command": "rust-analyzer.viewItemTree",
114                 "title": "Debug ItemTree",
115                 "category": "Rust Analyzer"
116             },
117             {
118                 "command": "rust-analyzer.viewCrateGraph",
119                 "title": "View Crate Graph",
120                 "category": "Rust Analyzer"
121             },
122             {
123                 "command": "rust-analyzer.viewFullCrateGraph",
124                 "title": "View Crate Graph (Full)",
125                 "category": "Rust Analyzer"
126             },
127             {
128                 "command": "rust-analyzer.expandMacro",
129                 "title": "Expand macro recursively",
130                 "category": "Rust Analyzer"
131             },
132             {
133                 "command": "rust-analyzer.matchingBrace",
134                 "title": "Find matching brace",
135                 "category": "Rust Analyzer"
136             },
137             {
138                 "command": "rust-analyzer.parentModule",
139                 "title": "Locate parent module",
140                 "category": "Rust Analyzer"
141             },
142             {
143                 "command": "rust-analyzer.joinLines",
144                 "title": "Join lines",
145                 "category": "Rust Analyzer"
146             },
147             {
148                 "command": "rust-analyzer.run",
149                 "title": "Run",
150                 "category": "Rust Analyzer"
151             },
152             {
153                 "command": "rust-analyzer.copyRunCommandLine",
154                 "title": "Copy Run Command Line",
155                 "category": "Rust Analyzer"
156             },
157             {
158                 "command": "rust-analyzer.debug",
159                 "title": "Debug",
160                 "category": "Rust Analyzer"
161             },
162             {
163                 "command": "rust-analyzer.newDebugConfig",
164                 "title": "Generate launch configuration",
165                 "category": "Rust Analyzer"
166             },
167             {
168                 "command": "rust-analyzer.analyzerStatus",
169                 "title": "Status",
170                 "category": "Rust Analyzer"
171             },
172             {
173                 "command": "rust-analyzer.memoryUsage",
174                 "title": "Memory Usage (Clears Database)",
175                 "category": "Rust Analyzer"
176             },
177             {
178                 "command": "rust-analyzer.reloadWorkspace",
179                 "title": "Reload workspace",
180                 "category": "Rust Analyzer"
181             },
182             {
183                 "command": "rust-analyzer.reload",
184                 "title": "Restart server",
185                 "category": "Rust Analyzer"
186             },
187             {
188                 "command": "rust-analyzer.updateGithubToken",
189                 "title": "Update Github API token",
190                 "category": "Rust Analyzer"
191             },
192             {
193                 "command": "rust-analyzer.onEnter",
194                 "title": "Enhanced enter key",
195                 "category": "Rust Analyzer"
196             },
197             {
198                 "command": "rust-analyzer.ssr",
199                 "title": "Structural Search Replace",
200                 "category": "Rust Analyzer"
201             },
202             {
203                 "command": "rust-analyzer.serverVersion",
204                 "title": "Show RA Version",
205                 "category": "Rust Analyzer"
206             },
207             {
208                 "command": "rust-analyzer.toggleInlayHints",
209                 "title": "Toggle inlay hints",
210                 "category": "Rust Analyzer"
211             },
212             {
213                 "command": "rust-analyzer.openDocs",
214                 "title": "Open docs under cursor",
215                 "category": "Rust Analyzer"
216             },
217             {
218                 "command": "rust-analyzer.openCargoToml",
219                 "title": "Open Cargo.toml",
220                 "category": "Rust Analyzer"
221             },
222             {
223                 "command": "rust-analyzer.peekTests",
224                 "title": "Peek related tests",
225                 "category": "Rust Analyzer"
226             },
227             {
228                 "command": "rust-analyzer.moveItemUp",
229                 "title": "Move item up",
230                 "category": "Rust Analyzer"
231             },
232             {
233                 "command": "rust-analyzer.moveItemDown",
234                 "title": "Move item down",
235                 "category": "Rust Analyzer"
236             }
237         ],
238         "keybindings": [
239             {
240                 "command": "rust-analyzer.parentModule",
241                 "key": "ctrl+shift+u",
242                 "when": "editorTextFocus && editorLangId == rust"
243             },
244             {
245                 "command": "rust-analyzer.matchingBrace",
246                 "key": "ctrl+shift+m",
247                 "when": "editorTextFocus && editorLangId == rust"
248             },
249             {
250                 "command": "rust-analyzer.joinLines",
251                 "key": "ctrl+shift+j",
252                 "when": "editorTextFocus && editorLangId == rust"
253             }
254         ],
255         "configuration": {
256             "type": "object",
257             "title": "Rust Analyzer",
258             "properties": {
259                 "rust-analyzer.cargoRunner": {
260                     "type": [
261                         "null",
262                         "string"
263                     ],
264                     "default": null,
265                     "description": "Custom cargo runner extension ID."
266                 },
267                 "rust-analyzer.runnableEnv": {
268                     "anyOf": [
269                         {
270                             "type": "null"
271                         },
272                         {
273                             "type": "array",
274                             "items": {
275                                 "type": "object",
276                                 "properties": {
277                                     "mask": {
278                                         "type": "string",
279                                         "description": "Runnable name mask"
280                                     },
281                                     "env": {
282                                         "type": "object",
283                                         "description": "Variables in form of { \"key\": \"value\"}"
284                                     }
285                                 }
286                             }
287                         },
288                         {
289                             "type": "object",
290                             "description": "Variables in form of { \"key\": \"value\"}"
291                         }
292                     ],
293                     "default": null,
294                     "markdownDescription": "Environment variables passed to the runnable launched using `Test` or `Debug` lens or `rust-analyzer.run` command."
295                 },
296                 "rust-analyzer.inlayHints.enable": {
297                     "type": "boolean",
298                     "default": true,
299                     "description": "Whether to show inlay hints."
300                 },
301                 "rust-analyzer.inlayHints.smallerHints": {
302                     "type": "boolean",
303                     "default": true,
304                     "description": "Whether inlay hints font size should be smaller than editor's font size."
305                 },
306                 "rust-analyzer.updates.channel": {
307                     "type": "string",
308                     "enum": [
309                         "stable",
310                         "nightly"
311                     ],
312                     "default": "stable",
313                     "markdownEnumDescriptions": [
314                         "`stable` updates are shipped weekly, they don't contain cutting-edge features from VSCode proposed APIs but have less bugs in general.",
315                         "`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**."
316                     ],
317                     "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."
318                 },
319                 "rust-analyzer.updates.askBeforeDownload": {
320                     "type": "boolean",
321                     "default": false,
322                     "description": "Whether to ask for permission before downloading any files from the Internet."
323                 },
324                 "rust-analyzer.server.path": {
325                     "type": [
326                         "null",
327                         "string"
328                     ],
329                     "default": null,
330                     "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"
331                 },
332                 "rust-analyzer.server.extraEnv": {
333                     "type": [
334                         "null",
335                         "object"
336                     ],
337                     "default": null,
338                     "markdownDescription": "Extra environment variables that will be passed to the rust-analyzer executable. Useful for passing e.g. `RA_LOG` for debugging."
339                 },
340                 "rust-analyzer.trace.server": {
341                     "type": "string",
342                     "scope": "window",
343                     "enum": [
344                         "off",
345                         "messages",
346                         "verbose"
347                     ],
348                     "enumDescriptions": [
349                         "No traces",
350                         "Error only",
351                         "Full log"
352                     ],
353                     "default": "off",
354                     "description": "Trace requests to the rust-analyzer (this is usually overly verbose and not recommended for regular users)."
355                 },
356                 "rust-analyzer.trace.extension": {
357                     "description": "Enable logging of VS Code extensions itself.",
358                     "type": "boolean",
359                     "default": false
360                 },
361                 "rust-analyzer.debug.engine": {
362                     "type": "string",
363                     "enum": [
364                         "auto",
365                         "vadimcn.vscode-lldb",
366                         "ms-vscode.cpptools"
367                     ],
368                     "default": "auto",
369                     "description": "Preferred debug engine.",
370                     "markdownEnumDescriptions": [
371                         "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).",
372                         "Use [CodeLLDB](https://marketplace.visualstudio.com/items?itemName=vadimcn.vscode-lldb)",
373                         "Use [MS C++ tools](https://marketplace.visualstudio.com/items?itemName=ms-vscode.cpptools)"
374                     ]
375                 },
376                 "rust-analyzer.debug.sourceFileMap": {
377                     "type": [
378                         "object",
379                         "string"
380                     ],
381                     "const": "auto",
382                     "description": "Optional source file mappings passed to the debug engine.",
383                     "default": {
384                         "/rustc/<id>": "${env:USERPROFILE}/.rustup/toolchains/<toolchain-id>/lib/rustlib/src/rust"
385                     }
386                 },
387                 "rust-analyzer.debug.openDebugPane": {
388                     "markdownDescription": "Whether to open up the `Debug Panel` on debugging start.",
389                     "type": "boolean",
390                     "default": false
391                 },
392                 "rust-analyzer.debug.engineSettings": {
393                     "type": "object",
394                     "default": {},
395                     "markdownDescription": "Optional settings passed to the debug engine. Example: `{ \"lldb\": { \"terminal\":\"external\"} }`"
396                 },
397                 "$generated-start": {},
398                 "rust-analyzer.assist.importGranularity": {
399                     "markdownDescription": "How imports should be grouped into use statements.",
400                     "default": "crate",
401                     "type": "string",
402                     "enum": [
403                         "preserve",
404                         "crate",
405                         "module",
406                         "item"
407                     ],
408                     "enumDescriptions": [
409                         "Do not change the granularity of any imports and preserve the original structure written by the developer.",
410                         "Merge imports from the same crate into a single use statement. Conversely, imports from different crates are split into separate statements.",
411                         "Merge imports from the same module into a single use statement. Conversely, imports from different modules are split into separate statements.",
412                         "Flatten imports so that each has its own use statement."
413                     ]
414                 },
415                 "rust-analyzer.assist.importEnforceGranularity": {
416                     "markdownDescription": "Whether to enforce the import granularity setting for all files. If set to false rust-analyzer will try to keep import styles consistent per file.",
417                     "default": false,
418                     "type": "boolean"
419                 },
420                 "rust-analyzer.assist.importPrefix": {
421                     "markdownDescription": "The path structure for newly inserted paths to use.",
422                     "default": "plain",
423                     "type": "string",
424                     "enum": [
425                         "plain",
426                         "self",
427                         "crate"
428                     ],
429                     "enumDescriptions": [
430                         "Insert import paths relative to the current module, using up to one `super` prefix if the parent module contains the requested item.",
431                         "Insert import paths relative to the current module, using up to one `super` prefix if the parent module contains the requested item. Prefixes `self` in front of the path if it starts with a module.",
432                         "Force import paths to be absolute by always starting them with `crate` or the extern crate name they come from."
433                     ]
434                 },
435                 "rust-analyzer.assist.importGroup": {
436                     "markdownDescription": "Group inserted imports by the [following order](https://rust-analyzer.github.io/manual.html#auto-import). Groups are separated by newlines.",
437                     "default": true,
438                     "type": "boolean"
439                 },
440                 "rust-analyzer.assist.allowMergingIntoGlobImports": {
441                     "markdownDescription": "Whether to allow import insertion to merge new imports into single path glob imports like `use std::fmt::*;`.",
442                     "default": true,
443                     "type": "boolean"
444                 },
445                 "rust-analyzer.callInfo.full": {
446                     "markdownDescription": "Show function name and docs in parameter hints.",
447                     "default": true,
448                     "type": "boolean"
449                 },
450                 "rust-analyzer.cargo.autoreload": {
451                     "markdownDescription": "Automatically refresh project info via `cargo metadata` on\n`Cargo.toml` changes.",
452                     "default": true,
453                     "type": "boolean"
454                 },
455                 "rust-analyzer.cargo.allFeatures": {
456                     "markdownDescription": "Activate all available features (`--all-features`).",
457                     "default": false,
458                     "type": "boolean"
459                 },
460                 "rust-analyzer.cargo.unsetTest": {
461                     "markdownDescription": "Unsets `#[cfg(test)]` for the specified crates.",
462                     "default": [
463                         "core"
464                     ],
465                     "type": "array",
466                     "items": {
467                         "type": "string"
468                     }
469                 },
470                 "rust-analyzer.cargo.features": {
471                     "markdownDescription": "List of features to activate.",
472                     "default": [],
473                     "type": "array",
474                     "items": {
475                         "type": "string"
476                     }
477                 },
478                 "rust-analyzer.cargo.runBuildScripts": {
479                     "markdownDescription": "Run build scripts (`build.rs`) for more precise code analysis.",
480                     "default": true,
481                     "type": "boolean"
482                 },
483                 "rust-analyzer.cargo.useRustcWrapperForBuildScripts": {
484                     "markdownDescription": "Use `RUSTC_WRAPPER=rust-analyzer` when running build scripts to\navoid compiling unnecessary things.",
485                     "default": true,
486                     "type": "boolean"
487                 },
488                 "rust-analyzer.cargo.noDefaultFeatures": {
489                     "markdownDescription": "Do not activate the `default` feature.",
490                     "default": false,
491                     "type": "boolean"
492                 },
493                 "rust-analyzer.cargo.target": {
494                     "markdownDescription": "Compilation target (target triple).",
495                     "default": null,
496                     "type": [
497                         "null",
498                         "string"
499                     ]
500                 },
501                 "rust-analyzer.cargo.noSysroot": {
502                     "markdownDescription": "Internal config for debugging, disables loading of sysroot crates.",
503                     "default": false,
504                     "type": "boolean"
505                 },
506                 "rust-analyzer.checkOnSave.enable": {
507                     "markdownDescription": "Run specified `cargo check` command for diagnostics on save.",
508                     "default": true,
509                     "type": "boolean"
510                 },
511                 "rust-analyzer.checkOnSave.allFeatures": {
512                     "markdownDescription": "Check with all features (`--all-features`).\nDefaults to `#rust-analyzer.cargo.allFeatures#`.",
513                     "default": null,
514                     "type": [
515                         "null",
516                         "boolean"
517                     ]
518                 },
519                 "rust-analyzer.checkOnSave.allTargets": {
520                     "markdownDescription": "Check all targets and tests (`--all-targets`).",
521                     "default": true,
522                     "type": "boolean"
523                 },
524                 "rust-analyzer.checkOnSave.command": {
525                     "markdownDescription": "Cargo command to use for `cargo check`.",
526                     "default": "check",
527                     "type": "string"
528                 },
529                 "rust-analyzer.checkOnSave.noDefaultFeatures": {
530                     "markdownDescription": "Do not activate the `default` feature.",
531                     "default": null,
532                     "type": [
533                         "null",
534                         "boolean"
535                     ]
536                 },
537                 "rust-analyzer.checkOnSave.target": {
538                     "markdownDescription": "Check for a specific target. Defaults to\n`#rust-analyzer.cargo.target#`.",
539                     "default": null,
540                     "type": [
541                         "null",
542                         "string"
543                     ]
544                 },
545                 "rust-analyzer.checkOnSave.extraArgs": {
546                     "markdownDescription": "Extra arguments for `cargo check`.",
547                     "default": [],
548                     "type": "array",
549                     "items": {
550                         "type": "string"
551                     }
552                 },
553                 "rust-analyzer.checkOnSave.features": {
554                     "markdownDescription": "List of features to activate. Defaults to\n`#rust-analyzer.cargo.features#`.",
555                     "default": null,
556                     "type": [
557                         "null",
558                         "array"
559                     ],
560                     "items": {
561                         "type": "string"
562                     }
563                 },
564                 "rust-analyzer.checkOnSave.overrideCommand": {
565                     "markdownDescription": "Advanced option, fully override the command rust-analyzer uses for\nchecking. The command should include `--message-format=json` or\nsimilar option.",
566                     "default": null,
567                     "type": [
568                         "null",
569                         "array"
570                     ],
571                     "items": {
572                         "type": "string"
573                     }
574                 },
575                 "rust-analyzer.completion.addCallArgumentSnippets": {
576                     "markdownDescription": "Whether to add argument snippets when completing functions.\nOnly applies when `#rust-analyzer.completion.addCallParenthesis#` is set.",
577                     "default": true,
578                     "type": "boolean"
579                 },
580                 "rust-analyzer.completion.addCallParenthesis": {
581                     "markdownDescription": "Whether to add parenthesis when completing functions.",
582                     "default": true,
583                     "type": "boolean"
584                 },
585                 "rust-analyzer.completion.postfix.enable": {
586                     "markdownDescription": "Whether to show postfix snippets like `dbg`, `if`, `not`, etc.",
587                     "default": true,
588                     "type": "boolean"
589                 },
590                 "rust-analyzer.completion.autoimport.enable": {
591                     "markdownDescription": "Toggles the additional completions that automatically add imports when completed.\nNote that your client must specify the `additionalTextEdits` LSP client capability to truly have this feature enabled.",
592                     "default": true,
593                     "type": "boolean"
594                 },
595                 "rust-analyzer.completion.autoself.enable": {
596                     "markdownDescription": "Toggles the additional completions that automatically show method calls and field accesses\nwith `self` prefixed to them when inside a method.",
597                     "default": true,
598                     "type": "boolean"
599                 },
600                 "rust-analyzer.diagnostics.enable": {
601                     "markdownDescription": "Whether to show native rust-analyzer diagnostics.",
602                     "default": true,
603                     "type": "boolean"
604                 },
605                 "rust-analyzer.diagnostics.enableExperimental": {
606                     "markdownDescription": "Whether to show experimental rust-analyzer diagnostics that might\nhave more false positives than usual.",
607                     "default": true,
608                     "type": "boolean"
609                 },
610                 "rust-analyzer.diagnostics.disabled": {
611                     "markdownDescription": "List of rust-analyzer diagnostics to disable.",
612                     "default": [],
613                     "type": "array",
614                     "items": {
615                         "type": "string"
616                     },
617                     "uniqueItems": true
618                 },
619                 "rust-analyzer.diagnostics.remapPrefix": {
620                     "markdownDescription": "Map of prefixes to be substituted when parsing diagnostic file paths.\nThis should be the reverse mapping of what is passed to `rustc` as `--remap-path-prefix`.",
621                     "default": {},
622                     "type": "object"
623                 },
624                 "rust-analyzer.diagnostics.warningsAsHint": {
625                     "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\nand will not show up in the `Problems Panel`.",
626                     "default": [],
627                     "type": "array",
628                     "items": {
629                         "type": "string"
630                     }
631                 },
632                 "rust-analyzer.diagnostics.warningsAsInfo": {
633                     "markdownDescription": "List of warnings that should be displayed with info severity.\n\nThe warnings will be indicated by a blue squiggly underline in code\nand a blue icon in the `Problems Panel`.",
634                     "default": [],
635                     "type": "array",
636                     "items": {
637                         "type": "string"
638                     }
639                 },
640                 "rust-analyzer.experimental.procAttrMacros": {
641                     "markdownDescription": "Expand attribute macros.",
642                     "default": false,
643                     "type": "boolean"
644                 },
645                 "rust-analyzer.files.watcher": {
646                     "markdownDescription": "Controls file watching implementation.",
647                     "default": "client",
648                     "type": "string"
649                 },
650                 "rust-analyzer.files.excludeDirs": {
651                     "markdownDescription": "These directories will be ignored by rust-analyzer.",
652                     "default": [],
653                     "type": "array",
654                     "items": {
655                         "type": "string"
656                     }
657                 },
658                 "rust-analyzer.highlighting.strings": {
659                     "markdownDescription": "Use semantic tokens for strings.\n\nIn some editors (e.g. vscode) semantic tokens override other highlighting grammars.\nBy disabling semantic tokens for strings, other grammars can be used to highlight\ntheir contents.",
660                     "default": true,
661                     "type": "boolean"
662                 },
663                 "rust-analyzer.hover.documentation": {
664                     "markdownDescription": "Whether to show documentation on hover.",
665                     "default": true,
666                     "type": "boolean"
667                 },
668                 "rust-analyzer.hover.linksInHover": {
669                     "markdownDescription": "Use markdown syntax for links in hover.",
670                     "default": true,
671                     "type": "boolean"
672                 },
673                 "rust-analyzer.hoverActions.debug": {
674                     "markdownDescription": "Whether to show `Debug` action. Only applies when\n`#rust-analyzer.hoverActions.enable#` is set.",
675                     "default": true,
676                     "type": "boolean"
677                 },
678                 "rust-analyzer.hoverActions.enable": {
679                     "markdownDescription": "Whether to show HoverActions in Rust files.",
680                     "default": true,
681                     "type": "boolean"
682                 },
683                 "rust-analyzer.hoverActions.gotoTypeDef": {
684                     "markdownDescription": "Whether to show `Go to Type Definition` action. Only applies when\n`#rust-analyzer.hoverActions.enable#` is set.",
685                     "default": true,
686                     "type": "boolean"
687                 },
688                 "rust-analyzer.hoverActions.implementations": {
689                     "markdownDescription": "Whether to show `Implementations` action. Only applies when\n`#rust-analyzer.hoverActions.enable#` is set.",
690                     "default": true,
691                     "type": "boolean"
692                 },
693                 "rust-analyzer.hoverActions.references": {
694                     "markdownDescription": "Whether to show `References` action. Only applies when\n`#rust-analyzer.hoverActions.enable#` is set.",
695                     "default": false,
696                     "type": "boolean"
697                 },
698                 "rust-analyzer.hoverActions.run": {
699                     "markdownDescription": "Whether to show `Run` action. Only applies when\n`#rust-analyzer.hoverActions.enable#` is set.",
700                     "default": true,
701                     "type": "boolean"
702                 },
703                 "rust-analyzer.inlayHints.chainingHints": {
704                     "markdownDescription": "Whether to show inlay type hints for method chains.",
705                     "default": true,
706                     "type": "boolean"
707                 },
708                 "rust-analyzer.inlayHints.maxLength": {
709                     "markdownDescription": "Maximum length for inlay hints. Set to null to have an unlimited length.",
710                     "default": 25,
711                     "type": [
712                         "null",
713                         "integer"
714                     ],
715                     "minimum": 0
716                 },
717                 "rust-analyzer.inlayHints.parameterHints": {
718                     "markdownDescription": "Whether to show function parameter name inlay hints at the call\nsite.",
719                     "default": true,
720                     "type": "boolean"
721                 },
722                 "rust-analyzer.inlayHints.typeHints": {
723                     "markdownDescription": "Whether to show inlay type hints for variables.",
724                     "default": true,
725                     "type": "boolean"
726                 },
727                 "rust-analyzer.joinLines.joinElseIf": {
728                     "markdownDescription": "Join lines inserts else between consecutive ifs.",
729                     "default": true,
730                     "type": "boolean"
731                 },
732                 "rust-analyzer.joinLines.removeTrailingComma": {
733                     "markdownDescription": "Join lines removes trailing commas.",
734                     "default": true,
735                     "type": "boolean"
736                 },
737                 "rust-analyzer.joinLines.unwrapTrivialBlock": {
738                     "markdownDescription": "Join lines unwraps trivial blocks.",
739                     "default": true,
740                     "type": "boolean"
741                 },
742                 "rust-analyzer.lens.debug": {
743                     "markdownDescription": "Whether to show `Debug` lens. Only applies when\n`#rust-analyzer.lens.enable#` is set.",
744                     "default": true,
745                     "type": "boolean"
746                 },
747                 "rust-analyzer.lens.enable": {
748                     "markdownDescription": "Whether to show CodeLens in Rust files.",
749                     "default": true,
750                     "type": "boolean"
751                 },
752                 "rust-analyzer.lens.implementations": {
753                     "markdownDescription": "Whether to show `Implementations` lens. Only applies when\n`#rust-analyzer.lens.enable#` is set.",
754                     "default": true,
755                     "type": "boolean"
756                 },
757                 "rust-analyzer.lens.run": {
758                     "markdownDescription": "Whether to show `Run` lens. Only applies when\n`#rust-analyzer.lens.enable#` is set.",
759                     "default": true,
760                     "type": "boolean"
761                 },
762                 "rust-analyzer.lens.methodReferences": {
763                     "markdownDescription": "Whether to show `Method References` lens. Only applies when\n`#rust-analyzer.lens.enable#` is set.",
764                     "default": false,
765                     "type": "boolean"
766                 },
767                 "rust-analyzer.lens.references": {
768                     "markdownDescription": "Whether to show `References` lens. Only applies when\n`#rust-analyzer.lens.enable#` is set.",
769                     "default": false,
770                     "type": "boolean"
771                 },
772                 "rust-analyzer.linkedProjects": {
773                     "markdownDescription": "Disable project auto-discovery in favor of explicitly specified set\nof projects.\n\nElements must be paths pointing to `Cargo.toml`,\n`rust-project.json`, or JSON objects in `rust-project.json` format.",
774                     "default": [],
775                     "type": "array",
776                     "items": {
777                         "type": [
778                             "string",
779                             "object"
780                         ]
781                     }
782                 },
783                 "rust-analyzer.lruCapacity": {
784                     "markdownDescription": "Number of syntax trees rust-analyzer keeps in memory. Defaults to 128.",
785                     "default": null,
786                     "type": [
787                         "null",
788                         "integer"
789                     ],
790                     "minimum": 0
791                 },
792                 "rust-analyzer.notifications.cargoTomlNotFound": {
793                     "markdownDescription": "Whether to show `can't find Cargo.toml` error message.",
794                     "default": true,
795                     "type": "boolean"
796                 },
797                 "rust-analyzer.procMacro.enable": {
798                     "markdownDescription": "Enable support for procedural macros, implies `#rust-analyzer.cargo.runBuildScripts#`.",
799                     "default": true,
800                     "type": "boolean"
801                 },
802                 "rust-analyzer.procMacro.server": {
803                     "markdownDescription": "Internal config, path to proc-macro server executable (typically,\nthis is rust-analyzer itself, but we override this in tests).",
804                     "default": null,
805                     "type": [
806                         "null",
807                         "string"
808                     ]
809                 },
810                 "rust-analyzer.runnables.overrideCargo": {
811                     "markdownDescription": "Command to be executed instead of 'cargo' for runnables.",
812                     "default": null,
813                     "type": [
814                         "null",
815                         "string"
816                     ]
817                 },
818                 "rust-analyzer.runnables.cargoExtraArgs": {
819                     "markdownDescription": "Additional arguments to be passed to cargo for runnables such as\ntests or binaries. For example, it may be `--release`.",
820                     "default": [],
821                     "type": "array",
822                     "items": {
823                         "type": "string"
824                     }
825                 },
826                 "rust-analyzer.rustcSource": {
827                     "markdownDescription": "Path to the Cargo.toml of the rust compiler workspace, for usage in rustc_private\nprojects, or \"discover\" to try to automatically find it.\n\nAny project which uses rust-analyzer with the rustcPrivate\ncrates must set `[package.metadata.rust-analyzer] rustc_private=true` to use it.\n\nThis option is not reloaded automatically; you must restart rust-analyzer for it to take effect.",
828                     "default": null,
829                     "type": [
830                         "null",
831                         "string"
832                     ]
833                 },
834                 "rust-analyzer.rustfmt.extraArgs": {
835                     "markdownDescription": "Additional arguments to `rustfmt`.",
836                     "default": [],
837                     "type": "array",
838                     "items": {
839                         "type": "string"
840                     }
841                 },
842                 "rust-analyzer.rustfmt.overrideCommand": {
843                     "markdownDescription": "Advanced option, fully override the command rust-analyzer uses for\nformatting.",
844                     "default": null,
845                     "type": [
846                         "null",
847                         "array"
848                     ],
849                     "items": {
850                         "type": "string"
851                     }
852                 },
853                 "rust-analyzer.rustfmt.enableRangeFormatting": {
854                     "markdownDescription": "Enables the use of rustfmt's unstable range formatting command for the\n`textDocument/rangeFormatting` request. The rustfmt option is unstable and only\navailable on a nightly build.",
855                     "default": false,
856                     "type": "boolean"
857                 },
858                 "rust-analyzer.workspace.symbol.search.scope": {
859                     "markdownDescription": "Workspace symbol search scope.",
860                     "default": "workspace",
861                     "type": "string",
862                     "enum": [
863                         "workspace",
864                         "workspace_and_dependencies"
865                     ],
866                     "enumDescriptions": [
867                         "Search in current workspace only",
868                         "Search in current workspace and dependencies"
869                     ]
870                 },
871                 "rust-analyzer.workspace.symbol.search.kind": {
872                     "markdownDescription": "Workspace symbol search kind.",
873                     "default": "only_types",
874                     "type": "string",
875                     "enum": [
876                         "only_types",
877                         "all_symbols"
878                     ],
879                     "enumDescriptions": [
880                         "Search for types only",
881                         "Search for all symbols kinds"
882                     ]
883                 },
884                 "$generated-end": {}
885             }
886         },
887         "problemPatterns": [
888             {
889                 "name": "rustc",
890                 "patterns": [
891                     {
892                         "regexp": "^(warning|warn|error)(?:\\[(.*?)\\])?: (.*)$",
893                         "severity": 1,
894                         "code": 2,
895                         "message": 3
896                     },
897                     {
898                         "regexp": "^[\\s->=]*(.*?):(\\d*):(\\d*)\\s*$",
899                         "file": 1,
900                         "line": 2,
901                         "column": 3
902                     }
903                 ]
904             },
905             {
906                 "name": "rustc-json",
907                 "patterns": [
908                     {
909                         "regexp": "^.*\"message\":{\"message\":\"([^\"]*).*?\"file_name\":\"([^\"]+).*?\"line_start\":(\\d+).*?\"line_end\":(\\d+).*?\"column_start\":(\\d+).*?\"column_end\":(\\d+).*}$",
910                         "message": 1,
911                         "file": 2,
912                         "line": 3,
913                         "endLine": 4,
914                         "column": 5,
915                         "endColumn": 6
916                     }
917                 ]
918             }
919         ],
920         "languages": [
921             {
922                 "id": "ra_syntax_tree",
923                 "extensions": [
924                     ".rast"
925                 ]
926             },
927             {
928                 "id": "rust",
929                 "extensions": [
930                     ".rs"
931                 ],
932                 "aliases": [
933                     "Rust",
934                     "rs"
935                 ],
936                 "configuration": "language-configuration.json"
937             }
938         ],
939         "grammars": [
940             {
941                 "language": "ra_syntax_tree",
942                 "scopeName": "source.ra_syntax_tree",
943                 "path": "ra_syntax_tree.tmGrammar.json"
944             }
945         ],
946         "problemMatchers": [
947             {
948                 "name": "rustc",
949                 "owner": "rustc",
950                 "source": "rustc",
951                 "fileLocation": [
952                     "autoDetect",
953                     "${workspaceRoot}"
954                 ],
955                 "pattern": "$rustc"
956             },
957             {
958                 "name": "rustc-json",
959                 "owner": "rustc",
960                 "source": "rustc",
961                 "fileLocation": [
962                     "autoDetect",
963                     "${workspaceRoot}"
964                 ],
965                 "pattern": "$rustc-json"
966             },
967             {
968                 "name": "rustc-watch",
969                 "owner": "rustc",
970                 "source": "rustc",
971                 "fileLocation": [
972                     "autoDetect",
973                     "${workspaceRoot}"
974                 ],
975                 "background": {
976                     "beginsPattern": "^\\[Running\\b",
977                     "endsPattern": "^\\[Finished running\\b"
978                 },
979                 "pattern": "$rustc"
980             }
981         ],
982         "colors": [
983             {
984                 "id": "rust_analyzer.inlayHints.foreground",
985                 "description": "Foreground color of inlay hints (is overriden by more specific rust_analyzer.inlayHints.foreground.* configurations)",
986                 "defaults": {
987                     "dark": "#A0A0A0F0",
988                     "light": "#747474",
989                     "highContrast": "#BEBEBE"
990                 }
991             },
992             {
993                 "id": "rust_analyzer.inlayHints.background",
994                 "description": "Background color of inlay hints (is overriden by more specific rust_analyzer.inlayHints.background.* configurations)",
995                 "defaults": {
996                     "dark": "#11223300",
997                     "light": "#11223300",
998                     "highContrast": "#11223300"
999                 }
1000             },
1001             {
1002                 "id": "rust_analyzer.inlayHints.foreground.typeHints",
1003                 "description": "Foreground color of inlay type hints for variables (overrides rust_analyzer.inlayHints.foreground)",
1004                 "defaults": {
1005                     "dark": "rust_analyzer.inlayHints.foreground",
1006                     "light": "rust_analyzer.inlayHints.foreground",
1007                     "highContrast": "rust_analyzer.inlayHints.foreground"
1008                 }
1009             },
1010             {
1011                 "id": "rust_analyzer.inlayHints.foreground.chainingHints",
1012                 "description": "Foreground color of inlay type hints for method chains (overrides rust_analyzer.inlayHints.foreground)",
1013                 "defaults": {
1014                     "dark": "rust_analyzer.inlayHints.foreground",
1015                     "light": "rust_analyzer.inlayHints.foreground",
1016                     "highContrast": "rust_analyzer.inlayHints.foreground"
1017                 }
1018             },
1019             {
1020                 "id": "rust_analyzer.inlayHints.foreground.parameterHints",
1021                 "description": "Foreground color of function parameter name inlay hints at the call site (overrides rust_analyzer.inlayHints.foreground)",
1022                 "defaults": {
1023                     "dark": "rust_analyzer.inlayHints.foreground",
1024                     "light": "rust_analyzer.inlayHints.foreground",
1025                     "highContrast": "rust_analyzer.inlayHints.foreground"
1026                 }
1027             },
1028             {
1029                 "id": "rust_analyzer.inlayHints.background.typeHints",
1030                 "description": "Background color of inlay type hints for variables (overrides rust_analyzer.inlayHints.background)",
1031                 "defaults": {
1032                     "dark": "rust_analyzer.inlayHints.background",
1033                     "light": "rust_analyzer.inlayHints.background",
1034                     "highContrast": "rust_analyzer.inlayHints.background"
1035                 }
1036             },
1037             {
1038                 "id": "rust_analyzer.inlayHints.background.chainingHints",
1039                 "description": "Background color of inlay type hints for method chains (overrides rust_analyzer.inlayHints.background)",
1040                 "defaults": {
1041                     "dark": "rust_analyzer.inlayHints.background",
1042                     "light": "rust_analyzer.inlayHints.background",
1043                     "highContrast": "rust_analyzer.inlayHints.background"
1044                 }
1045             },
1046             {
1047                 "id": "rust_analyzer.inlayHints.background.parameterHints",
1048                 "description": "Background color of function parameter name inlay hints at the call site (overrides rust_analyzer.inlayHints.background)",
1049                 "defaults": {
1050                     "dark": "rust_analyzer.inlayHints.background",
1051                     "light": "rust_analyzer.inlayHints.background",
1052                     "highContrast": "rust_analyzer.inlayHints.background"
1053                 }
1054             },
1055             {
1056                 "id": "rust_analyzer.syntaxTreeBorder",
1057                 "description": "Color of the border displayed in the Rust source code for the selected syntax node (see \"Show Syntax Tree\" command)",
1058                 "defaults": {
1059                     "dark": "#ffffff",
1060                     "light": "#b700ff",
1061                     "highContrast": "#b700ff"
1062                 }
1063             }
1064         ],
1065         "semanticTokenTypes": [
1066             {
1067                 "id": "attribute",
1068                 "description": "Style for attributes"
1069             },
1070             {
1071                 "id": "boolean",
1072                 "description": "Style for boolean literals",
1073                 "superType": "keyword"
1074             },
1075             {
1076                 "id": "builtinType",
1077                 "description": "Style for builtin types",
1078                 "superType": "type"
1079             },
1080             {
1081                 "id": "lifetime",
1082                 "description": "Style for lifetimes"
1083             },
1084             {
1085                 "id": "selfKeyword",
1086                 "description": "Style for the self keyword",
1087                 "superType": "keyword"
1088             },
1089             {
1090                 "id": "typeAlias",
1091                 "description": "Style for type aliases",
1092                 "superType": "type"
1093             },
1094             {
1095                 "id": "union",
1096                 "description": "Style for C-style untagged unions",
1097                 "superType": "type"
1098             },
1099             {
1100                 "id": "unresolvedReference",
1101                 "description": "Style for names which can not be resolved due to compilation errors"
1102             },
1103             {
1104                 "id": "formatSpecifier",
1105                 "description": "Style for {} placeholders in format strings"
1106             },
1107             {
1108                 "id": "punctuation",
1109                 "description": "generic punctuation"
1110             },
1111             {
1112                 "id": "parenthesis",
1113                 "description": "( or )",
1114                 "superType": "punctuation"
1115             },
1116             {
1117                 "id": "bracket",
1118                 "description": "[ or ]",
1119                 "superType": "punctuation"
1120             },
1121             {
1122                 "id": "brace",
1123                 "description": "{ or }",
1124                 "superType": "punctuation"
1125             },
1126             {
1127                 "id": "angle",
1128                 "description": "< or >",
1129                 "superType": "punctuation"
1130             },
1131             {
1132                 "id": "comma",
1133                 "description": ",",
1134                 "superType": "punctuation"
1135             },
1136             {
1137                 "id": "colon",
1138                 "description": ":",
1139                 "superType": "punctuation"
1140             },
1141             {
1142                 "id": "semicolon",
1143                 "description": ";",
1144                 "superType": "punctuation"
1145             },
1146             {
1147                 "id": "dot",
1148                 "description": ".",
1149                 "superType": "punctuation"
1150             }
1151         ],
1152         "semanticTokenModifiers": [
1153             {
1154                 "id": "attribute",
1155                 "description": "Style for elements within attributes"
1156             },
1157             {
1158                 "id": "constant",
1159                 "description": "Style for compile-time constants"
1160             },
1161             {
1162                 "id": "controlFlow",
1163                 "description": "Style for control flow keywords"
1164             },
1165             {
1166                 "id": "mutable",
1167                 "description": "Style for mutable bindings"
1168             },
1169             {
1170                 "id": "unsafe",
1171                 "description": "Style for unsafe operations"
1172             },
1173             {
1174                 "id": "consuming",
1175                 "description": "Style for non-Copy lvalues consumed by method/function call"
1176             },
1177             {
1178                 "id": "callable",
1179                 "description": "Style for variables/parameters that can be used in call expressions"
1180             }
1181         ],
1182         "semanticTokenScopes": [
1183             {
1184                 "language": "rust",
1185                 "scopes": {
1186                     "attribute": [
1187                         "meta.attribute.rust"
1188                     ],
1189                     "function.attribute": [
1190                         "entity.name.function.attribute.rust"
1191                     ],
1192                     "boolean": [
1193                         "constant.language.boolean.rust"
1194                     ],
1195                     "builtinType": [
1196                         "support.type.primitive.rust"
1197                     ],
1198                     "lifetime": [
1199                         "storage.modifier.lifetime.rust"
1200                     ],
1201                     "typeAlias": [
1202                         "entity.name.type.typeAlias.rust"
1203                     ],
1204                     "union": [
1205                         "entity.name.type.union.rust"
1206                     ],
1207                     "struct": [
1208                         "entity.name.type.struct.rust"
1209                     ],
1210                     "keyword": [
1211                         "keyword.other.rust"
1212                     ],
1213                     "keyword.controlFlow": [
1214                         "keyword.control.rust"
1215                     ],
1216                     "variable.constant": [
1217                         "variable.other.constant.rust"
1218                     ],
1219                     "formatSpecifier": [
1220                         "punctuation.section.embedded.rust"
1221                     ],
1222                     "*.mutable": [
1223                         "markup.underline"
1224                     ]
1225                 }
1226             }
1227         ],
1228         "menus": {
1229             "commandPalette": [
1230                 {
1231                     "command": "rust-analyzer.syntaxTree",
1232                     "when": "inRustProject"
1233                 },
1234                 {
1235                     "command": "rust-analyzer.viewHir",
1236                     "when": "inRustProject"
1237                 },
1238                 {
1239                     "command": "rust-analyzer.expandMacro",
1240                     "when": "inRustProject"
1241                 },
1242                 {
1243                     "command": "rust-analyzer.matchingBrace",
1244                     "when": "inRustProject"
1245                 },
1246                 {
1247                     "command": "rust-analyzer.parentModule",
1248                     "when": "inRustProject"
1249                 },
1250                 {
1251                     "command": "rust-analyzer.joinLines",
1252                     "when": "inRustProject"
1253                 },
1254                 {
1255                     "command": "rust-analyzer.run",
1256                     "when": "inRustProject"
1257                 },
1258                 {
1259                     "command": "rust-analyzer.debug",
1260                     "when": "inRustProject"
1261                 },
1262                 {
1263                     "command": "rust-analyzer.newDebugConfig",
1264                     "when": "inRustProject"
1265                 },
1266                 {
1267                     "command": "rust-analyzer.analyzerStatus",
1268                     "when": "inRustProject"
1269                 },
1270                 {
1271                     "command": "rust-analyzer.memoryUsage",
1272                     "when": "inRustProject"
1273                 },
1274                 {
1275                     "command": "rust-analyzer.reloadWorkspace",
1276                     "when": "inRustProject"
1277                 },
1278                 {
1279                     "command": "rust-analyzer.reload",
1280                     "when": "inRustProject"
1281                 },
1282                 {
1283                     "command": "rust-analyzer.updateGithubToken",
1284                     "when": "inRustProject"
1285                 },
1286                 {
1287                     "command": "rust-analyzer.onEnter",
1288                     "when": "inRustProject"
1289                 },
1290                 {
1291                     "command": "rust-analyzer.ssr",
1292                     "when": "inRustProject"
1293                 },
1294                 {
1295                     "command": "rust-analyzer.serverVersion",
1296                     "when": "inRustProject"
1297                 },
1298                 {
1299                     "command": "rust-analyzer.toggleInlayHints",
1300                     "when": "inRustProject"
1301                 },
1302                 {
1303                     "command": "rust-analyzer.openDocs",
1304                     "when": "inRustProject"
1305                 },
1306                 {
1307                     "command": "rust-analyzer.openCargoToml",
1308                     "when": "inRustProject"
1309                 }
1310             ],
1311             "editor/context": [
1312                 {
1313                     "command": "rust-analyzer.peekTests",
1314                     "when": "inRustProject",
1315                     "group": "navigation@1000"
1316                 }
1317             ]
1318         }
1319     }
1320 }