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