src/tools/rust-analyzer/editors/code/package.json JSON 3,983 lines View on github.com → Search inside
File is large — showing lines 1–2,000 of 3,983.
1{2    "name": "rust-analyzer",3    "displayName": "rust-analyzer",4    "description": "Rust language support for Visual Studio Code",5    "private": true,6    "icon": "icon.png",7    "version": "0.5.0-dev",8    "releaseTag": null,9    "publisher": "rust-lang",10    "type": "commonjs",11    "repository": {12        "url": "https://github.com/rust-lang/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        "Formatters",22        "Programming Languages"23    ],24    "capabilities": {25        "untrustedWorkspaces": {26            "supported": false,27            "description": "rust-analyzer invokes binaries set up by its configuration as well as the Rust toolchain's binaries. A malicious actor could exploit this to run arbitrary code on your machine."28        }29    },30    "engines": {31        "vscode": "^1.93.0"32    },33    "enabledApiProposals": [],34    "extensionKind": [35        "workspace"36    ],37    "scripts": {38        "vscode:prepublish": "npm run build-base -- --minify",39        "package": "vsce package -o rust-analyzer.vsix",40        "build-base": "esbuild ./src/main.ts --bundle --outfile=out/main.js --external:vscode --format=cjs --platform=node --target=node20",41        "build": "npm run build-base -- --sourcemap",42        "watch": "npm run build-base -- --sourcemap --watch",43        "format": "node --experimental-strip-types node_modules/prettier/bin/prettier.cjs . --write",44        "format:check": "node --experimental-strip-types node_modules/prettier/bin/prettier.cjs . --check",45        "lint": "eslint .",46        "lint:fix": "npm run lint -- --fix",47        "typecheck": "tsc",48        "pretest": "npm run typecheck && npm run build",49        "test": "node ./out/tests/runTests.js"50    },51    "dependencies": {52        "@hpcc-js/wasm": "^2.22.4",53        "anser": "^2.3.2",54        "d3": "^7.9.0",55        "d3-graphviz": "^5.6.0",56        "jiti": "^2.4.2",57        "vscode-languageclient": "^9.0.1"58    },59    "devDependencies": {60        "@eslint/js": "^10.0.1",61        "@stylistic/eslint-plugin": "^5.10.0",62        "@stylistic/eslint-plugin-js": "^4.1.0",63        "@tsconfig/strictest": "^2.0.5",64        "@types/lodash": "^4.17.20",65        "@types/node": "~22.13.4",66        "@types/vscode": "~1.93.0",67        "@typescript-eslint/eslint-plugin": "^8.25.0",68        "@typescript-eslint/parser": "^8.25.0",69        "@vscode/test-electron": "^2.4.1",70        "@vscode/vsce": "^3.7.1",71        "esbuild": "^0.25.0",72        "eslint": "^10.2.0",73        "eslint-config-prettier": "^10.1.8",74        "eslint-define-config": "^2.1.0",75        "ovsx": "0.10.10",76        "prettier": "^3.8.1",77        "tslib": "^2.8.1",78        "typescript": "^6.0.2",79        "typescript-eslint": "^8.58.0"80    },81    "activationEvents": [82        "workspaceContains:Cargo.toml",83        "workspaceContains:*/Cargo.toml",84        "workspaceContains:rust-project.json",85        "workspaceContains:*/rust-project.json",86        "workspaceContains:.rust-project.json",87        "workspaceContains:*/.rust-project.json"88    ],89    "main": "./out/main",90    "contributes": {91        "taskDefinitions": [92            {93                "type": "cargo",94                "required": [95                    "command"96                ],97                "properties": {98                    "label": {99                        "type": "string"100                    },101                    "command": {102                        "type": "string"103                    },104                    "args": {105                        "type": "array",106                        "items": {107                            "type": "string"108                        }109                    },110                    "env": {111                        "type": "object",112                        "patternProperties": {113                            ".+": {114                                "type": "string"115                            }116                        }117                    }118                }119            }120        ],121        "commands": [122            {123                "command": "rust-analyzer.viewHir",124                "title": "View Hir",125                "category": "rust-analyzer (debug command)"126            },127            {128                "command": "rust-analyzer.viewMir",129                "title": "View Mir",130                "category": "rust-analyzer (debug command)"131            },132            {133                "command": "rust-analyzer.interpretFunction",134                "title": "Interpret",135                "category": "rust-analyzer (debug command)"136            },137            {138                "command": "rust-analyzer.viewFileText",139                "title": "View File Text (as seen by the server)",140                "category": "rust-analyzer (debug command)"141            },142            {143                "command": "rust-analyzer.viewItemTree",144                "title": "Debug ItemTree",145                "category": "rust-analyzer (debug command)"146            },147            {148                "command": "rust-analyzer.memoryUsage",149                "title": "Memory Usage (Clears Database)",150                "category": "rust-analyzer (debug command)"151            },152            {153                "command": "rust-analyzer.viewCrateGraph",154                "title": "View Crate Graph",155                "category": "rust-analyzer"156            },157            {158                "command": "rust-analyzer.viewFullCrateGraph",159                "title": "View Crate Graph (Full)",160                "category": "rust-analyzer"161            },162            {163                "command": "rust-analyzer.expandMacro",164                "title": "Expand macro recursively at caret",165                "category": "rust-analyzer"166            },167            {168                "command": "rust-analyzer.matchingBrace",169                "title": "Find matching brace",170                "category": "rust-analyzer"171            },172            {173                "command": "rust-analyzer.parentModule",174                "title": "Locate parent module",175                "category": "rust-analyzer"176            },177            {178                "command": "rust-analyzer.childModules",179                "title": "Locate child modules",180                "category": "rust-analyzer"181            },182            {183                "command": "rust-analyzer.joinLines",184                "title": "Join lines",185                "category": "rust-analyzer"186            },187            {188                "command": "rust-analyzer.run",189                "title": "Run",190                "category": "rust-analyzer"191            },192            {193                "command": "rust-analyzer.copyRunCommandLine",194                "title": "Copy Run Command Line",195                "category": "rust-analyzer"196            },197            {198                "command": "rust-analyzer.debug",199                "title": "Debug",200                "category": "rust-analyzer"201            },202            {203                "command": "rust-analyzer.newDebugConfig",204                "title": "Generate launch configuration",205                "category": "rust-analyzer"206            },207            {208                "command": "rust-analyzer.analyzerStatus",209                "title": "Status",210                "category": "rust-analyzer"211            },212            {213                "command": "rust-analyzer.reloadWorkspace",214                "title": "Reload workspace",215                "category": "rust-analyzer"216            },217            {218                "command": "rust-analyzer.rebuildProcMacros",219                "title": "Rebuild proc macros and build scripts",220                "category": "rust-analyzer"221            },222            {223                "command": "rust-analyzer.restartServer",224                "title": "Restart server",225                "category": "rust-analyzer"226            },227            {228                "command": "rust-analyzer.startServer",229                "title": "Start server",230                "category": "rust-analyzer"231            },232            {233                "command": "rust-analyzer.stopServer",234                "title": "Stop server",235                "category": "rust-analyzer"236            },237            {238                "command": "rust-analyzer.onEnter",239                "title": "Enhanced enter key",240                "category": "rust-analyzer"241            },242            {243                "command": "rust-analyzer.ssr",244                "title": "Structural Search Replace",245                "category": "rust-analyzer"246            },247            {248                "command": "rust-analyzer.serverVersion",249                "title": "Show RA Version",250                "category": "rust-analyzer"251            },252            {253                "command": "rust-analyzer.openDocs",254                "title": "Open Docs",255                "category": "rust-analyzer"256            },257            {258                "command": "rust-analyzer.openExternalDocs",259                "title": "Open External Docs",260                "category": "rust-analyzer"261            },262            {263                "command": "rust-analyzer.openCargoToml",264                "title": "Open Cargo.toml",265                "category": "rust-analyzer"266            },267            {268                "command": "rust-analyzer.peekTests",269                "title": "Peek Related Tests",270                "category": "rust-analyzer"271            },272            {273                "command": "rust-analyzer.moveItemUp",274                "title": "Move Item Up",275                "category": "rust-analyzer"276            },277            {278                "command": "rust-analyzer.moveItemDown",279                "title": "Move Item Down",280                "category": "rust-analyzer"281            },282            {283                "command": "rust-analyzer.cancelFlycheck",284                "title": "Cancel running flychecks",285                "category": "rust-analyzer"286            },287            {288                "command": "rust-analyzer.runFlycheck",289                "title": "Run flycheck",290                "category": "rust-analyzer"291            },292            {293                "command": "rust-analyzer.clearFlycheck",294                "title": "Clear flycheck diagnostics",295                "category": "rust-analyzer"296            },297            {298                "command": "rust-analyzer.revealDependency",299                "title": "Reveal File",300                "category": "rust-analyzer"301            },302            {303                "command": "rust-analyzer.syntaxTreeReveal",304                "title": "Reveal Syntax Element",305                "icon": "$(search)",306                "category": "rust-analyzer (syntax tree)"307            },308            {309                "command": "rust-analyzer.syntaxTreeCopy",310                "title": "Copy",311                "icon": "$(copy)",312                "category": "rust-analyzer (syntax tree)"313            },314            {315                "command": "rust-analyzer.syntaxTreeHideWhitespace",316                "title": "Hide Whitespace",317                "icon": "$(filter)",318                "category": "rust-analyzer (syntax tree)"319            },320            {321                "command": "rust-analyzer.syntaxTreeShowWhitespace",322                "title": "Show Whitespace",323                "icon": "$(filter-filled)",324                "category": "rust-analyzer (syntax tree)"325            },326            {327                "command": "rust-analyzer.viewMemoryLayout",328                "title": "View Memory Layout",329                "category": "rust-analyzer"330            },331            {332                "command": "rust-analyzer.toggleCheckOnSave",333                "title": "Toggle Check on Save",334                "category": "rust-analyzer"335            },336            {337                "command": "rust-analyzer.toggleLSPLogs",338                "title": "Toggle LSP Logs",339                "category": "rust-analyzer"340            },341            {342                "command": "rust-analyzer.openWalkthrough",343                "title": "Open Walkthrough",344                "category": "rust-analyzer"345            },346            {347                "command": "rust-analyzer.getFailedObligations",348                "title": "Get Failed Obligations",349                "category": "rust-analyzer (debug command)"350            }351        ],352        "keybindings": [353            {354                "command": "rust-analyzer.parentModule",355                "key": "ctrl+shift+u",356                "when": "editorTextFocus && editorLangId == rust"357            },358            {359                "command": "rust-analyzer.joinLines",360                "key": "ctrl+shift+j",361                "when": "editorTextFocus && editorLangId == rust"362            }363        ],364        "configuration": [365            {366                "title": "Rust Analyzer"367            },368            {369                "title": "Assist"370            },371            {372                "title": "Cache Priming"373            },374            {375                "title": "Cargo"376            },377            {378                "title": "Cfg"379            },380            {381                "title": "Check"382            },383            {384                "title": "Completion"385            },386            {387                "title": "Debug"388            },389            {390                "title": "Diagnostics"391            },392            {393                "title": "Files"394            },395            {396                "title": "Highlight Related"397            },398            {399                "title": "Hover"400            },401            {402                "title": "Imports"403            },404            {405                "title": "Inlay Hints"406            },407            {408                "title": "Interpret"409            },410            {411                "title": "Join Lines"412            },413            {414                "title": "Lens"415            },416            {417                "title": "Lru"418            },419            {420                "title": "Notifications"421            },422            {423                "title": "Proc Macro"424            },425            {426                "title": "References"427            },428            {429                "title": "Runnables"430            },431            {432                "title": "Rustc"433            },434            {435                "title": "Rustfmt"436            },437            {438                "title": "Semantic Highlighting"439            },440            {441                "title": "Signature Info"442            },443            {444                "title": "Typing"445            },446            {447                "title": "Vfs"448            },449            {450                "title": "Workspace"451            },452            {453                "title": "rust-analyzer",454                "properties": {455                    "rust-analyzer.restartServerOnConfigChange": {456                        "description": "Restart the server automatically when settings that require a restart are changed.",457                        "default": false,458                        "type": "boolean"459                    },460                    "rust-analyzer.showUnlinkedFileNotification": {461                        "description": "Show a notification for unlinked files, prompting the user to add the corresponding Cargo.toml to the linked projects setting.",462                        "default": true,463                        "type": "boolean"464                    },465                    "rust-analyzer.showRequestFailedErrorNotification": {466                        "description": "Show error notifications when requests fail.",467                        "default": true,468                        "type": "boolean"469                    },470                    "rust-analyzer.showDependenciesExplorer": {471                        "description": "Show Rust Dependencies in the Explorer view.",472                        "default": true,473                        "type": "boolean"474                    },475                    "rust-analyzer.showSyntaxTree": {476                        "description": "Show Syntax Tree in the Explorer view.",477                        "default": false,478                        "type": "boolean"479                    },480                    "rust-analyzer.testExplorer": {481                        "description": "Show the Test Explorer view.",482                        "default": false,483                        "type": "boolean"484                    },485                    "rust-analyzer.initializeStopped": {486                        "markdownDescription": "Do not start rust-analyzer server when the extension is activated.",487                        "default": false,488                        "type": "boolean"489                    }490                }491            },492            {493                "title": "Runnables",494                "properties": {495                    "rust-analyzer.runnables.extraEnv": {496                        "anyOf": [497                            {498                                "type": "null"499                            },500                            {501                                "type": "array",502                                "items": {503                                    "type": "object",504                                    "properties": {505                                        "platform": {506                                            "type": [507                                                "null",508                                                "string",509                                                "array"510                                            ],511                                            "default": null,512                                            "markdownDescription": "Platform(s) filter like \"win32\" or [\"linux\", \"win32\"]. See [process.platform](https://nodejs.org/api/process.html#processplatform) values."513                                        },514                                        "mask": {515                                            "type": "string",516                                            "description": "Runnable name mask"517                                        },518                                        "env": {519                                            "type": "object",520                                            "description": "Variables in form of { \"key\": \"value\"}"521                                        }522                                    }523                                }524                            },525                            {526                                "type": "object",527                                "description": "Variables in form of { \"key\": \"value\"}"528                            }529                        ],530                        "default": null,531                        "markdownDescription": "Environment variables passed to the runnable launched using `Test` or `Debug` lens or `rust-analyzer.run` command."532                    },533                    "rust-analyzer.runnables.problemMatcher": {534                        "type": "array",535                        "items": {536                            "type": "string"537                        },538                        "default": [539                            "$rustc"540                        ],541                        "markdownDescription": "Problem matchers to use for `rust-analyzer.run` command, eg `[\"$rustc\", \"$rust-panic\"]`."542                    },543                    "rust-analyzer.runnables.askBeforeUpdateTest": {544                        "type": "boolean",545                        "default": true,546                        "markdownDescription": "Ask before updating the test when running it."547                    }548                }549            },550            {551                "title": "Status Bar",552                "properties": {553                    "rust-analyzer.statusBar.clickAction": {554                        "type": "string",555                        "enum": [556                            "stopServer",557                            "openLogs"558                        ],559                        "enumDescriptions": [560                            "Stop Server",561                            "Open Logs"562                        ],563                        "default": "openLogs",564                        "markdownDescription": "Action to run when clicking the extension status bar item."565                    },566                    "rust-analyzer.statusBar.showStatusBar": {567                        "markdownDescription": "When to show the extension status bar.\n\n`\"always\"` Always show the status bar.\n\n`\"never\"` Never show the status bar.\n\n`{ documentSelector: <DocumentSelector>[] }` Show the status bar if the open file matches any of the given document selectors.\n\nSee [VS Code -- DocumentSelector](https://code.visualstudio.com/api/references/document-selector) for more information.",568                        "anyOf": [569                            {570                                "type": "string",571                                "enum": [572                                    "always",573                                    "never"574                                ]575                            },576                            {577                                "type": "object",578                                "properties": {579                                    "documentSelector": {580                                        "type": "array",581                                        "items": {582                                            "type": "object",583                                            "properties": {584                                                "language": {585                                                    "type": "string"586                                                },587                                                "notebookType": {588                                                    "type": "string"589                                                },590                                                "scheme": {591                                                    "type": "string"592                                                },593                                                "pattern": {594                                                    "type": "string"595                                                }596                                            }597                                        }598                                    }599                                }600                            }601                        ],602                        "default": {603                            "documentSelector": [604                                {605                                    "language": "rust"606                                },607                                {608                                    "pattern": "**/Cargo.toml"609                                },610                                {611                                    "pattern": "**/Cargo.lock"612                                },613                                {614                                    "scheme": "output",615                                    "pattern": "extension-output-rust-lang.rust-analyzer*"616                                }617                            ]618                        }619                    }620                }621            },622            {623                "title": "Server",624                "properties": {625                    "rust-analyzer.server.path": {626                        "type": [627                            "null",628                            "string"629                        ],630                        "scope": "machine-overridable",631                        "default": null,632                        "markdownDescription": "Path to rust-analyzer executable (points to bundled binary by default)."633                    },634                    "rust-analyzer.server.extraEnv": {635                        "type": [636                            "null",637                            "object"638                        ],639                        "additionalProperties": {640                            "type": [641                                "string",642                                "number",643                                "null"644                            ]645                        },646                        "default": null,647                        "markdownDescription": "Extra environment variables that will be passed to the rust-analyzer executable. Useful for passing e.g. `RA_LOG` for debugging."648                    }649                }650            },651            {652                "title": "Trace",653                "properties": {654                    "rust-analyzer.trace.server": {655                        "type": "string",656                        "scope": "window",657                        "enum": [658                            "off",659                            "messages",660                            "verbose"661                        ],662                        "enumDescriptions": [663                            "No traces",664                            "Error only",665                            "Full log"666                        ],667                        "default": "off",668                        "description": "Trace requests to the rust-analyzer (this is usually overly verbose and not recommended for regular users)."669                    },670                    "rust-analyzer.trace.extension": {671                        "description": "Enable logging of VS Code extensions itself.",672                        "markdownDeprecationMessage": "Log level is now controlled by the [Developer: Set Log Level...](command:workbench.action.setLogLevel) command.You can set the log level for the current session and also the default log level from there. This is also available by clicking the gear icon on the OUTPUT tab when Rust Analyzer Client is visible or by passing the --log rust-lang.rust-analyzer:debug parameter to VS Code.",673                        "type": "boolean",674                        "default": false675                    }676                }677            },678            {679                "title": "Debug",680                "properties": {681                    "rust-analyzer.debug.engine": {682                        "type": "string",683                        "enum": [684                            "auto",685                            "llvm-vs-code-extensions.lldb-dap",686                            "vadimcn.vscode-lldb",687                            "ms-vscode.cpptools",688                            "webfreak.debug"689                        ],690                        "default": "auto",691                        "description": "Preferred debug engine.",692                        "markdownEnumDescriptions": [693                            "Use the first available extension out of [LLDB DAP](https://marketplace.visualstudio.com/items?itemName=llvm-vs-code-extensions.lldb-dap), [CodeLLDB](https://marketplace.visualstudio.com/items?itemName=vadimcn.vscode-lldb), [C/C++ for Visual Studio Code](https://marketplace.visualstudio.com/items?itemName=ms-vscode.cpptools), and [Native Debug](https://marketplace.visualstudio.com/items?itemName=webfreak.debug).",694                            "Use [LLDB DAP](https://marketplace.visualstudio.com/items?itemName=llvm-vs-code-extensions.lldb-dap)",695                            "Use [CodeLLDB](https://marketplace.visualstudio.com/items?itemName=vadimcn.vscode-lldb)",696                            "Use [C/C++ for Visual Studio Code](https://marketplace.visualstudio.com/items?itemName=ms-vscode.cpptools)",697                            "Use [Native Debug](https://marketplace.visualstudio.com/items?itemName=webfreak.debug)"698                        ]699                    },700                    "rust-analyzer.debug.sourceFileMap": {701                        "type": [702                            "object",703                            "string"704                        ],705                        "const": "auto",706                        "description": "Optional source file mappings passed to the debug engine.",707                        "default": {708                            "/rustc/<id>": "${env:USERPROFILE}/.rustup/toolchains/<toolchain-id>/lib/rustlib/src/rust"709                        }710                    },711                    "rust-analyzer.debug.buildBeforeRestart": {712                        "markdownDescription": "Whether to rebuild the project modules before debugging the same test again",713                        "type": "boolean",714                        "default": false715                    },716                    "rust-analyzer.debug.engineSettings": {717                        "type": "object",718                        "default": {},719                        "markdownDescription": "Optional settings passed to the debug engine. Example: `{ \"lldb\": { \"terminal\":\"external\"} }`"720                    }721                }722            },723            {724                "title": "Typing",725                "properties": {726                    "rust-analyzer.typing.continueCommentsOnNewline": {727                        "markdownDescription": "Whether to prefix newlines after comments with the corresponding comment prefix.",728                        "default": true,729                        "type": "boolean"730                    }731                }732            },733            {734                "title": "Diagnostics",735                "properties": {736                    "rust-analyzer.diagnostics.previewRustcOutput": {737                        "markdownDescription": "Whether to show the main part of the rendered rustc output of a diagnostic message.",738                        "default": false,739                        "type": "boolean"740                    },741                    "rust-analyzer.diagnostics.useRustcErrorCode": {742                        "markdownDescription": "Whether to show diagnostics using the original rustc error code. If this is false, all rustc diagnostics will have the code 'rustc(Click for full compiler diagnostics)'",743                        "default": false,744                        "type": "boolean"745                    }746                }747            },748            {749                "title": "$generated-start"750            },751            {752                "title": "Assist",753                "properties": {754                    "rust-analyzer.assist.emitMustUse": {755                        "markdownDescription": "Insert #[must_use] when generating `as_` methods for enum variants.",756                        "default": false,757                        "type": "boolean"758                    }759                }760            },761            {762                "title": "Assist",763                "properties": {764                    "rust-analyzer.assist.expressionFillDefault": {765                        "markdownDescription": "Placeholder expression to use for missing expressions in assists.",766                        "default": "todo",767                        "type": "string",768                        "enum": [769                            "todo",770                            "default"771                        ],772                        "enumDescriptions": [773                            "Fill missing expressions with the `todo` macro",774                            "Fill missing expressions with reasonable defaults, `new` or `default` constructors."775                        ]776                    }777                }778            },779            {780                "title": "Assist",781                "properties": {782                    "rust-analyzer.assist.preferSelf": {783                        "markdownDescription": "Prefer to use `Self` over the type name when inserting a type (e.g. in \"fill match arms\" assist).",784                        "default": false,785                        "type": "boolean"786                    }787                }788            },789            {790                "title": "Assist",791                "properties": {792                    "rust-analyzer.assist.termSearch.borrowcheck": {793                        "markdownDescription": "Enable borrow checking for term search code assists. If set to false, also there will be\nmore suggestions, but some of them may not borrow-check.",794                        "default": true,795                        "type": "boolean"796                    }797                }798            },799            {800                "title": "Assist",801                "properties": {802                    "rust-analyzer.assist.termSearch.fuel": {803                        "markdownDescription": "Term search fuel in \"units of work\" for assists (Defaults to 1800).",804                        "default": 1800,805                        "type": "integer",806                        "minimum": 0807                    }808                }809            },810            {811                "title": "Cache Priming",812                "properties": {813                    "rust-analyzer.cachePriming.enable": {814                        "markdownDescription": "Warm up caches on project load.",815                        "default": true,816                        "type": "boolean"817                    }818                }819            },820            {821                "title": "Cache Priming",822                "properties": {823                    "rust-analyzer.cachePriming.numThreads": {824                        "markdownDescription": "How many worker threads to handle priming caches. The default `0` means to pick\nautomatically.",825                        "default": "physical",826                        "anyOf": [827                            {828                                "type": "number",829                                "minimum": 0,830                                "maximum": 255831                            },832                            {833                                "type": "string",834                                "enum": [835                                    "physical",836                                    "logical"837                                ],838                                "enumDescriptions": [839                                    "Use the number of physical cores",840                                    "Use the number of logical cores"841                                ]842                            }843                        ]844                    }845                }846            },847            {848                "title": "Cargo",849                "properties": {850                    "rust-analyzer.cargo.allTargets": {851                        "markdownDescription": "Pass `--all-targets` to cargo invocation.",852                        "default": true,853                        "type": "boolean"854                    }855                }856            },857            {858                "title": "Cargo",859                "properties": {860                    "rust-analyzer.cargo.autoreload": {861                        "markdownDescription": "Automatically refresh project info via `cargo metadata` on\n`Cargo.toml` or `.cargo/config.toml` changes.",862                        "default": true,863                        "type": "boolean"864                    }865                }866            },867            {868                "title": "Cargo",869                "properties": {870                    "rust-analyzer.cargo.buildScripts.enable": {871                        "markdownDescription": "Run build scripts (`build.rs`) for more precise code analysis.",872                        "default": true,873                        "type": "boolean"874                    }875                }876            },877            {878                "title": "Cargo",879                "properties": {880                    "rust-analyzer.cargo.buildScripts.invocationStrategy": {881                        "markdownDescription": "Specifies the invocation strategy to use when running the build scripts command.\nIf `per_workspace` is set, the command will be executed for each Rust workspace with the\nworkspace as the working directory.\nIf `once` is set, the command will be executed once with the opened project as the\nworking directory.\nThis config only has an effect when `#rust-analyzer.cargo.buildScripts.overrideCommand#`\nis set.",882                        "default": "per_workspace",883                        "type": "string",884                        "enum": [885                            "per_workspace",886                            "once"887                        ],888                        "enumDescriptions": [889                            "The command will be executed for each Rust workspace with the workspace as the working directory.",890                            "The command will be executed once with the opened project as the working directory."891                        ]892                    }893                }894            },895            {896                "title": "Cargo",897                "properties": {898                    "rust-analyzer.cargo.buildScripts.overrideCommand": {899                        "markdownDescription": "Override the command rust-analyzer uses to run build scripts and\nbuild procedural macros. The command is required to output json\nand should therefore include `--message-format=json` or a similar\noption.\n\nIf there are multiple linked projects/workspaces, this command is invoked for\neach of them, with the working directory being the workspace root\n(i.e., the folder containing the `Cargo.toml`). This can be overwritten\nby changing `#rust-analyzer.cargo.buildScripts.invocationStrategy#`.\n\nBy default, a cargo invocation will be constructed for the configured\ntargets and features, with the following base command line:\n\n```bash\ncargo check --quiet --workspace --message-format=json --all-targets --keep-going\n```\n\nNote: The option must be specified as an array of command line arguments, with\nthe first argument being the name of the command to run.",900                        "default": null,901                        "type": [902                            "null",903                            "array"904                        ],905                        "items": {906                            "type": "string"907                        }908                    }909                }910            },911            {912                "title": "Cargo",913                "properties": {914                    "rust-analyzer.cargo.buildScripts.rebuildOnSave": {915                        "markdownDescription": "Rerun proc-macros building/build-scripts running when proc-macro\nor build-script sources change and are saved.",916                        "default": true,917                        "type": "boolean"918                    }919                }920            },921            {922                "title": "Cargo",923                "properties": {924                    "rust-analyzer.cargo.buildScripts.useRustcWrapper": {925                        "markdownDescription": "Use `RUSTC_WRAPPER=rust-analyzer` when running build scripts to\navoid checking unnecessary things.",926                        "default": true,927                        "type": "boolean"928                    }929                }930            },931            {932                "title": "Cargo",933                "properties": {934                    "rust-analyzer.cargo.cfgs": {935                        "markdownDescription": "List of cfg options to enable with the given values.\n\nTo enable a name without a value, use `\"key\"`.\nTo enable a name with a value, use `\"key=value\"`.\nTo disable, prefix the entry with a `!`.",936                        "default": [937                            "debug_assertions",938                            "miri"939                        ],940                        "type": "array",941                        "items": {942                            "type": "string"943                        }944                    }945                }946            },947            {948                "title": "Cargo",949                "properties": {950                    "rust-analyzer.cargo.extraArgs": {951                        "markdownDescription": "Extra arguments that are passed to every cargo invocation.",952                        "default": [],953                        "type": "array",954                        "items": {955                            "type": "string"956                        }957                    }958                }959            },960            {961                "title": "Cargo",962                "properties": {963                    "rust-analyzer.cargo.extraEnv": {964                        "markdownDescription": "Extra environment variables that will be set when running cargo, rustc\nor other commands within the workspace. Useful for setting RUSTFLAGS.",965                        "default": {},966                        "type": "object"967                    }968                }969            },970            {971                "title": "Cargo",972                "properties": {973                    "rust-analyzer.cargo.features": {974                        "markdownDescription": "List of features to activate.\n\nSet this to `\"all\"` to pass `--all-features` to cargo.",975                        "default": [],976                        "anyOf": [977                            {978                                "type": "string",979                                "enum": [980                                    "all"981                                ],982                                "enumDescriptions": [983                                    "Pass `--all-features` to cargo"984                                ]985                            },986                            {987                                "type": "array",988                                "items": {989                                    "type": "string"990                                }991                            }992                        ]993                    }994                }995            },996            {997                "title": "Cargo",998                "properties": {999                    "rust-analyzer.cargo.metadataExtraArgs": {1000                        "markdownDescription": "Extra arguments passed only to `cargo metadata`, not to other cargo invocations.\nUseful for flags like `--config` that `cargo metadata` supports.",1001                        "default": [],1002                        "type": "array",1003                        "items": {1004                            "type": "string"1005                        }1006                    }1007                }1008            },1009            {1010                "title": "Cargo",1011                "properties": {1012                    "rust-analyzer.cargo.noDefaultFeatures": {1013                        "markdownDescription": "Whether to pass `--no-default-features` to cargo.",1014                        "default": false,1015                        "type": "boolean"1016                    }1017                }1018            },1019            {1020                "title": "Cargo",1021                "properties": {1022                    "rust-analyzer.cargo.noDeps": {1023                        "markdownDescription": "Whether to skip fetching dependencies. If set to \"true\", the analysis is performed\nentirely offline, and Cargo metadata for dependencies is not fetched.",1024                        "default": false,1025                        "type": "boolean"1026                    }1027                }1028            },1029            {1030                "title": "Cargo",1031                "properties": {1032                    "rust-analyzer.cargo.sysroot": {1033                        "markdownDescription": "Relative path to the sysroot, or \"discover\" to try to automatically find it via\n\"rustc --print sysroot\".\n\nUnsetting this disables sysroot loading.\n\nThis option does not take effect until rust-analyzer is restarted.",1034                        "default": "discover",1035                        "type": [1036                            "null",1037                            "string"1038                        ]1039                    }1040                }1041            },1042            {1043                "title": "Cargo",1044                "properties": {1045                    "rust-analyzer.cargo.sysrootSrc": {1046                        "markdownDescription": "Relative path to the sysroot library sources. If left unset, this will default to\n`{cargo.sysroot}/lib/rustlib/src/rust/library`.\n\nThis option does not take effect until rust-analyzer is restarted.",1047                        "default": null,1048                        "type": [1049                            "null",1050                            "string"1051                        ]1052                    }1053                }1054            },1055            {1056                "title": "Cargo",1057                "properties": {1058                    "rust-analyzer.cargo.target": {1059                        "markdownDescription": "Compilation target override (target tuple).",1060                        "default": null,1061                        "type": [1062                            "null",1063                            "string"1064                        ]1065                    }1066                }1067            },1068            {1069                "title": "Cargo",1070                "properties": {1071                    "rust-analyzer.cargo.targetDir": {1072                        "markdownDescription": "Optional path to a rust-analyzer specific target directory.\nThis prevents rust-analyzer's `cargo check` and initial build-script and proc-macro\nbuilding from locking the `Cargo.lock` at the expense of duplicating build artifacts.\n\nSet to `true` to use a subdirectory of the existing target directory or\nset to a path relative to the workspace to use that path.",1073                        "default": null,1074                        "anyOf": [1075                            {1076                                "type": "null"1077                            },1078                            {1079                                "type": "boolean"1080                            },1081                            {1082                                "type": "string"1083                            }1084                        ]1085                    }1086                }1087            },1088            {1089                "title": "Cfg",1090                "properties": {1091                    "rust-analyzer.cfg.setTest": {1092                        "markdownDescription": "Set `cfg(test)` for local crates. Defaults to true.",1093                        "default": true,1094                        "type": "boolean"1095                    }1096                }1097            },1098            {1099                "title": "rust-analyzer",1100                "properties": {1101                    "rust-analyzer.checkOnSave": {1102                        "markdownDescription": "Run the check command for diagnostics on save.",1103                        "default": true,1104                        "type": "boolean"1105                    }1106                }1107            },1108            {1109                "title": "Check",1110                "properties": {1111                    "rust-analyzer.check.allTargets": {1112                        "markdownDescription": "Check all targets and tests (`--all-targets`). Defaults to\n`#rust-analyzer.cargo.allTargets#`.",1113                        "default": null,1114                        "type": [1115                            "null",1116                            "boolean"1117                        ]1118                    }1119                }1120            },1121            {1122                "title": "Check",1123                "properties": {1124                    "rust-analyzer.check.command": {1125                        "markdownDescription": "Cargo command to use for `cargo check`.",1126                        "default": "check",1127                        "type": "string"1128                    }1129                }1130            },1131            {1132                "title": "Check",1133                "properties": {1134                    "rust-analyzer.check.extraArgs": {1135                        "markdownDescription": "Extra arguments for `cargo check`.",1136                        "default": [],1137                        "type": "array",1138                        "items": {1139                            "type": "string"1140                        }1141                    }1142                }1143            },1144            {1145                "title": "Check",1146                "properties": {1147                    "rust-analyzer.check.extraEnv": {1148                        "markdownDescription": "Extra environment variables that will be set when running `cargo check`.\nExtends `#rust-analyzer.cargo.extraEnv#`.",1149                        "default": {},1150                        "type": "object"1151                    }1152                }1153            },1154            {1155                "title": "Check",1156                "properties": {1157                    "rust-analyzer.check.features": {1158                        "markdownDescription": "List of features to activate. Defaults to\n`#rust-analyzer.cargo.features#`.\n\nSet to `\"all\"` to pass `--all-features` to Cargo.",1159                        "default": null,1160                        "anyOf": [1161                            {1162                                "type": "string",1163                                "enum": [1164                                    "all"1165                                ],1166                                "enumDescriptions": [1167                                    "Pass `--all-features` to cargo"1168                                ]1169                            },1170                            {1171                                "type": "array",1172                                "items": {1173                                    "type": "string"1174                                }1175                            },1176                            {1177                                "type": "null"1178                            }1179                        ]1180                    }1181                }1182            },1183            {1184                "title": "Check",1185                "properties": {1186                    "rust-analyzer.check.ignore": {1187                        "markdownDescription": "List of `cargo check` (or other command specified in `check.command`) diagnostics to ignore.\n\nFor example for `cargo check`: `dead_code`, `unused_imports`, `unused_variables`,...",1188                        "default": [],1189                        "type": "array",1190                        "items": {1191                            "type": "string"1192                        },1193                        "uniqueItems": true1194                    }1195                }1196            },1197            {1198                "title": "Check",1199                "properties": {1200                    "rust-analyzer.check.invocationStrategy": {1201                        "markdownDescription": "Specifies the invocation strategy to use when running the check command.\nIf `per_workspace` is set, the command will be executed for each workspace.\nIf `once` is set, the command will be executed once.\nThis config only has an effect when `#rust-analyzer.check.overrideCommand#`\nis set.",1202                        "default": "per_workspace",1203                        "type": "string",1204                        "enum": [1205                            "per_workspace",1206                            "once"1207                        ],1208                        "enumDescriptions": [1209                            "The command will be executed for each Rust workspace with the workspace as the working directory.",1210                            "The command will be executed once with the opened project as the working directory."1211                        ]1212                    }1213                }1214            },1215            {1216                "title": "Check",1217                "properties": {1218                    "rust-analyzer.check.noDefaultFeatures": {1219                        "markdownDescription": "Whether to pass `--no-default-features` to Cargo. Defaults to\n`#rust-analyzer.cargo.noDefaultFeatures#`.",1220                        "default": null,1221                        "type": [1222                            "null",1223                            "boolean"1224                        ]1225                    }1226                }1227            },1228            {1229                "title": "Check",1230                "properties": {1231                    "rust-analyzer.check.overrideCommand": {1232                        "markdownDescription": "Override the command rust-analyzer uses instead of `cargo check` for\ndiagnostics on save. The command is required to output json and\nshould therefore include `--message-format=json` or a similar option\n(if your client supports the `colorDiagnosticOutput` experimental\ncapability, you can use `--message-format=json-diagnostic-rendered-ansi`).\n\nIf you're changing this because you're using some tool wrapping\nCargo, you might also want to change\n`#rust-analyzer.cargo.buildScripts.overrideCommand#`.\n\nIf there are multiple linked projects/workspaces, this command is invoked for\neach of them, with the working directory being the workspace root\n(i.e., the folder containing the `Cargo.toml`). This can be overwritten\nby changing `#rust-analyzer.check.invocationStrategy#`.\n\nIt supports two interpolation syntaxes, both mainly intended to be used with\n[non-Cargo build systems](./non_cargo_based_projects.md):\n\n- If `{saved_file}` is part of the command, rust-analyzer will pass\n    the absolute path of the saved file to the provided command.\n    (A previous version, `$saved_file`, also works.)\n- If `{label}` is part of the command, rust-analyzer will pass the\n    Cargo package ID, which can be used with `cargo check -p`, or a build label from\n    `rust-project.json`. If `{label}` is included, rust-analyzer behaves much like\n    [`\"rust-analyzer.check.workspace\": false`](#check.workspace).\n\n\n\nAn example command would be:\n\n```bash\ncargo check --workspace --message-format=json --all-targets\n```\n\nNote: The option must be specified as an array of command line arguments, with\nthe first argument being the name of the command to run.",1233                        "default": null,1234                        "type": [1235                            "null",1236                            "array"1237                        ],1238                        "items": {1239                            "type": "string"1240                        }1241                    }1242                }1243            },1244            {1245                "title": "Check",1246                "properties": {1247                    "rust-analyzer.check.targets": {1248                        "markdownDescription": "Check for specific targets. Defaults to `#rust-analyzer.cargo.target#` if empty.\n\nCan be a single target, e.g. `\"x86_64-unknown-linux-gnu\"` or a list of targets, e.g.\n`[\"aarch64-apple-darwin\", \"x86_64-apple-darwin\"]`.\n\nAliased as `\"checkOnSave.targets\"`.",1249                        "default": null,1250                        "anyOf": [1251                            {1252                                "type": "null"1253                            },1254                            {1255                                "type": "string"1256                            },1257                            {1258                                "type": "array",1259                                "items": {1260                                    "type": "string"1261                                }1262                            }1263                        ]1264                    }1265                }1266            },1267            {1268                "title": "Check",1269                "properties": {1270                    "rust-analyzer.check.workspace": {1271                        "markdownDescription": "Whether `--workspace` should be passed to `cargo check`.\nIf false, `-p <package>` will be passed instead if applicable. In case it is not, no\ncheck will be performed.",1272                        "default": true,1273                        "type": "boolean"1274                    }1275                }1276            },1277            {1278                "title": "Completion",1279                "properties": {1280                    "rust-analyzer.completion.addSemicolonToUnit": {1281                        "markdownDescription": "Automatically add a semicolon when completing unit-returning functions.\n\nIn `match` arms it completes a comma instead.",1282                        "default": true,1283                        "type": "boolean"1284                    }1285                }1286            },1287            {1288                "title": "Completion",1289                "properties": {1290                    "rust-analyzer.completion.autoAwait.enable": {1291                        "markdownDescription": "Show method calls and field accesses completions with `await` prefixed to them when\ncompleting on a future.",1292                        "default": true,1293                        "type": "boolean"1294                    }1295                }1296            },1297            {1298                "title": "Completion",1299                "properties": {1300                    "rust-analyzer.completion.autoIter.enable": {1301                        "markdownDescription": "Show method call completions with `iter()` or `into_iter()` prefixed to them when\ncompleting on a type that has them.",1302                        "default": true,1303                        "type": "boolean"1304                    }1305                }1306            },1307            {1308                "title": "Completion",1309                "properties": {1310                    "rust-analyzer.completion.autoimport.enable": {1311                        "markdownDescription": "Show completions that automatically add imports when completed.\n\nNote that your client must specify the `additionalTextEdits` LSP client capability to\ntruly have this feature enabled.",1312                        "default": true,1313                        "type": "boolean"1314                    }1315                }1316            },1317            {1318                "title": "Completion",1319                "properties": {1320                    "rust-analyzer.completion.autoimport.exclude": {1321                        "markdownDescription": "A list of full paths to items to exclude from auto-importing completions.\n\nTraits in this list won't have their methods suggested in completions unless the trait\nis in scope.\n\nYou can either specify a string path which defaults to type \"always\" or use the more\nverbose form `{ \"path\": \"path::to::item\", type: \"always\" }`.\n\nFor traits the type \"methods\" can be used to only exclude the methods but not the trait\nitself.\n\nThis setting also inherits `#rust-analyzer.completion.excludeTraits#`.",1322                        "default": [1323                            {1324                                "path": "core::borrow::Borrow",1325                                "type": "methods"1326                            },1327                            {1328                                "path": "core::borrow::BorrowMut",1329                                "type": "methods"1330                            }1331                        ],1332                        "type": "array",1333                        "items": {1334                            "anyOf": [1335                                {1336                                    "type": "string"1337                                },1338                                {1339                                    "type": "object",1340                                    "properties": {1341                                        "path": {1342                                            "type": "string"1343                                        },1344                                        "type": {1345                                            "type": "string",1346                                            "enum": [1347                                                "always",1348                                                "methods"1349                                            ],1350                                            "enumDescriptions": [1351                                                "Do not show this item or its methods (if it is a trait) in auto-import completions.",1352                                                "Do not show this traits methods in auto-import completions."1353                                            ]1354                                        }1355                                    }1356                                }1357                            ]1358                        }1359                    }1360                }1361            },1362            {1363                "title": "Completion",1364                "properties": {1365                    "rust-analyzer.completion.autoself.enable": {1366                        "markdownDescription": "Show method calls and field access completions with `self` prefixed to them when\ninside a method.",1367                        "default": true,1368                        "type": "boolean"1369                    }1370                }1371            },1372            {1373                "title": "Completion",1374                "properties": {1375                    "rust-analyzer.completion.callable.snippets": {1376                        "markdownDescription": "Add parenthesis and argument snippets when completing function.",1377                        "default": "fill_arguments",1378                        "type": "string",1379                        "enum": [1380                            "fill_arguments",1381                            "add_parentheses",1382                            "none"1383                        ],1384                        "enumDescriptions": [1385                            "Add call parentheses and pre-fill arguments.",1386                            "Add call parentheses.",1387                            "Do no snippet completions for callables."1388                        ]1389                    }1390                }1391            },1392            {1393                "title": "Completion",1394                "properties": {1395                    "rust-analyzer.completion.excludeTraits": {1396                        "markdownDescription": "A list of full paths to traits whose methods to exclude from completion.\n\nMethods from these traits won't be completed, even if the trait is in scope. However,\nthey will still be suggested on expressions whose type is `dyn Trait`, `impl Trait` or\n`T where T: Trait`.\n\nNote that the trait themselves can still be completed.",1397                        "default": [],1398                        "type": "array",1399                        "items": {1400                            "type": "string"1401                        }1402                    }1403                }1404            },1405            {1406                "title": "Completion",1407                "properties": {1408                    "rust-analyzer.completion.fullFunctionSignatures.enable": {1409                        "markdownDescription": "Show full function / method signatures in completion docs.",1410                        "default": false,1411                        "type": "boolean"1412                    }1413                }1414            },1415            {1416                "title": "Completion",1417                "properties": {1418                    "rust-analyzer.completion.hideDeprecated": {1419                        "markdownDescription": "Omit deprecated items from completions. By default they are marked as deprecated but not\nhidden.",1420                        "default": false,1421                        "type": "boolean"1422                    }1423                }1424            },1425            {1426                "title": "Completion",1427                "properties": {1428                    "rust-analyzer.completion.limit": {1429                        "markdownDescription": "Maximum number of completions to return. If `None`, the limit is infinite.",1430                        "default": null,1431                        "type": [1432                            "null",1433                            "integer"1434                        ],1435                        "minimum": 01436                    }1437                }1438            },1439            {1440                "title": "Completion",1441                "properties": {1442                    "rust-analyzer.completion.postfix.enable": {1443                        "markdownDescription": "Show postfix snippets like `dbg`, `if`, `not`, etc.",1444                        "default": true,1445                        "type": "boolean"1446                    }1447                }1448            },1449            {1450                "title": "Completion",1451                "properties": {1452                    "rust-analyzer.completion.privateEditable.enable": {1453                        "markdownDescription": "Show completions of private items and fields that are defined in the current workspace\neven if they are not visible at the current position.",1454                        "default": false,1455                        "type": "boolean"1456                    }1457                }1458            },1459            {1460                "title": "Completion",1461                "properties": {1462                    "rust-analyzer.completion.snippets.custom": {1463                        "markdownDescription": "Custom completion snippets.",1464                        "default": {1465                            "Ok": {1466                                "postfix": "ok",1467                                "body": "Ok(${receiver})",1468                                "description": "Wrap the expression in a `Result::Ok`",1469                                "scope": "expr"1470                            },1471                            "Box::pin": {1472                                "postfix": "pinbox",1473                                "body": "Box::pin(${receiver})",1474                                "requires": "std::boxed::Box",1475                                "description": "Put the expression into a pinned `Box`",1476                                "scope": "expr"1477                            },1478                            "Arc::new": {1479                                "postfix": "arc",1480                                "body": "Arc::new(${receiver})",1481                                "requires": "std::sync::Arc",1482                                "description": "Put the expression into an `Arc`",1483                                "scope": "expr"1484                            },1485                            "Some": {1486                                "postfix": "some",1487                                "body": "Some(${receiver})",1488                                "description": "Wrap the expression in an `Option::Some`",1489                                "scope": "expr"1490                            },1491                            "Err": {1492                                "postfix": "err",1493                                "body": "Err(${receiver})",1494                                "description": "Wrap the expression in a `Result::Err`",1495                                "scope": "expr"1496                            },1497                            "Rc::new": {1498                                "postfix": "rc",1499                                "body": "Rc::new(${receiver})",1500                                "requires": "std::rc::Rc",1501                                "description": "Put the expression into an `Rc`",1502                                "scope": "expr"1503                            }1504                        },1505                        "type": "object"1506                    }1507                }1508            },1509            {1510                "title": "Completion",1511                "properties": {1512                    "rust-analyzer.completion.termSearch.enable": {1513                        "markdownDescription": "Enable term search based snippets like `Some(foo.bar().baz())`.",1514                        "default": false,1515                        "type": "boolean"1516                    }1517                }1518            },1519            {1520                "title": "Completion",1521                "properties": {1522                    "rust-analyzer.completion.termSearch.fuel": {1523                        "markdownDescription": "Term search fuel in \"units of work\" for autocompletion (Defaults to 1000).",1524                        "default": 1000,1525                        "type": "integer",1526                        "minimum": 01527                    }1528                }1529            },1530            {1531                "title": "Diagnostics",1532                "properties": {1533                    "rust-analyzer.diagnostics.disabled": {1534                        "markdownDescription": "List of rust-analyzer diagnostics to disable.",1535                        "default": [],1536                        "type": "array",1537                        "items": {1538                            "type": "string"1539                        },1540                        "uniqueItems": true1541                    }1542                }1543            },1544            {1545                "title": "Diagnostics",1546                "properties": {1547                    "rust-analyzer.diagnostics.enable": {1548                        "markdownDescription": "Show native rust-analyzer diagnostics.",1549                        "default": true,1550                        "type": "boolean"1551                    }1552                }1553            },1554            {1555                "title": "Diagnostics",1556                "properties": {1557                    "rust-analyzer.diagnostics.experimental.enable": {1558                        "markdownDescription": "Show experimental rust-analyzer diagnostics that might have more false positives than\nusual.",1559                        "default": false,1560                        "type": "boolean"1561                    }1562                }1563            },1564            {1565                "title": "Diagnostics",1566                "properties": {1567                    "rust-analyzer.diagnostics.remapPrefix": {1568                        "markdownDescription": "Map of prefixes to be substituted when parsing diagnostic file paths. This should be the\nreverse mapping of what is passed to `rustc` as `--remap-path-prefix`.",1569                        "default": {},1570                        "type": "object"1571                    }1572                }1573            },1574            {1575                "title": "Diagnostics",1576                "properties": {1577                    "rust-analyzer.diagnostics.styleLints.enable": {1578                        "markdownDescription": "Run additional style lints.",1579                        "default": false,1580                        "type": "boolean"1581                    }1582                }1583            },1584            {1585                "title": "Diagnostics",1586                "properties": {1587                    "rust-analyzer.diagnostics.warningsAsHint": {1588                        "markdownDescription": "List of warnings that should be displayed with hint severity.\n\nThe warnings will be indicated by faded text or three dots in code and will not show up\nin the `Problems Panel`.",1589                        "default": [],1590                        "type": "array",1591                        "items": {1592                            "type": "string"1593                        }1594                    }1595                }1596            },1597            {1598                "title": "Diagnostics",1599                "properties": {1600                    "rust-analyzer.diagnostics.warningsAsInfo": {1601                        "markdownDescription": "List of warnings that should be displayed with info severity.\n\nThe warnings will be indicated by a blue squiggly underline in code and a blue icon in\nthe `Problems Panel`.",1602                        "default": [],1603                        "type": "array",1604                        "items": {1605                            "type": "string"1606                        }1607                    }1608                }1609            },1610            {1611                "title": "rust-analyzer",1612                "properties": {1613                    "rust-analyzer.disableFixtureSupport": {1614                        "markdownDescription": "Disable support for `#[rust_analyzer::rust_fixture]` snippets.\n\nIf you are not working on rust-analyzer itself, you should ignore this config.",1615                        "default": false,1616                        "type": "boolean"1617                    }1618                }1619            },1620            {1621                "title": "Document",1622                "properties": {1623                    "rust-analyzer.document.symbol.search.excludeLocals": {1624                        "markdownDescription": "Exclude all locals from document symbol search.",1625                        "default": true,1626                        "type": "boolean"1627                    }1628                }1629            },1630            {1631                "title": "Files",1632                "properties": {1633                    "rust-analyzer.files.exclude": {1634                        "markdownDescription": "List of files to ignore\n\nThese paths (file/directories) will be ignored by rust-analyzer. They are relative to\nthe workspace root, and globs are not supported. You may also need to add the folders to\nCode's `files.watcherExclude`.",1635                        "default": [],1636                        "type": "array",1637                        "items": {1638                            "type": "string"1639                        }1640                    }1641                }1642            },1643            {1644                "title": "Files",1645                "properties": {1646                    "rust-analyzer.files.watcher": {1647                        "markdownDescription": "Controls file watching implementation.",1648                        "default": "client",1649                        "type": "string",1650                        "enum": [1651                            "client",1652                            "server"1653                        ],1654                        "enumDescriptions": [1655                            "Use the client (editor) to watch files for changes",1656                            "Use server-side file watching"1657                        ]1658                    }1659                }1660            },1661            {1662                "title": "Goto Implementations",1663                "properties": {1664                    "rust-analyzer.gotoImplementations.filterAdjacentDerives": {1665                        "markdownDescription": "If this is `true`, when \"Goto Implementations\" and in \"Implementations\" lens, are triggered on a `struct` or `enum` or `union`, we filter out trait implementations that originate from `derive`s above the type.",1666                        "default": false,1667                        "type": "boolean"1668                    }1669                }1670            },1671            {1672                "title": "Highlight Related",1673                "properties": {1674                    "rust-analyzer.highlightRelated.branchExitPoints.enable": {1675                        "markdownDescription": "Highlight related return values while the cursor is on any `match`, `if`, or match arm\narrow (`=>`).",1676                        "default": true,1677                        "type": "boolean"1678                    }1679                }1680            },1681            {1682                "title": "Highlight Related",1683                "properties": {1684                    "rust-analyzer.highlightRelated.breakPoints.enable": {1685                        "markdownDescription": "Highlight related references while the cursor is on `break`, `loop`, `while`, or `for`\nkeywords.",1686                        "default": true,1687                        "type": "boolean"1688                    }1689                }1690            },1691            {1692                "title": "Highlight Related",1693                "properties": {1694                    "rust-analyzer.highlightRelated.closureCaptures.enable": {1695                        "markdownDescription": "Highlight all captures of a closure while the cursor is on the `|` or move keyword of a closure.",1696                        "default": true,1697                        "type": "boolean"1698                    }1699                }1700            },1701            {1702                "title": "Highlight Related",1703                "properties": {1704                    "rust-analyzer.highlightRelated.exitPoints.enable": {1705                        "markdownDescription": "Highlight all exit points while the cursor is on any `return`, `?`, `fn`, or return type\narrow (`->`).",1706                        "default": true,1707                        "type": "boolean"1708                    }1709                }1710            },1711            {1712                "title": "Highlight Related",1713                "properties": {1714                    "rust-analyzer.highlightRelated.references.enable": {1715                        "markdownDescription": "Highlight related references while the cursor is on any identifier.",1716                        "default": true,1717                        "type": "boolean"1718                    }1719                }1720            },1721            {1722                "title": "Highlight Related",1723                "properties": {1724                    "rust-analyzer.highlightRelated.yieldPoints.enable": {1725                        "markdownDescription": "Highlight all break points for a loop or block context while the cursor is on any\n`async` or `await` keywords.",1726                        "default": true,1727                        "type": "boolean"1728                    }1729                }1730            },1731            {1732                "title": "Hover",1733                "properties": {1734                    "rust-analyzer.hover.actions.debug.enable": {1735                        "markdownDescription": "Show `Debug` action. Only applies when `#rust-analyzer.hover.actions.enable#` is set.",1736                        "default": true,1737                        "type": "boolean"1738                    }1739                }1740            },1741            {1742                "title": "Hover",1743                "properties": {1744                    "rust-analyzer.hover.actions.enable": {1745                        "markdownDescription": "Show HoverActions in Rust files.",1746                        "default": true,1747                        "type": "boolean"1748                    }1749                }1750            },1751            {1752                "title": "Hover",1753                "properties": {1754                    "rust-analyzer.hover.actions.gotoTypeDef.enable": {1755                        "markdownDescription": "Show `Go to Type Definition` action. Only applies when\n`#rust-analyzer.hover.actions.enable#` is set.",1756                        "default": true,1757                        "type": "boolean"1758                    }1759                }1760            },1761            {1762                "title": "Hover",1763                "properties": {1764                    "rust-analyzer.hover.actions.implementations.enable": {1765                        "markdownDescription": "Show `Implementations` action. Only applies when `#rust-analyzer.hover.actions.enable#`\nis set.",1766                        "default": true,1767                        "type": "boolean"1768                    }1769                }1770            },1771            {1772                "title": "Hover",1773                "properties": {1774                    "rust-analyzer.hover.actions.references.enable": {1775                        "markdownDescription": "Show `References` action. Only applies when `#rust-analyzer.hover.actions.enable#` is\nset.",1776                        "default": false,1777                        "type": "boolean"1778                    }1779                }1780            },1781            {1782                "title": "Hover",1783                "properties": {1784                    "rust-analyzer.hover.actions.run.enable": {1785                        "markdownDescription": "Show `Run` action. Only applies when `#rust-analyzer.hover.actions.enable#` is set.",1786                        "default": true,1787                        "type": "boolean"1788                    }1789                }1790            },1791            {1792                "title": "Hover",1793                "properties": {1794                    "rust-analyzer.hover.actions.updateTest.enable": {1795                        "markdownDescription": "Show `Update Test` action. Only applies when `#rust-analyzer.hover.actions.enable#` and\n`#rust-analyzer.hover.actions.run.enable#` are set.",1796                        "default": true,1797                        "type": "boolean"1798                    }1799                }1800            },1801            {1802                "title": "Hover",1803                "properties": {1804                    "rust-analyzer.hover.documentation.enable": {1805                        "markdownDescription": "Show documentation on hover.",1806                        "default": true,1807                        "type": "boolean"1808                    }1809                }1810            },1811            {1812                "title": "Hover",1813                "properties": {1814                    "rust-analyzer.hover.documentation.keywords.enable": {1815                        "markdownDescription": "Show keyword hover popups. Only applies when\n`#rust-analyzer.hover.documentation.enable#` is set.",1816                        "default": true,1817                        "type": "boolean"1818                    }1819                }1820            },1821            {1822                "title": "Hover",1823                "properties": {1824                    "rust-analyzer.hover.dropGlue.enable": {1825                        "markdownDescription": "Show drop glue information on hover.",1826                        "default": true,1827                        "type": "boolean"1828                    }1829                }1830            },1831            {1832                "title": "Hover",1833                "properties": {1834                    "rust-analyzer.hover.links.enable": {1835                        "markdownDescription": "Use markdown syntax for links on hover.",1836                        "default": true,1837                        "type": "boolean"1838                    }1839                }1840            },1841            {1842                "title": "Hover",1843                "properties": {1844                    "rust-analyzer.hover.maxSubstitutionLength": {1845                        "markdownDescription": "Show what types are used as generic arguments in calls etc. on hover, and limit the max\nlength to show such types, beyond which they will be shown with ellipsis.\n\nThis can take three values: `null` means \"unlimited\", the string `\"hide\"` means to not\nshow generic substitutions at all, and a number means to limit them to X characters.\n\nThe default is 20 characters.",1846                        "default": 20,1847                        "anyOf": [1848                            {1849                                "type": "null"1850                            },1851                            {1852                                "type": "string",1853                                "enum": [1854                                    "hide"1855                                ]1856                            },1857                            {1858                                "type": "integer"1859                            }1860                        ]1861                    }1862                }1863            },1864            {1865                "title": "Hover",1866                "properties": {1867                    "rust-analyzer.hover.memoryLayout.alignment": {1868                        "markdownDescription": "How to render the align information in a memory layout hover.",1869                        "default": "hexadecimal",1870                        "anyOf": [1871                            {1872                                "type": "null"1873                            },1874                            {1875                                "type": "string",1876                                "enum": [1877                                    "both",1878                                    "decimal",1879                                    "hexadecimal"1880                                ],1881                                "enumDescriptions": [1882                                    "Render as 12 (0xC)",1883                                    "Render as 12",1884                                    "Render as 0xC"1885                                ]1886                            }1887                        ]1888                    }1889                }1890            },1891            {1892                "title": "Hover",1893                "properties": {1894                    "rust-analyzer.hover.memoryLayout.enable": {1895                        "markdownDescription": "Show memory layout data on hover.",1896                        "default": true,1897                        "type": "boolean"1898                    }1899                }1900            },1901            {1902                "title": "Hover",1903                "properties": {1904                    "rust-analyzer.hover.memoryLayout.niches": {1905                        "markdownDescription": "How to render the niche information in a memory layout hover.",1906                        "default": false,1907                        "type": [1908                            "null",1909                            "boolean"1910                        ]1911                    }1912                }1913            },1914            {1915                "title": "Hover",1916                "properties": {1917                    "rust-analyzer.hover.memoryLayout.offset": {1918                        "markdownDescription": "How to render the offset information in a memory layout hover.",1919                        "default": "hexadecimal",1920                        "anyOf": [1921                            {1922                                "type": "null"1923                            },1924                            {1925                                "type": "string",1926                                "enum": [1927                                    "both",1928                                    "decimal",1929                                    "hexadecimal"1930                                ],1931                                "enumDescriptions": [1932                                    "Render as 12 (0xC)",1933                                    "Render as 12",1934                                    "Render as 0xC"1935                                ]1936                            }1937                        ]1938                    }1939                }1940            },1941            {1942                "title": "Hover",1943                "properties": {1944                    "rust-analyzer.hover.memoryLayout.padding": {1945                        "markdownDescription": "How to render the padding information in a memory layout hover.",1946                        "default": null,1947                        "anyOf": [1948                            {1949                                "type": "null"1950                            },1951                            {1952                                "type": "string",1953                                "enum": [1954                                    "both",1955                                    "decimal",1956                                    "hexadecimal"1957                                ],1958                                "enumDescriptions": [1959                                    "Render as 12 (0xC)",1960                                    "Render as 12",1961                                    "Render as 0xC"1962                                ]1963                            }1964                        ]1965                    }1966                }1967            },1968            {1969                "title": "Hover",1970                "properties": {1971                    "rust-analyzer.hover.memoryLayout.size": {1972                        "markdownDescription": "How to render the size information in a memory layout hover.",1973                        "default": "both",1974                        "anyOf": [1975                            {1976                                "type": "null"1977                            },1978                            {1979                                "type": "string",1980                                "enum": [1981                                    "both",1982                                    "decimal",1983                                    "hexadecimal"1984                                ],1985                                "enumDescriptions": [1986                                    "Render as 12 (0xC)",1987                                    "Render as 12",1988                                    "Render as 0xC"1989                                ]1990                            }1991                        ]1992                    }1993                }1994            },1995            {1996                "title": "Hover",1997                "properties": {1998                    "rust-analyzer.hover.show.enumVariants": {1999                        "markdownDescription": "How many variants of an enum to display when hovering on. Show none if empty.",2000                        "default": 5,

Findings

✓ No findings reported for this file.

Get this view in your editor

Same data, no extra tab — call code_get_file + code_get_findings over MCP from Claude/Cursor/Copilot.