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