]> git.lizzy.rs Git - rust.git/blob - editors/code/package.json
vscode extension: use esbuild instead of rollup.
[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     },
43     "devDependencies": {
44         "@types/glob": "^7.1.4",
45         "@types/mocha": "^8.2.3",
46         "@types/node": "~14.17.5",
47         "@types/node-fetch": "^2.5.11",
48         "@types/vscode": "^1.57.0",
49         "@typescript-eslint/eslint-plugin": "^4.28.2",
50         "@typescript-eslint/parser": "^4.28.2",
51         "esbuild": "^0.12.19",
52         "eslint": "^7.30.0",
53         "glob": "^7.1.6",
54         "mocha": "^9.0.2",
55         "tslib": "^2.3.0",
56         "typescript": "^4.3.5",
57         "typescript-formatter": "^7.2.2",
58         "vsce": "^1.95.1",
59         "vscode-test": "^1.5.1"
60     },
61     "activationEvents": [
62         "onLanguage:rust",
63         "onCommand:rust-analyzer.analyzerStatus",
64         "onCommand:rust-analyzer.memoryUsage",
65         "onCommand:rust-analyzer.reloadWorkspace",
66         "workspaceContains:**/Cargo.toml"
67     ],
68     "main": "./out/main",
69     "contributes": {
70         "taskDefinitions": [
71             {
72                 "type": "cargo",
73                 "required": [
74                     "command"
75                 ],
76                 "properties": {
77                     "label": {
78                         "type": "string"
79                     },
80                     "command": {
81                         "type": "string"
82                     },
83                     "args": {
84                         "type": "array",
85                         "items": {
86                             "type": "string"
87                         }
88                     },
89                     "env": {
90                         "type": "object",
91                         "patternProperties": {
92                             ".+": {
93                                 "type": "string"
94                             }
95                         }
96                     }
97                 }
98             }
99         ],
100         "commands": [
101             {
102                 "command": "rust-analyzer.syntaxTree",
103                 "title": "Show Syntax Tree",
104                 "category": "Rust Analyzer"
105             },
106             {
107                 "command": "rust-analyzer.viewHir",
108                 "title": "View Hir",
109                 "category": "Rust Analyzer"
110             },
111             {
112                 "command": "rust-analyzer.viewItemTree",
113                 "title": "Debug ItemTree",
114                 "category": "Rust Analyzer"
115             },
116             {
117                 "command": "rust-analyzer.viewCrateGraph",
118                 "title": "View Crate Graph",
119                 "category": "Rust Analyzer"
120             },
121             {
122                 "command": "rust-analyzer.viewFullCrateGraph",
123                 "title": "View Crate Graph (Full)",
124                 "category": "Rust Analyzer"
125             },
126             {
127                 "command": "rust-analyzer.expandMacro",
128                 "title": "Expand macro recursively",
129                 "category": "Rust Analyzer"
130             },
131             {
132                 "command": "rust-analyzer.matchingBrace",
133                 "title": "Find matching brace",
134                 "category": "Rust Analyzer"
135             },
136             {
137                 "command": "rust-analyzer.parentModule",
138                 "title": "Locate parent module",
139                 "category": "Rust Analyzer"
140             },
141             {
142                 "command": "rust-analyzer.joinLines",
143                 "title": "Join lines",
144                 "category": "Rust Analyzer"
145             },
146             {
147                 "command": "rust-analyzer.run",
148                 "title": "Run",
149                 "category": "Rust Analyzer"
150             },
151             {
152                 "command": "rust-analyzer.copyRunCommandLine",
153                 "title": "Copy Run Command Line",
154                 "category": "Rust Analyzer"
155             },
156             {
157                 "command": "rust-analyzer.debug",
158                 "title": "Debug",
159                 "category": "Rust Analyzer"
160             },
161             {
162                 "command": "rust-analyzer.newDebugConfig",
163                 "title": "Generate launch configuration",
164                 "category": "Rust Analyzer"
165             },
166             {
167                 "command": "rust-analyzer.analyzerStatus",
168                 "title": "Status",
169                 "category": "Rust Analyzer"
170             },
171             {
172                 "command": "rust-analyzer.memoryUsage",
173                 "title": "Memory Usage (Clears Database)",
174                 "category": "Rust Analyzer"
175             },
176             {
177                 "command": "rust-analyzer.reloadWorkspace",
178                 "title": "Reload workspace",
179                 "category": "Rust Analyzer"
180             },
181             {
182                 "command": "rust-analyzer.reload",
183                 "title": "Restart server",
184                 "category": "Rust Analyzer"
185             },
186             {
187                 "command": "rust-analyzer.updateGithubToken",
188                 "title": "Update Github API token",
189                 "category": "Rust Analyzer"
190             },
191             {
192                 "command": "rust-analyzer.onEnter",
193                 "title": "Enhanced enter key",
194                 "category": "Rust Analyzer"
195             },
196             {
197                 "command": "rust-analyzer.ssr",
198                 "title": "Structural Search Replace",
199                 "category": "Rust Analyzer"
200             },
201             {
202                 "command": "rust-analyzer.serverVersion",
203                 "title": "Show RA Version",
204                 "category": "Rust Analyzer"
205             },
206             {
207                 "command": "rust-analyzer.toggleInlayHints",
208                 "title": "Toggle inlay hints",
209                 "category": "Rust Analyzer"
210             },
211             {
212                 "command": "rust-analyzer.openDocs",
213                 "title": "Open docs under cursor",
214                 "category": "Rust Analyzer"
215             },
216             {
217                 "command": "rust-analyzer.openCargoToml",
218                 "title": "Open Cargo.toml",
219                 "category": "Rust Analyzer"
220             },
221             {
222                 "command": "rust-analyzer.peekTests",
223                 "title": "Peek related tests",
224                 "category": "Rust Analyzer"
225             },
226             {
227                 "command": "rust-analyzer.moveItemUp",
228                 "title": "Move item up",
229                 "category": "Rust Analyzer"
230             },
231             {
232                 "command": "rust-analyzer.moveItemDown",
233                 "title": "Move item down",
234                 "category": "Rust Analyzer"
235             }
236         ],
237         "keybindings": [
238             {
239                 "command": "rust-analyzer.parentModule",
240                 "key": "ctrl+shift+u",
241                 "when": "editorTextFocus && editorLangId == rust"
242             },
243             {
244                 "command": "rust-analyzer.matchingBrace",
245                 "key": "ctrl+shift+m",
246                 "when": "editorTextFocus && editorLangId == rust"
247             },
248             {
249                 "command": "rust-analyzer.joinLines",
250                 "key": "ctrl+shift+j",
251                 "when": "editorTextFocus && editorLangId == rust"
252             }
253         ],
254         "configuration": {
255             "type": "object",
256             "title": "Rust Analyzer",
257             "properties": {
258                 "rust-analyzer.cargoRunner": {
259                     "type": [
260                         "null",
261                         "string"
262                     ],
263                     "default": null,
264                     "description": "Custom cargo runner extension ID."
265                 },
266                 "rust-analyzer.runnableEnv": {
267                     "anyOf": [
268                         {
269                             "type": "null"
270                         },
271                         {
272                             "type": "array",
273                             "items": {
274                                 "type": "object",
275                                 "properties": {
276                                     "mask": {
277                                         "type": "string",
278                                         "description": "Runnable name mask"
279                                     },
280                                     "env": {
281                                         "type": "object",
282                                         "description": "Variables in form of { \"key\": \"value\"}"
283                                     }
284                                 }
285                             }
286                         },
287                         {
288                             "type": "object",
289                             "description": "Variables in form of { \"key\": \"value\"}"
290                         }
291                     ],
292                     "default": null,
293                     "markdownDescription": "Environment variables passed to the runnable launched using `Test` or `Debug` lens or `rust-analyzer.run` command."
294                 },
295                 "rust-analyzer.inlayHints.enable": {
296                     "type": "boolean",
297                     "default": true,
298                     "description": "Whether to show inlay hints."
299                 },
300                 "rust-analyzer.inlayHints.smallerHints": {
301                     "type": "boolean",
302                     "default": true,
303                     "description": "Whether inlay hints font size should be smaller than editor's font size."
304                 },
305                 "rust-analyzer.updates.channel": {
306                     "type": "string",
307                     "enum": [
308                         "stable",
309                         "nightly"
310                     ],
311                     "default": "stable",
312                     "markdownEnumDescriptions": [
313                         "`stable` updates are shipped weekly, they don't contain cutting-edge features from VSCode proposed APIs but have less bugs in general.",
314                         "`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**."
315                     ],
316                     "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."
317                 },
318                 "rust-analyzer.updates.askBeforeDownload": {
319                     "type": "boolean",
320                     "default": false,
321                     "description": "Whether to ask for permission before downloading any files from the Internet."
322                 },
323                 "rust-analyzer.server.path": {
324                     "type": [
325                         "null",
326                         "string"
327                     ],
328                     "scope": "machine-overridable",
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. 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`.",
652                     "default": [],
653                     "type": "array",
654                     "items": {
655                         "type": "string"
656                     }
657                 },
658                 "rust-analyzer.highlightRelated.references": {
659                     "markdownDescription": "Enables highlighting of related references while hovering your mouse above any identifier.",
660                     "default": true,
661                     "type": "boolean"
662                 },
663                 "rust-analyzer.highlightRelated.exitPoints": {
664                     "markdownDescription": "Enables highlighting of all exit points while hovering your mouse above any `return`, `?`, or return type arrow (`->`).",
665                     "default": true,
666                     "type": "boolean"
667                 },
668                 "rust-analyzer.highlightRelated.breakPoints": {
669                     "markdownDescription": "Enables highlighting of related references while hovering your mouse `break`, `loop`, `while`, or `for` keywords.",
670                     "default": true,
671                     "type": "boolean"
672                 },
673                 "rust-analyzer.highlightRelated.yieldPoints": {
674                     "markdownDescription": "Enables highlighting of all break points for a loop or block context while hovering your mouse above any `async` or `await` keywords.",
675                     "default": true,
676                     "type": "boolean"
677                 },
678                 "rust-analyzer.highlighting.strings": {
679                     "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.",
680                     "default": true,
681                     "type": "boolean"
682                 },
683                 "rust-analyzer.hover.documentation": {
684                     "markdownDescription": "Whether to show documentation on hover.",
685                     "default": true,
686                     "type": "boolean"
687                 },
688                 "rust-analyzer.hover.linksInHover": {
689                     "markdownDescription": "Use markdown syntax for links in hover.",
690                     "default": true,
691                     "type": "boolean"
692                 },
693                 "rust-analyzer.hoverActions.debug": {
694                     "markdownDescription": "Whether to show `Debug` action. Only applies when\n`#rust-analyzer.hoverActions.enable#` is set.",
695                     "default": true,
696                     "type": "boolean"
697                 },
698                 "rust-analyzer.hoverActions.enable": {
699                     "markdownDescription": "Whether to show HoverActions in Rust files.",
700                     "default": true,
701                     "type": "boolean"
702                 },
703                 "rust-analyzer.hoverActions.gotoTypeDef": {
704                     "markdownDescription": "Whether to show `Go to Type Definition` action. Only applies when\n`#rust-analyzer.hoverActions.enable#` is set.",
705                     "default": true,
706                     "type": "boolean"
707                 },
708                 "rust-analyzer.hoverActions.implementations": {
709                     "markdownDescription": "Whether to show `Implementations` action. Only applies when\n`#rust-analyzer.hoverActions.enable#` is set.",
710                     "default": true,
711                     "type": "boolean"
712                 },
713                 "rust-analyzer.hoverActions.references": {
714                     "markdownDescription": "Whether to show `References` action. Only applies when\n`#rust-analyzer.hoverActions.enable#` is set.",
715                     "default": false,
716                     "type": "boolean"
717                 },
718                 "rust-analyzer.hoverActions.run": {
719                     "markdownDescription": "Whether to show `Run` action. Only applies when\n`#rust-analyzer.hoverActions.enable#` is set.",
720                     "default": true,
721                     "type": "boolean"
722                 },
723                 "rust-analyzer.inlayHints.chainingHints": {
724                     "markdownDescription": "Whether to show inlay type hints for method chains.",
725                     "default": true,
726                     "type": "boolean"
727                 },
728                 "rust-analyzer.inlayHints.maxLength": {
729                     "markdownDescription": "Maximum length for inlay hints. Set to null to have an unlimited length.",
730                     "default": 25,
731                     "type": [
732                         "null",
733                         "integer"
734                     ],
735                     "minimum": 0
736                 },
737                 "rust-analyzer.inlayHints.parameterHints": {
738                     "markdownDescription": "Whether to show function parameter name inlay hints at the call\nsite.",
739                     "default": true,
740                     "type": "boolean"
741                 },
742                 "rust-analyzer.inlayHints.typeHints": {
743                     "markdownDescription": "Whether to show inlay type hints for variables.",
744                     "default": true,
745                     "type": "boolean"
746                 },
747                 "rust-analyzer.joinLines.joinElseIf": {
748                     "markdownDescription": "Join lines inserts else between consecutive ifs.",
749                     "default": true,
750                     "type": "boolean"
751                 },
752                 "rust-analyzer.joinLines.removeTrailingComma": {
753                     "markdownDescription": "Join lines removes trailing commas.",
754                     "default": true,
755                     "type": "boolean"
756                 },
757                 "rust-analyzer.joinLines.unwrapTrivialBlock": {
758                     "markdownDescription": "Join lines unwraps trivial blocks.",
759                     "default": true,
760                     "type": "boolean"
761                 },
762                 "rust-analyzer.lens.debug": {
763                     "markdownDescription": "Whether to show `Debug` lens. Only applies when\n`#rust-analyzer.lens.enable#` is set.",
764                     "default": true,
765                     "type": "boolean"
766                 },
767                 "rust-analyzer.lens.enable": {
768                     "markdownDescription": "Whether to show CodeLens in Rust files.",
769                     "default": true,
770                     "type": "boolean"
771                 },
772                 "rust-analyzer.lens.implementations": {
773                     "markdownDescription": "Whether to show `Implementations` lens. Only applies when\n`#rust-analyzer.lens.enable#` is set.",
774                     "default": true,
775                     "type": "boolean"
776                 },
777                 "rust-analyzer.lens.run": {
778                     "markdownDescription": "Whether to show `Run` lens. Only applies when\n`#rust-analyzer.lens.enable#` is set.",
779                     "default": true,
780                     "type": "boolean"
781                 },
782                 "rust-analyzer.lens.methodReferences": {
783                     "markdownDescription": "Whether to show `Method References` lens. Only applies when\n`#rust-analyzer.lens.enable#` is set.",
784                     "default": false,
785                     "type": "boolean"
786                 },
787                 "rust-analyzer.lens.references": {
788                     "markdownDescription": "Whether to show `References` lens. Only applies when\n`#rust-analyzer.lens.enable#` is set.",
789                     "default": false,
790                     "type": "boolean"
791                 },
792                 "rust-analyzer.lens.forceCustomCommands": {
793                     "markdownDescription": "Internal config: use custom client-side commands even when the\nclient doesn't set the corresponding capability.",
794                     "default": true,
795                     "type": "boolean"
796                 },
797                 "rust-analyzer.linkedProjects": {
798                     "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.",
799                     "default": [],
800                     "type": "array",
801                     "items": {
802                         "type": [
803                             "string",
804                             "object"
805                         ]
806                     }
807                 },
808                 "rust-analyzer.lruCapacity": {
809                     "markdownDescription": "Number of syntax trees rust-analyzer keeps in memory. Defaults to 128.",
810                     "default": null,
811                     "type": [
812                         "null",
813                         "integer"
814                     ],
815                     "minimum": 0
816                 },
817                 "rust-analyzer.notifications.cargoTomlNotFound": {
818                     "markdownDescription": "Whether to show `can't find Cargo.toml` error message.",
819                     "default": true,
820                     "type": "boolean"
821                 },
822                 "rust-analyzer.procMacro.enable": {
823                     "markdownDescription": "Enable support for procedural macros, implies `#rust-analyzer.cargo.runBuildScripts#`.",
824                     "default": true,
825                     "type": "boolean"
826                 },
827                 "rust-analyzer.procMacro.server": {
828                     "markdownDescription": "Internal config, path to proc-macro server executable (typically,\nthis is rust-analyzer itself, but we override this in tests).",
829                     "default": null,
830                     "type": [
831                         "null",
832                         "string"
833                     ]
834                 },
835                 "rust-analyzer.runnables.overrideCargo": {
836                     "markdownDescription": "Command to be executed instead of 'cargo' for runnables.",
837                     "default": null,
838                     "type": [
839                         "null",
840                         "string"
841                     ]
842                 },
843                 "rust-analyzer.runnables.cargoExtraArgs": {
844                     "markdownDescription": "Additional arguments to be passed to cargo for runnables such as\ntests or binaries. For example, it may be `--release`.",
845                     "default": [],
846                     "type": "array",
847                     "items": {
848                         "type": "string"
849                     }
850                 },
851                 "rust-analyzer.rustcSource": {
852                     "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.",
853                     "default": null,
854                     "type": [
855                         "null",
856                         "string"
857                     ]
858                 },
859                 "rust-analyzer.rustfmt.extraArgs": {
860                     "markdownDescription": "Additional arguments to `rustfmt`.",
861                     "default": [],
862                     "type": "array",
863                     "items": {
864                         "type": "string"
865                     }
866                 },
867                 "rust-analyzer.rustfmt.overrideCommand": {
868                     "markdownDescription": "Advanced option, fully override the command rust-analyzer uses for\nformatting.",
869                     "default": null,
870                     "type": [
871                         "null",
872                         "array"
873                     ],
874                     "items": {
875                         "type": "string"
876                     }
877                 },
878                 "rust-analyzer.rustfmt.enableRangeFormatting": {
879                     "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.",
880                     "default": false,
881                     "type": "boolean"
882                 },
883                 "rust-analyzer.workspace.symbol.search.scope": {
884                     "markdownDescription": "Workspace symbol search scope.",
885                     "default": "workspace",
886                     "type": "string",
887                     "enum": [
888                         "workspace",
889                         "workspace_and_dependencies"
890                     ],
891                     "enumDescriptions": [
892                         "Search in current workspace only",
893                         "Search in current workspace and dependencies"
894                     ]
895                 },
896                 "rust-analyzer.workspace.symbol.search.kind": {
897                     "markdownDescription": "Workspace symbol search kind.",
898                     "default": "only_types",
899                     "type": "string",
900                     "enum": [
901                         "only_types",
902                         "all_symbols"
903                     ],
904                     "enumDescriptions": [
905                         "Search for types only",
906                         "Search for all symbols kinds"
907                     ]
908                 },
909                 "$generated-end": {}
910             }
911         },
912         "problemPatterns": [
913             {
914                 "name": "rustc",
915                 "patterns": [
916                     {
917                         "regexp": "^(warning|warn|error)(?:\\[(.*?)\\])?: (.*)$",
918                         "severity": 1,
919                         "code": 2,
920                         "message": 3
921                     },
922                     {
923                         "regexp": "^[\\s->=]*(.*?):(\\d*):(\\d*)\\s*$",
924                         "file": 1,
925                         "line": 2,
926                         "column": 3
927                     }
928                 ]
929             },
930             {
931                 "name": "rustc-json",
932                 "patterns": [
933                     {
934                         "regexp": "^.*\"message\":{\"message\":\"([^\"]*).*?\"file_name\":\"([^\"]+).*?\"line_start\":(\\d+).*?\"line_end\":(\\d+).*?\"column_start\":(\\d+).*?\"column_end\":(\\d+).*}$",
935                         "message": 1,
936                         "file": 2,
937                         "line": 3,
938                         "endLine": 4,
939                         "column": 5,
940                         "endColumn": 6
941                     }
942                 ]
943             }
944         ],
945         "languages": [
946             {
947                 "id": "ra_syntax_tree",
948                 "extensions": [
949                     ".rast"
950                 ]
951             },
952             {
953                 "id": "rust",
954                 "extensions": [
955                     ".rs"
956                 ],
957                 "aliases": [
958                     "Rust",
959                     "rs"
960                 ],
961                 "configuration": "language-configuration.json"
962             }
963         ],
964         "grammars": [
965             {
966                 "language": "ra_syntax_tree",
967                 "scopeName": "source.ra_syntax_tree",
968                 "path": "ra_syntax_tree.tmGrammar.json"
969             }
970         ],
971         "problemMatchers": [
972             {
973                 "name": "rustc",
974                 "owner": "rustc",
975                 "source": "rustc",
976                 "fileLocation": [
977                     "autoDetect",
978                     "${workspaceRoot}"
979                 ],
980                 "pattern": "$rustc"
981             },
982             {
983                 "name": "rustc-json",
984                 "owner": "rustc",
985                 "source": "rustc",
986                 "fileLocation": [
987                     "autoDetect",
988                     "${workspaceRoot}"
989                 ],
990                 "pattern": "$rustc-json"
991             },
992             {
993                 "name": "rustc-watch",
994                 "owner": "rustc",
995                 "source": "rustc",
996                 "fileLocation": [
997                     "autoDetect",
998                     "${workspaceRoot}"
999                 ],
1000                 "background": {
1001                     "beginsPattern": "^\\[Running\\b",
1002                     "endsPattern": "^\\[Finished running\\b"
1003                 },
1004                 "pattern": "$rustc"
1005             }
1006         ],
1007         "colors": [
1008             {
1009                 "id": "rust_analyzer.inlayHints.foreground",
1010                 "description": "Foreground color of inlay hints (is overriden by more specific rust_analyzer.inlayHints.foreground.* configurations)",
1011                 "defaults": {
1012                     "dark": "#A0A0A0F0",
1013                     "light": "#747474",
1014                     "highContrast": "#BEBEBE"
1015                 }
1016             },
1017             {
1018                 "id": "rust_analyzer.inlayHints.background",
1019                 "description": "Background color of inlay hints (is overriden by more specific rust_analyzer.inlayHints.background.* configurations)",
1020                 "defaults": {
1021                     "dark": "#11223300",
1022                     "light": "#11223300",
1023                     "highContrast": "#11223300"
1024                 }
1025             },
1026             {
1027                 "id": "rust_analyzer.inlayHints.foreground.typeHints",
1028                 "description": "Foreground color of inlay type hints for variables (overrides rust_analyzer.inlayHints.foreground)",
1029                 "defaults": {
1030                     "dark": "rust_analyzer.inlayHints.foreground",
1031                     "light": "rust_analyzer.inlayHints.foreground",
1032                     "highContrast": "rust_analyzer.inlayHints.foreground"
1033                 }
1034             },
1035             {
1036                 "id": "rust_analyzer.inlayHints.foreground.chainingHints",
1037                 "description": "Foreground color of inlay type hints for method chains (overrides rust_analyzer.inlayHints.foreground)",
1038                 "defaults": {
1039                     "dark": "rust_analyzer.inlayHints.foreground",
1040                     "light": "rust_analyzer.inlayHints.foreground",
1041                     "highContrast": "rust_analyzer.inlayHints.foreground"
1042                 }
1043             },
1044             {
1045                 "id": "rust_analyzer.inlayHints.foreground.parameterHints",
1046                 "description": "Foreground color of function parameter name inlay hints at the call site (overrides rust_analyzer.inlayHints.foreground)",
1047                 "defaults": {
1048                     "dark": "rust_analyzer.inlayHints.foreground",
1049                     "light": "rust_analyzer.inlayHints.foreground",
1050                     "highContrast": "rust_analyzer.inlayHints.foreground"
1051                 }
1052             },
1053             {
1054                 "id": "rust_analyzer.inlayHints.background.typeHints",
1055                 "description": "Background color of inlay type hints for variables (overrides rust_analyzer.inlayHints.background)",
1056                 "defaults": {
1057                     "dark": "rust_analyzer.inlayHints.background",
1058                     "light": "rust_analyzer.inlayHints.background",
1059                     "highContrast": "rust_analyzer.inlayHints.background"
1060                 }
1061             },
1062             {
1063                 "id": "rust_analyzer.inlayHints.background.chainingHints",
1064                 "description": "Background color of inlay type hints for method chains (overrides rust_analyzer.inlayHints.background)",
1065                 "defaults": {
1066                     "dark": "rust_analyzer.inlayHints.background",
1067                     "light": "rust_analyzer.inlayHints.background",
1068                     "highContrast": "rust_analyzer.inlayHints.background"
1069                 }
1070             },
1071             {
1072                 "id": "rust_analyzer.inlayHints.background.parameterHints",
1073                 "description": "Background color of function parameter name inlay hints at the call site (overrides rust_analyzer.inlayHints.background)",
1074                 "defaults": {
1075                     "dark": "rust_analyzer.inlayHints.background",
1076                     "light": "rust_analyzer.inlayHints.background",
1077                     "highContrast": "rust_analyzer.inlayHints.background"
1078                 }
1079             },
1080             {
1081                 "id": "rust_analyzer.syntaxTreeBorder",
1082                 "description": "Color of the border displayed in the Rust source code for the selected syntax node (see \"Show Syntax Tree\" command)",
1083                 "defaults": {
1084                     "dark": "#ffffff",
1085                     "light": "#b700ff",
1086                     "highContrast": "#b700ff"
1087                 }
1088             }
1089         ],
1090         "semanticTokenTypes": [
1091             {
1092                 "id": "attribute",
1093                 "description": "Style for attributes"
1094             },
1095             {
1096                 "id": "boolean",
1097                 "description": "Style for boolean literals",
1098                 "superType": "keyword"
1099             },
1100             {
1101                 "id": "builtinType",
1102                 "description": "Style for builtin types",
1103                 "superType": "type"
1104             },
1105             {
1106                 "id": "lifetime",
1107                 "description": "Style for lifetimes"
1108             },
1109             {
1110                 "id": "selfKeyword",
1111                 "description": "Style for the self keyword",
1112                 "superType": "keyword"
1113             },
1114             {
1115                 "id": "typeAlias",
1116                 "description": "Style for type aliases",
1117                 "superType": "type"
1118             },
1119             {
1120                 "id": "union",
1121                 "description": "Style for C-style untagged unions",
1122                 "superType": "type"
1123             },
1124             {
1125                 "id": "unresolvedReference",
1126                 "description": "Style for names which can not be resolved due to compilation errors"
1127             },
1128             {
1129                 "id": "formatSpecifier",
1130                 "description": "Style for {} placeholders in format strings"
1131             },
1132             {
1133                 "id": "punctuation",
1134                 "description": "generic punctuation"
1135             },
1136             {
1137                 "id": "parenthesis",
1138                 "description": "( or )",
1139                 "superType": "punctuation"
1140             },
1141             {
1142                 "id": "bracket",
1143                 "description": "[ or ]",
1144                 "superType": "punctuation"
1145             },
1146             {
1147                 "id": "brace",
1148                 "description": "{ or }",
1149                 "superType": "punctuation"
1150             },
1151             {
1152                 "id": "angle",
1153                 "description": "< or >",
1154                 "superType": "punctuation"
1155             },
1156             {
1157                 "id": "comma",
1158                 "description": ",",
1159                 "superType": "punctuation"
1160             },
1161             {
1162                 "id": "colon",
1163                 "description": ":",
1164                 "superType": "punctuation"
1165             },
1166             {
1167                 "id": "semicolon",
1168                 "description": ";",
1169                 "superType": "punctuation"
1170             },
1171             {
1172                 "id": "dot",
1173                 "description": ".",
1174                 "superType": "punctuation"
1175             }
1176         ],
1177         "semanticTokenModifiers": [
1178             {
1179                 "id": "attribute",
1180                 "description": "Style for elements within attributes"
1181             },
1182             {
1183                 "id": "constant",
1184                 "description": "Style for compile-time constants"
1185             },
1186             {
1187                 "id": "controlFlow",
1188                 "description": "Style for control flow keywords"
1189             },
1190             {
1191                 "id": "mutable",
1192                 "description": "Style for mutable bindings"
1193             },
1194             {
1195                 "id": "unsafe",
1196                 "description": "Style for unsafe operations"
1197             },
1198             {
1199                 "id": "consuming",
1200                 "description": "Style for non-Copy lvalues consumed by method/function call"
1201             },
1202             {
1203                 "id": "callable",
1204                 "description": "Style for variables/parameters that can be used in call expressions"
1205             }
1206         ],
1207         "semanticTokenScopes": [
1208             {
1209                 "language": "rust",
1210                 "scopes": {
1211                     "attribute": [
1212                         "meta.attribute.rust"
1213                     ],
1214                     "function.attribute": [
1215                         "entity.name.function.attribute.rust"
1216                     ],
1217                     "boolean": [
1218                         "constant.language.boolean.rust"
1219                     ],
1220                     "builtinType": [
1221                         "support.type.primitive.rust"
1222                     ],
1223                     "lifetime": [
1224                         "storage.modifier.lifetime.rust"
1225                     ],
1226                     "typeAlias": [
1227                         "entity.name.type.typeAlias.rust"
1228                     ],
1229                     "union": [
1230                         "entity.name.type.union.rust"
1231                     ],
1232                     "struct": [
1233                         "entity.name.type.struct.rust"
1234                     ],
1235                     "keyword": [
1236                         "keyword.other.rust"
1237                     ],
1238                     "keyword.controlFlow": [
1239                         "keyword.control.rust"
1240                     ],
1241                     "variable.constant": [
1242                         "variable.other.constant.rust"
1243                     ],
1244                     "formatSpecifier": [
1245                         "punctuation.section.embedded.rust"
1246                     ],
1247                     "*.mutable": [
1248                         "markup.underline"
1249                     ]
1250                 }
1251             }
1252         ],
1253         "menus": {
1254             "commandPalette": [
1255                 {
1256                     "command": "rust-analyzer.syntaxTree",
1257                     "when": "inRustProject"
1258                 },
1259                 {
1260                     "command": "rust-analyzer.viewHir",
1261                     "when": "inRustProject"
1262                 },
1263                 {
1264                     "command": "rust-analyzer.expandMacro",
1265                     "when": "inRustProject"
1266                 },
1267                 {
1268                     "command": "rust-analyzer.matchingBrace",
1269                     "when": "inRustProject"
1270                 },
1271                 {
1272                     "command": "rust-analyzer.parentModule",
1273                     "when": "inRustProject"
1274                 },
1275                 {
1276                     "command": "rust-analyzer.joinLines",
1277                     "when": "inRustProject"
1278                 },
1279                 {
1280                     "command": "rust-analyzer.run",
1281                     "when": "inRustProject"
1282                 },
1283                 {
1284                     "command": "rust-analyzer.debug",
1285                     "when": "inRustProject"
1286                 },
1287                 {
1288                     "command": "rust-analyzer.newDebugConfig",
1289                     "when": "inRustProject"
1290                 },
1291                 {
1292                     "command": "rust-analyzer.analyzerStatus",
1293                     "when": "inRustProject"
1294                 },
1295                 {
1296                     "command": "rust-analyzer.memoryUsage",
1297                     "when": "inRustProject"
1298                 },
1299                 {
1300                     "command": "rust-analyzer.reloadWorkspace",
1301                     "when": "inRustProject"
1302                 },
1303                 {
1304                     "command": "rust-analyzer.reload",
1305                     "when": "inRustProject"
1306                 },
1307                 {
1308                     "command": "rust-analyzer.updateGithubToken",
1309                     "when": "inRustProject"
1310                 },
1311                 {
1312                     "command": "rust-analyzer.onEnter",
1313                     "when": "inRustProject"
1314                 },
1315                 {
1316                     "command": "rust-analyzer.ssr",
1317                     "when": "inRustProject"
1318                 },
1319                 {
1320                     "command": "rust-analyzer.serverVersion",
1321                     "when": "inRustProject"
1322                 },
1323                 {
1324                     "command": "rust-analyzer.toggleInlayHints",
1325                     "when": "inRustProject"
1326                 },
1327                 {
1328                     "command": "rust-analyzer.openDocs",
1329                     "when": "inRustProject"
1330                 },
1331                 {
1332                     "command": "rust-analyzer.openCargoToml",
1333                     "when": "inRustProject"
1334                 }
1335             ],
1336             "editor/context": [
1337                 {
1338                     "command": "rust-analyzer.peekTests",
1339                     "when": "inRustProject",
1340                     "group": "navigation@1000"
1341                 }
1342             ]
1343         }
1344     }
1345 }