mirror of
https://github.com/nix-community/nixvim.git
synced 2025-11-08 19:46:06 +01:00
- Updated lspconfig-servers.json - Updated rust-analyzer-options.json - Updated unsupported-lspconfig-servers.json
1534 lines
61 KiB
JSON
1534 lines
61 KiB
JSON
{
|
||
"rust-analyzer.assist.emitMustUse": {
|
||
"description": "Insert #[must_use] when generating `as_` methods for enum variants.\n",
|
||
"pluginDefault": false,
|
||
"type": {
|
||
"kind": "boolean"
|
||
}
|
||
},
|
||
"rust-analyzer.assist.expressionFillDefault": {
|
||
"description": "Placeholder expression to use for missing expressions in assists.\n\nValues:\n- todo: Fill missing expressions with the `todo` macro\n- default: Fill missing expressions with reasonable defaults, `new` or `default` constructors.\n",
|
||
"pluginDefault": "todo",
|
||
"type": {
|
||
"kind": "enum",
|
||
"values": ["todo", "default"]
|
||
}
|
||
},
|
||
"rust-analyzer.assist.preferSelf": {
|
||
"description": "Prefer to use `Self` over the type name when inserting a type (e.g. in \"fill match arms\" assist).\n",
|
||
"pluginDefault": false,
|
||
"type": {
|
||
"kind": "boolean"
|
||
}
|
||
},
|
||
"rust-analyzer.assist.termSearch.borrowcheck": {
|
||
"description": "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.\n",
|
||
"pluginDefault": true,
|
||
"type": {
|
||
"kind": "boolean"
|
||
}
|
||
},
|
||
"rust-analyzer.assist.termSearch.fuel": {
|
||
"description": "Term search fuel in \"units of work\" for assists (Defaults to 1800).\n",
|
||
"pluginDefault": 1800,
|
||
"type": {
|
||
"kind": "integer",
|
||
"maximum": null,
|
||
"minimum": 0
|
||
}
|
||
},
|
||
"rust-analyzer.cachePriming.enable": {
|
||
"description": "Warm up caches on project load.\n",
|
||
"pluginDefault": true,
|
||
"type": {
|
||
"kind": "boolean"
|
||
}
|
||
},
|
||
"rust-analyzer.cachePriming.numThreads": {
|
||
"description": "How many worker threads to handle priming caches. The default `0` means to pick\nautomatically.\n\nValues:\n- physical: Use the number of physical cores\n- logical: Use the number of logical cores\n",
|
||
"pluginDefault": "physical",
|
||
"type": {
|
||
"kind": "oneOf",
|
||
"subTypes": [
|
||
{
|
||
"kind": "number",
|
||
"maximum": 255,
|
||
"minimum": 0
|
||
},
|
||
{
|
||
"kind": "enum",
|
||
"values": ["physical", "logical"]
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"rust-analyzer.cargo.allTargets": {
|
||
"description": "Pass `--all-targets` to cargo invocation.\n",
|
||
"pluginDefault": true,
|
||
"type": {
|
||
"kind": "boolean"
|
||
}
|
||
},
|
||
"rust-analyzer.cargo.autoreload": {
|
||
"description": "Automatically refresh project info via `cargo metadata` on\n`Cargo.toml` or `.cargo/config.toml` changes.\n",
|
||
"pluginDefault": true,
|
||
"type": {
|
||
"kind": "boolean"
|
||
}
|
||
},
|
||
"rust-analyzer.cargo.buildScripts.enable": {
|
||
"description": "Run build scripts (`build.rs`) for more precise code analysis.\n",
|
||
"pluginDefault": true,
|
||
"type": {
|
||
"kind": "boolean"
|
||
}
|
||
},
|
||
"rust-analyzer.cargo.buildScripts.invocationStrategy": {
|
||
"description": "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.\n\nValues:\n- per_workspace: The command will be executed for each Rust workspace with the workspace as the working directory.\n- once: The command will be executed once with the opened project as the working directory.\n",
|
||
"pluginDefault": "per_workspace",
|
||
"type": {
|
||
"kind": "enum",
|
||
"values": ["per_workspace", "once"]
|
||
}
|
||
},
|
||
"rust-analyzer.cargo.buildScripts.overrideCommand": {
|
||
"description": "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.\n",
|
||
"pluginDefault": null,
|
||
"type": {
|
||
"item": {
|
||
"kind": "string"
|
||
},
|
||
"kind": "list"
|
||
}
|
||
},
|
||
"rust-analyzer.cargo.buildScripts.rebuildOnSave": {
|
||
"description": "Rerun proc-macros building/build-scripts running when proc-macro\nor build-script sources change and are saved.\n",
|
||
"pluginDefault": true,
|
||
"type": {
|
||
"kind": "boolean"
|
||
}
|
||
},
|
||
"rust-analyzer.cargo.buildScripts.useRustcWrapper": {
|
||
"description": "Use `RUSTC_WRAPPER=rust-analyzer` when running build scripts to\navoid checking unnecessary things.\n",
|
||
"pluginDefault": true,
|
||
"type": {
|
||
"kind": "boolean"
|
||
}
|
||
},
|
||
"rust-analyzer.cargo.cfgs": {
|
||
"description": "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 `!`.\n",
|
||
"pluginDefault": ["debug_assertions", "miri"],
|
||
"type": {
|
||
"item": {
|
||
"kind": "string"
|
||
},
|
||
"kind": "list"
|
||
}
|
||
},
|
||
"rust-analyzer.cargo.extraArgs": {
|
||
"description": "Extra arguments that are passed to every cargo invocation.\n",
|
||
"pluginDefault": [],
|
||
"type": {
|
||
"item": {
|
||
"kind": "string"
|
||
},
|
||
"kind": "list"
|
||
}
|
||
},
|
||
"rust-analyzer.cargo.extraEnv": {
|
||
"description": "Extra environment variables that will be set when running cargo, rustc\nor other commands within the workspace. Useful for setting RUSTFLAGS.\n",
|
||
"pluginDefault": {},
|
||
"type": {
|
||
"kind": "object"
|
||
}
|
||
},
|
||
"rust-analyzer.cargo.features": {
|
||
"description": "List of features to activate.\n\nSet this to `\"all\"` to pass `--all-features` to cargo.\n\nValues:\n- all: Pass `--all-features` to cargo\n",
|
||
"pluginDefault": [],
|
||
"type": {
|
||
"kind": "oneOf",
|
||
"subTypes": [
|
||
{
|
||
"kind": "enum",
|
||
"values": ["all"]
|
||
},
|
||
{
|
||
"item": {
|
||
"kind": "string"
|
||
},
|
||
"kind": "list"
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"rust-analyzer.cargo.noDefaultFeatures": {
|
||
"description": "Whether to pass `--no-default-features` to cargo.\n",
|
||
"pluginDefault": false,
|
||
"type": {
|
||
"kind": "boolean"
|
||
}
|
||
},
|
||
"rust-analyzer.cargo.noDeps": {
|
||
"description": "Whether to skip fetching dependencies. If set to \"true\", the analysis is performed\nentirely offline, and Cargo metadata for dependencies is not fetched.\n",
|
||
"pluginDefault": false,
|
||
"type": {
|
||
"kind": "boolean"
|
||
}
|
||
},
|
||
"rust-analyzer.cargo.sysroot": {
|
||
"description": "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.\n",
|
||
"pluginDefault": "discover",
|
||
"type": {
|
||
"kind": "string"
|
||
}
|
||
},
|
||
"rust-analyzer.cargo.sysrootSrc": {
|
||
"description": "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.\n",
|
||
"pluginDefault": null,
|
||
"type": {
|
||
"kind": "string"
|
||
}
|
||
},
|
||
"rust-analyzer.cargo.target": {
|
||
"description": "Compilation target override (target tuple).\n",
|
||
"pluginDefault": null,
|
||
"type": {
|
||
"kind": "string"
|
||
}
|
||
},
|
||
"rust-analyzer.cargo.targetDir": {
|
||
"description": "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.\n",
|
||
"pluginDefault": null,
|
||
"type": {
|
||
"kind": "oneOf",
|
||
"subTypes": [
|
||
{
|
||
"kind": "boolean"
|
||
},
|
||
{
|
||
"kind": "string"
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"rust-analyzer.cfg.setTest": {
|
||
"description": "Set `cfg(test)` for local crates. Defaults to true.\n",
|
||
"pluginDefault": true,
|
||
"type": {
|
||
"kind": "boolean"
|
||
}
|
||
},
|
||
"rust-analyzer.check.allTargets": {
|
||
"description": "Check all targets and tests (`--all-targets`). Defaults to\n`#rust-analyzer.cargo.allTargets#`.\n",
|
||
"pluginDefault": null,
|
||
"type": {
|
||
"kind": "boolean"
|
||
}
|
||
},
|
||
"rust-analyzer.check.command": {
|
||
"description": "Cargo command to use for `cargo check`.\n",
|
||
"pluginDefault": "check",
|
||
"type": {
|
||
"kind": "string"
|
||
}
|
||
},
|
||
"rust-analyzer.check.extraArgs": {
|
||
"description": "Extra arguments for `cargo check`.\n",
|
||
"pluginDefault": [],
|
||
"type": {
|
||
"item": {
|
||
"kind": "string"
|
||
},
|
||
"kind": "list"
|
||
}
|
||
},
|
||
"rust-analyzer.check.extraEnv": {
|
||
"description": "Extra environment variables that will be set when running `cargo check`.\nExtends `#rust-analyzer.cargo.extraEnv#`.\n",
|
||
"pluginDefault": {},
|
||
"type": {
|
||
"kind": "object"
|
||
}
|
||
},
|
||
"rust-analyzer.check.features": {
|
||
"description": "List of features to activate. Defaults to\n`#rust-analyzer.cargo.features#`.\n\nSet to `\"all\"` to pass `--all-features` to Cargo.\n\nValues:\n- all: Pass `--all-features` to cargo\n",
|
||
"pluginDefault": null,
|
||
"type": {
|
||
"kind": "oneOf",
|
||
"subTypes": [
|
||
{
|
||
"kind": "enum",
|
||
"values": ["all"]
|
||
},
|
||
{
|
||
"item": {
|
||
"kind": "string"
|
||
},
|
||
"kind": "list"
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"rust-analyzer.check.ignore": {
|
||
"description": "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`,...\n",
|
||
"pluginDefault": [],
|
||
"type": {
|
||
"item": {
|
||
"kind": "string"
|
||
},
|
||
"kind": "list"
|
||
}
|
||
},
|
||
"rust-analyzer.check.invocationStrategy": {
|
||
"description": "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.\n\nValues:\n- per_workspace: The command will be executed for each Rust workspace with the workspace as the working directory.\n- once: The command will be executed once with the opened project as the working directory.\n",
|
||
"pluginDefault": "per_workspace",
|
||
"type": {
|
||
"kind": "enum",
|
||
"values": ["per_workspace", "once"]
|
||
}
|
||
},
|
||
"rust-analyzer.check.noDefaultFeatures": {
|
||
"description": "Whether to pass `--no-default-features` to Cargo. Defaults to\n`#rust-analyzer.cargo.noDefaultFeatures#`.\n",
|
||
"pluginDefault": null,
|
||
"type": {
|
||
"kind": "boolean"
|
||
}
|
||
},
|
||
"rust-analyzer.check.overrideCommand": {
|
||
"description": "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\nIf `$saved_file` is part of the command, rust-analyzer will pass\nthe absolute path of the saved file to the provided command. This is\nintended to be used with non-Cargo build systems.\nNote that `$saved_file` is experimental and may be removed in the future.\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.\n",
|
||
"pluginDefault": null,
|
||
"type": {
|
||
"item": {
|
||
"kind": "string"
|
||
},
|
||
"kind": "list"
|
||
}
|
||
},
|
||
"rust-analyzer.check.targets": {
|
||
"description": "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\"`.\n",
|
||
"pluginDefault": null,
|
||
"type": {
|
||
"kind": "oneOf",
|
||
"subTypes": [
|
||
{
|
||
"kind": "string"
|
||
},
|
||
{
|
||
"item": {
|
||
"kind": "string"
|
||
},
|
||
"kind": "list"
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"rust-analyzer.check.workspace": {
|
||
"description": "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.\n",
|
||
"pluginDefault": true,
|
||
"type": {
|
||
"kind": "boolean"
|
||
}
|
||
},
|
||
"rust-analyzer.checkOnSave": {
|
||
"description": "Run the check command for diagnostics on save.\n",
|
||
"pluginDefault": true,
|
||
"type": {
|
||
"kind": "boolean"
|
||
}
|
||
},
|
||
"rust-analyzer.completion.addSemicolonToUnit": {
|
||
"description": "Automatically add a semicolon when completing unit-returning functions.\n\nIn `match` arms it completes a comma instead.\n",
|
||
"pluginDefault": true,
|
||
"type": {
|
||
"kind": "boolean"
|
||
}
|
||
},
|
||
"rust-analyzer.completion.autoAwait.enable": {
|
||
"description": "Show method calls and field accesses completions with `await` prefixed to them when\ncompleting on a future.\n",
|
||
"pluginDefault": true,
|
||
"type": {
|
||
"kind": "boolean"
|
||
}
|
||
},
|
||
"rust-analyzer.completion.autoIter.enable": {
|
||
"description": "Show method call completions with `iter()` or `into_iter()` prefixed to them when\ncompleting on a type that has them.\n",
|
||
"pluginDefault": true,
|
||
"type": {
|
||
"kind": "boolean"
|
||
}
|
||
},
|
||
"rust-analyzer.completion.autoimport.enable": {
|
||
"description": "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.\n",
|
||
"pluginDefault": true,
|
||
"type": {
|
||
"kind": "boolean"
|
||
}
|
||
},
|
||
"rust-analyzer.completion.autoimport.exclude": {
|
||
"description": "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#`.\n",
|
||
"pluginDefault": [
|
||
{
|
||
"path": "core::borrow::Borrow",
|
||
"type": "methods"
|
||
},
|
||
{
|
||
"path": "core::borrow::BorrowMut",
|
||
"type": "methods"
|
||
}
|
||
],
|
||
"type": {
|
||
"item": {
|
||
"kind": "oneOf",
|
||
"subTypes": [
|
||
{
|
||
"kind": "string"
|
||
},
|
||
{
|
||
"kind": "submodule",
|
||
"options": {
|
||
"path": {
|
||
"kind": "string"
|
||
},
|
||
"type": {
|
||
"kind": "enum",
|
||
"values": ["always", "methods"]
|
||
}
|
||
}
|
||
}
|
||
]
|
||
},
|
||
"kind": "list"
|
||
}
|
||
},
|
||
"rust-analyzer.completion.autoself.enable": {
|
||
"description": "Show method calls and field access completions with `self` prefixed to them when\ninside a method.\n",
|
||
"pluginDefault": true,
|
||
"type": {
|
||
"kind": "boolean"
|
||
}
|
||
},
|
||
"rust-analyzer.completion.callable.snippets": {
|
||
"description": "Add parenthesis and argument snippets when completing function.\n\nValues:\n- fill_arguments: Add call parentheses and pre-fill arguments.\n- add_parentheses: Add call parentheses.\n- none: Do no snippet completions for callables.\n",
|
||
"pluginDefault": "fill_arguments",
|
||
"type": {
|
||
"kind": "enum",
|
||
"values": ["fill_arguments", "add_parentheses", "none"]
|
||
}
|
||
},
|
||
"rust-analyzer.completion.excludeTraits": {
|
||
"description": "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.\n",
|
||
"pluginDefault": [],
|
||
"type": {
|
||
"item": {
|
||
"kind": "string"
|
||
},
|
||
"kind": "list"
|
||
}
|
||
},
|
||
"rust-analyzer.completion.fullFunctionSignatures.enable": {
|
||
"description": "Show full function / method signatures in completion docs.\n",
|
||
"pluginDefault": false,
|
||
"type": {
|
||
"kind": "boolean"
|
||
}
|
||
},
|
||
"rust-analyzer.completion.hideDeprecated": {
|
||
"description": "Omit deprecated items from completions. By default they are marked as deprecated but not\nhidden.\n",
|
||
"pluginDefault": false,
|
||
"type": {
|
||
"kind": "boolean"
|
||
}
|
||
},
|
||
"rust-analyzer.completion.limit": {
|
||
"description": "Maximum number of completions to return. If `None`, the limit is infinite.\n",
|
||
"pluginDefault": null,
|
||
"type": {
|
||
"kind": "integer",
|
||
"maximum": null,
|
||
"minimum": 0
|
||
}
|
||
},
|
||
"rust-analyzer.completion.postfix.enable": {
|
||
"description": "Show postfix snippets like `dbg`, `if`, `not`, etc.\n",
|
||
"pluginDefault": true,
|
||
"type": {
|
||
"kind": "boolean"
|
||
}
|
||
},
|
||
"rust-analyzer.completion.privateEditable.enable": {
|
||
"description": "Show completions of private items and fields that are defined in the current workspace\neven if they are not visible at the current position.\n",
|
||
"pluginDefault": false,
|
||
"type": {
|
||
"kind": "boolean"
|
||
}
|
||
},
|
||
"rust-analyzer.completion.snippets.custom": {
|
||
"description": "Custom completion snippets.\n",
|
||
"pluginDefault": {
|
||
"Arc::new": {
|
||
"body": "Arc::new(${receiver})",
|
||
"description": "Put the expression into an `Arc`",
|
||
"postfix": "arc",
|
||
"requires": "std::sync::Arc",
|
||
"scope": "expr"
|
||
},
|
||
"Box::pin": {
|
||
"body": "Box::pin(${receiver})",
|
||
"description": "Put the expression into a pinned `Box`",
|
||
"postfix": "pinbox",
|
||
"requires": "std::boxed::Box",
|
||
"scope": "expr"
|
||
},
|
||
"Err": {
|
||
"body": "Err(${receiver})",
|
||
"description": "Wrap the expression in a `Result::Err`",
|
||
"postfix": "err",
|
||
"scope": "expr"
|
||
},
|
||
"Ok": {
|
||
"body": "Ok(${receiver})",
|
||
"description": "Wrap the expression in a `Result::Ok`",
|
||
"postfix": "ok",
|
||
"scope": "expr"
|
||
},
|
||
"Rc::new": {
|
||
"body": "Rc::new(${receiver})",
|
||
"description": "Put the expression into an `Rc`",
|
||
"postfix": "rc",
|
||
"requires": "std::rc::Rc",
|
||
"scope": "expr"
|
||
},
|
||
"Some": {
|
||
"body": "Some(${receiver})",
|
||
"description": "Wrap the expression in an `Option::Some`",
|
||
"postfix": "some",
|
||
"scope": "expr"
|
||
}
|
||
},
|
||
"type": {
|
||
"kind": "object"
|
||
}
|
||
},
|
||
"rust-analyzer.completion.termSearch.enable": {
|
||
"description": "Enable term search based snippets like `Some(foo.bar().baz())`.\n",
|
||
"pluginDefault": false,
|
||
"type": {
|
||
"kind": "boolean"
|
||
}
|
||
},
|
||
"rust-analyzer.completion.termSearch.fuel": {
|
||
"description": "Term search fuel in \"units of work\" for autocompletion (Defaults to 1000).\n",
|
||
"pluginDefault": 1000,
|
||
"type": {
|
||
"kind": "integer",
|
||
"maximum": null,
|
||
"minimum": 0
|
||
}
|
||
},
|
||
"rust-analyzer.diagnostics.disabled": {
|
||
"description": "List of rust-analyzer diagnostics to disable.\n",
|
||
"pluginDefault": [],
|
||
"type": {
|
||
"item": {
|
||
"kind": "string"
|
||
},
|
||
"kind": "list"
|
||
}
|
||
},
|
||
"rust-analyzer.diagnostics.enable": {
|
||
"description": "Show native rust-analyzer diagnostics.\n",
|
||
"pluginDefault": true,
|
||
"type": {
|
||
"kind": "boolean"
|
||
}
|
||
},
|
||
"rust-analyzer.diagnostics.experimental.enable": {
|
||
"description": "Show experimental rust-analyzer diagnostics that might have more false positives than\nusual.\n",
|
||
"pluginDefault": false,
|
||
"type": {
|
||
"kind": "boolean"
|
||
}
|
||
},
|
||
"rust-analyzer.diagnostics.remapPrefix": {
|
||
"description": "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`.\n",
|
||
"pluginDefault": {},
|
||
"type": {
|
||
"kind": "object"
|
||
}
|
||
},
|
||
"rust-analyzer.diagnostics.styleLints.enable": {
|
||
"description": "Run additional style lints.\n",
|
||
"pluginDefault": false,
|
||
"type": {
|
||
"kind": "boolean"
|
||
}
|
||
},
|
||
"rust-analyzer.diagnostics.warningsAsHint": {
|
||
"description": "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`.\n",
|
||
"pluginDefault": [],
|
||
"type": {
|
||
"item": {
|
||
"kind": "string"
|
||
},
|
||
"kind": "list"
|
||
}
|
||
},
|
||
"rust-analyzer.diagnostics.warningsAsInfo": {
|
||
"description": "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`.\n",
|
||
"pluginDefault": [],
|
||
"type": {
|
||
"item": {
|
||
"kind": "string"
|
||
},
|
||
"kind": "list"
|
||
}
|
||
},
|
||
"rust-analyzer.document.symbol.search.excludeLocals": {
|
||
"description": "Exclude all locals from document symbol search.\n",
|
||
"pluginDefault": true,
|
||
"type": {
|
||
"kind": "boolean"
|
||
}
|
||
},
|
||
"rust-analyzer.files.exclude": {
|
||
"description": "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`.\n",
|
||
"pluginDefault": [],
|
||
"type": {
|
||
"item": {
|
||
"kind": "string"
|
||
},
|
||
"kind": "list"
|
||
}
|
||
},
|
||
"rust-analyzer.files.watcher": {
|
||
"description": "Controls file watching implementation.\n\nValues:\n- client: Use the client (editor) to watch files for changes\n- server: Use server-side file watching\n",
|
||
"pluginDefault": "client",
|
||
"type": {
|
||
"kind": "enum",
|
||
"values": ["client", "server"]
|
||
}
|
||
},
|
||
"rust-analyzer.highlightRelated.branchExitPoints.enable": {
|
||
"description": "Highlight related return values while the cursor is on any `match`, `if`, or match arm\narrow (`=>`).\n",
|
||
"pluginDefault": true,
|
||
"type": {
|
||
"kind": "boolean"
|
||
}
|
||
},
|
||
"rust-analyzer.highlightRelated.breakPoints.enable": {
|
||
"description": "Highlight related references while the cursor is on `break`, `loop`, `while`, or `for`\nkeywords.\n",
|
||
"pluginDefault": true,
|
||
"type": {
|
||
"kind": "boolean"
|
||
}
|
||
},
|
||
"rust-analyzer.highlightRelated.closureCaptures.enable": {
|
||
"description": "Highlight all captures of a closure while the cursor is on the `|` or move keyword of a closure.\n",
|
||
"pluginDefault": true,
|
||
"type": {
|
||
"kind": "boolean"
|
||
}
|
||
},
|
||
"rust-analyzer.highlightRelated.exitPoints.enable": {
|
||
"description": "Highlight all exit points while the cursor is on any `return`, `?`, `fn`, or return type\narrow (`->`).\n",
|
||
"pluginDefault": true,
|
||
"type": {
|
||
"kind": "boolean"
|
||
}
|
||
},
|
||
"rust-analyzer.highlightRelated.references.enable": {
|
||
"description": "Highlight related references while the cursor is on any identifier.\n",
|
||
"pluginDefault": true,
|
||
"type": {
|
||
"kind": "boolean"
|
||
}
|
||
},
|
||
"rust-analyzer.highlightRelated.yieldPoints.enable": {
|
||
"description": "Highlight all break points for a loop or block context while the cursor is on any\n`async` or `await` keywords.\n",
|
||
"pluginDefault": true,
|
||
"type": {
|
||
"kind": "boolean"
|
||
}
|
||
},
|
||
"rust-analyzer.hover.actions.debug.enable": {
|
||
"description": "Show `Debug` action. Only applies when `#rust-analyzer.hover.actions.enable#` is set.\n",
|
||
"pluginDefault": true,
|
||
"type": {
|
||
"kind": "boolean"
|
||
}
|
||
},
|
||
"rust-analyzer.hover.actions.enable": {
|
||
"description": "Show HoverActions in Rust files.\n",
|
||
"pluginDefault": true,
|
||
"type": {
|
||
"kind": "boolean"
|
||
}
|
||
},
|
||
"rust-analyzer.hover.actions.gotoTypeDef.enable": {
|
||
"description": "Show `Go to Type Definition` action. Only applies when\n`#rust-analyzer.hover.actions.enable#` is set.\n",
|
||
"pluginDefault": true,
|
||
"type": {
|
||
"kind": "boolean"
|
||
}
|
||
},
|
||
"rust-analyzer.hover.actions.implementations.enable": {
|
||
"description": "Show `Implementations` action. Only applies when `#rust-analyzer.hover.actions.enable#`\nis set.\n",
|
||
"pluginDefault": true,
|
||
"type": {
|
||
"kind": "boolean"
|
||
}
|
||
},
|
||
"rust-analyzer.hover.actions.references.enable": {
|
||
"description": "Show `References` action. Only applies when `#rust-analyzer.hover.actions.enable#` is\nset.\n",
|
||
"pluginDefault": false,
|
||
"type": {
|
||
"kind": "boolean"
|
||
}
|
||
},
|
||
"rust-analyzer.hover.actions.run.enable": {
|
||
"description": "Show `Run` action. Only applies when `#rust-analyzer.hover.actions.enable#` is set.\n",
|
||
"pluginDefault": true,
|
||
"type": {
|
||
"kind": "boolean"
|
||
}
|
||
},
|
||
"rust-analyzer.hover.actions.updateTest.enable": {
|
||
"description": "Show `Update Test` action. Only applies when `#rust-analyzer.hover.actions.enable#` and\n`#rust-analyzer.hover.actions.run.enable#` are set.\n",
|
||
"pluginDefault": true,
|
||
"type": {
|
||
"kind": "boolean"
|
||
}
|
||
},
|
||
"rust-analyzer.hover.documentation.enable": {
|
||
"description": "Show documentation on hover.\n",
|
||
"pluginDefault": true,
|
||
"type": {
|
||
"kind": "boolean"
|
||
}
|
||
},
|
||
"rust-analyzer.hover.documentation.keywords.enable": {
|
||
"description": "Show keyword hover popups. Only applies when\n`#rust-analyzer.hover.documentation.enable#` is set.\n",
|
||
"pluginDefault": true,
|
||
"type": {
|
||
"kind": "boolean"
|
||
}
|
||
},
|
||
"rust-analyzer.hover.dropGlue.enable": {
|
||
"description": "Show drop glue information on hover.\n",
|
||
"pluginDefault": true,
|
||
"type": {
|
||
"kind": "boolean"
|
||
}
|
||
},
|
||
"rust-analyzer.hover.links.enable": {
|
||
"description": "Use markdown syntax for links on hover.\n",
|
||
"pluginDefault": true,
|
||
"type": {
|
||
"kind": "boolean"
|
||
}
|
||
},
|
||
"rust-analyzer.hover.maxSubstitutionLength": {
|
||
"description": "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.\n",
|
||
"pluginDefault": 20,
|
||
"type": {
|
||
"kind": "oneOf",
|
||
"subTypes": [
|
||
{
|
||
"kind": "enum",
|
||
"values": ["hide"]
|
||
},
|
||
{
|
||
"kind": "integer",
|
||
"maximum": null,
|
||
"minimum": null
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"rust-analyzer.hover.memoryLayout.alignment": {
|
||
"description": "How to render the align information in a memory layout hover.\n\nValues:\n- both: Render as 12 (0xC)\n- decimal: Render as 12\n- hexadecimal: Render as 0xC\n",
|
||
"pluginDefault": "hexadecimal",
|
||
"type": {
|
||
"kind": "oneOf",
|
||
"subTypes": [
|
||
{
|
||
"kind": "enum",
|
||
"values": ["both", "decimal", "hexadecimal"]
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"rust-analyzer.hover.memoryLayout.enable": {
|
||
"description": "Show memory layout data on hover.\n",
|
||
"pluginDefault": true,
|
||
"type": {
|
||
"kind": "boolean"
|
||
}
|
||
},
|
||
"rust-analyzer.hover.memoryLayout.niches": {
|
||
"description": "How to render the niche information in a memory layout hover.\n",
|
||
"pluginDefault": false,
|
||
"type": {
|
||
"kind": "boolean"
|
||
}
|
||
},
|
||
"rust-analyzer.hover.memoryLayout.offset": {
|
||
"description": "How to render the offset information in a memory layout hover.\n\nValues:\n- both: Render as 12 (0xC)\n- decimal: Render as 12\n- hexadecimal: Render as 0xC\n",
|
||
"pluginDefault": "hexadecimal",
|
||
"type": {
|
||
"kind": "oneOf",
|
||
"subTypes": [
|
||
{
|
||
"kind": "enum",
|
||
"values": ["both", "decimal", "hexadecimal"]
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"rust-analyzer.hover.memoryLayout.padding": {
|
||
"description": "How to render the padding information in a memory layout hover.\n\nValues:\n- both: Render as 12 (0xC)\n- decimal: Render as 12\n- hexadecimal: Render as 0xC\n",
|
||
"pluginDefault": null,
|
||
"type": {
|
||
"kind": "oneOf",
|
||
"subTypes": [
|
||
{
|
||
"kind": "enum",
|
||
"values": ["both", "decimal", "hexadecimal"]
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"rust-analyzer.hover.memoryLayout.size": {
|
||
"description": "How to render the size information in a memory layout hover.\n\nValues:\n- both: Render as 12 (0xC)\n- decimal: Render as 12\n- hexadecimal: Render as 0xC\n",
|
||
"pluginDefault": "both",
|
||
"type": {
|
||
"kind": "oneOf",
|
||
"subTypes": [
|
||
{
|
||
"kind": "enum",
|
||
"values": ["both", "decimal", "hexadecimal"]
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"rust-analyzer.hover.show.enumVariants": {
|
||
"description": "How many variants of an enum to display when hovering on. Show none if empty.\n",
|
||
"pluginDefault": 5,
|
||
"type": {
|
||
"kind": "integer",
|
||
"maximum": null,
|
||
"minimum": 0
|
||
}
|
||
},
|
||
"rust-analyzer.hover.show.fields": {
|
||
"description": "How many fields of a struct, variant or union to display when hovering on. Show none if\nempty.\n",
|
||
"pluginDefault": 5,
|
||
"type": {
|
||
"kind": "integer",
|
||
"maximum": null,
|
||
"minimum": 0
|
||
}
|
||
},
|
||
"rust-analyzer.hover.show.traitAssocItems": {
|
||
"description": "How many associated items of a trait to display when hovering a trait.\n",
|
||
"pluginDefault": null,
|
||
"type": {
|
||
"kind": "integer",
|
||
"maximum": null,
|
||
"minimum": 0
|
||
}
|
||
},
|
||
"rust-analyzer.imports.granularity.enforce": {
|
||
"description": "Enforce the import granularity setting for all files. If set to false rust-analyzer will\ntry to keep import styles consistent per file.\n",
|
||
"pluginDefault": false,
|
||
"type": {
|
||
"kind": "boolean"
|
||
}
|
||
},
|
||
"rust-analyzer.imports.granularity.group": {
|
||
"description": "How imports should be grouped into use statements.\n\nValues:\n- crate: Merge imports from the same crate into a single use statement. Conversely, imports from different crates are split into separate statements.\n- module: Merge imports from the same module into a single use statement. Conversely, imports from different modules are split into separate statements.\n- item: Flatten imports so that each has its own use statement.\n- one: Merge all imports into a single use statement as long as they have the same visibility and attributes.\n",
|
||
"pluginDefault": "crate",
|
||
"type": {
|
||
"kind": "oneOf",
|
||
"subTypes": [
|
||
{
|
||
"kind": "enum",
|
||
"values": ["crate", "module", "item", "one"]
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"rust-analyzer.imports.group.enable": {
|
||
"description": "Group inserted imports by the [following\norder](https://rust-analyzer.github.io/book/features.html#auto-import). Groups are\nseparated by newlines.\n",
|
||
"pluginDefault": true,
|
||
"type": {
|
||
"kind": "boolean"
|
||
}
|
||
},
|
||
"rust-analyzer.imports.merge.glob": {
|
||
"description": "Allow import insertion to merge new imports into single path glob imports like `use\nstd::fmt::*;`.\n",
|
||
"pluginDefault": true,
|
||
"type": {
|
||
"kind": "boolean"
|
||
}
|
||
},
|
||
"rust-analyzer.imports.preferNoStd": {
|
||
"description": "Prefer to unconditionally use imports of the core and alloc crate, over the std crate.\n",
|
||
"pluginDefault": false,
|
||
"type": {
|
||
"kind": "boolean"
|
||
}
|
||
},
|
||
"rust-analyzer.imports.preferPrelude": {
|
||
"description": "Prefer import paths containing a `prelude` module.\n",
|
||
"pluginDefault": false,
|
||
"type": {
|
||
"kind": "boolean"
|
||
}
|
||
},
|
||
"rust-analyzer.imports.prefix": {
|
||
"description": "The path structure for newly inserted paths to use.\n\nValues:\n- plain: Insert import paths relative to the current module, using up to one `super` prefix if the parent module contains the requested item.\n- self: Insert import paths relative to the current module, using up to one `super` prefix if the parent module contains the requested item. Prefixes `self` in front of the path if it starts with a module.\n- crate: Force import paths to be absolute by always starting them with `crate` or the extern crate name they come from.\n",
|
||
"pluginDefault": "crate",
|
||
"type": {
|
||
"kind": "enum",
|
||
"values": ["plain", "self", "crate"]
|
||
}
|
||
},
|
||
"rust-analyzer.imports.prefixExternPrelude": {
|
||
"description": "Prefix external (including std, core) crate imports with `::`.\n\nE.g. `use ::std::io::Read;`.\n",
|
||
"pluginDefault": false,
|
||
"type": {
|
||
"kind": "boolean"
|
||
}
|
||
},
|
||
"rust-analyzer.inlayHints.bindingModeHints.enable": {
|
||
"description": "Show inlay type hints for binding modes.\n",
|
||
"pluginDefault": false,
|
||
"type": {
|
||
"kind": "boolean"
|
||
}
|
||
},
|
||
"rust-analyzer.inlayHints.chainingHints.enable": {
|
||
"description": "Show inlay type hints for method chains.\n",
|
||
"pluginDefault": true,
|
||
"type": {
|
||
"kind": "boolean"
|
||
}
|
||
},
|
||
"rust-analyzer.inlayHints.closingBraceHints.enable": {
|
||
"description": "Show inlay hints after a closing `}` to indicate what item it belongs to.\n",
|
||
"pluginDefault": true,
|
||
"type": {
|
||
"kind": "boolean"
|
||
}
|
||
},
|
||
"rust-analyzer.inlayHints.closingBraceHints.minLines": {
|
||
"description": "Minimum number of lines required before the `}` until the hint is shown (set to 0 or 1\nto always show them).\n",
|
||
"pluginDefault": 25,
|
||
"type": {
|
||
"kind": "integer",
|
||
"maximum": null,
|
||
"minimum": 0
|
||
}
|
||
},
|
||
"rust-analyzer.inlayHints.closureCaptureHints.enable": {
|
||
"description": "Show inlay hints for closure captures.\n",
|
||
"pluginDefault": false,
|
||
"type": {
|
||
"kind": "boolean"
|
||
}
|
||
},
|
||
"rust-analyzer.inlayHints.closureReturnTypeHints.enable": {
|
||
"description": "Show inlay type hints for return types of closures.\n\nValues:\n- always: Always show type hints for return types of closures.\n- never: Never show type hints for return types of closures.\n- with_block: Only show type hints for return types of closures with blocks.\n",
|
||
"pluginDefault": "never",
|
||
"type": {
|
||
"kind": "enum",
|
||
"values": ["always", "never", "with_block"]
|
||
}
|
||
},
|
||
"rust-analyzer.inlayHints.closureStyle": {
|
||
"description": "Closure notation in type and chaining inlay hints.\n\nValues:\n- impl_fn: `impl_fn`: `impl FnMut(i32, u64) -> i8`\n- rust_analyzer: `rust_analyzer`: `|i32, u64| -> i8`\n- with_id: `with_id`: `{closure#14352}`, where that id is the unique number of the closure in r-a internals\n- hide: `hide`: Shows `...` for every closure type\n",
|
||
"pluginDefault": "impl_fn",
|
||
"type": {
|
||
"kind": "enum",
|
||
"values": ["impl_fn", "rust_analyzer", "with_id", "hide"]
|
||
}
|
||
},
|
||
"rust-analyzer.inlayHints.discriminantHints.enable": {
|
||
"description": "Show enum variant discriminant hints.\n\nValues:\n- always: Always show all discriminant hints.\n- never: Never show discriminant hints.\n- fieldless: Only show discriminant hints on fieldless enum variants.\n",
|
||
"pluginDefault": "never",
|
||
"type": {
|
||
"kind": "enum",
|
||
"values": ["always", "never", "fieldless"]
|
||
}
|
||
},
|
||
"rust-analyzer.inlayHints.expressionAdjustmentHints.disableReborrows": {
|
||
"description": "Disable reborrows in expression adjustments inlay hints.\n\nReborrows are a pair of a builtin deref then borrow, i.e. `&*`. They are inserted by the compiler but are mostly useless to the programmer.\n\nNote: if the deref is not builtin (an overloaded deref), or the borrow is `&raw const`/`&raw mut`, they are not removed.\n",
|
||
"pluginDefault": true,
|
||
"type": {
|
||
"kind": "boolean"
|
||
}
|
||
},
|
||
"rust-analyzer.inlayHints.expressionAdjustmentHints.enable": {
|
||
"description": "Show inlay hints for type adjustments.\n\nValues:\n- always: Always show all adjustment hints.\n- never: Never show adjustment hints.\n- reborrow: Only show auto borrow and dereference adjustment hints.\n",
|
||
"pluginDefault": "never",
|
||
"type": {
|
||
"kind": "enum",
|
||
"values": ["always", "never", "reborrow"]
|
||
}
|
||
},
|
||
"rust-analyzer.inlayHints.expressionAdjustmentHints.hideOutsideUnsafe": {
|
||
"description": "Hide inlay hints for type adjustments outside of `unsafe` blocks.\n",
|
||
"pluginDefault": false,
|
||
"type": {
|
||
"kind": "boolean"
|
||
}
|
||
},
|
||
"rust-analyzer.inlayHints.expressionAdjustmentHints.mode": {
|
||
"description": "Show inlay hints as postfix ops (`.*` instead of `*`, etc).\n\nValues:\n- prefix: Always show adjustment hints as prefix (`*expr`).\n- postfix: Always show adjustment hints as postfix (`expr.*`).\n- prefer_prefix: Show prefix or postfix depending on which uses less parenthesis, preferring prefix.\n- prefer_postfix: Show prefix or postfix depending on which uses less parenthesis, preferring postfix.\n",
|
||
"pluginDefault": "prefix",
|
||
"type": {
|
||
"kind": "enum",
|
||
"values": ["prefix", "postfix", "prefer_prefix", "prefer_postfix"]
|
||
}
|
||
},
|
||
"rust-analyzer.inlayHints.genericParameterHints.const.enable": {
|
||
"description": "Show const generic parameter name inlay hints.\n",
|
||
"pluginDefault": true,
|
||
"type": {
|
||
"kind": "boolean"
|
||
}
|
||
},
|
||
"rust-analyzer.inlayHints.genericParameterHints.lifetime.enable": {
|
||
"description": "Show generic lifetime parameter name inlay hints.\n",
|
||
"pluginDefault": false,
|
||
"type": {
|
||
"kind": "boolean"
|
||
}
|
||
},
|
||
"rust-analyzer.inlayHints.genericParameterHints.type.enable": {
|
||
"description": "Show generic type parameter name inlay hints.\n",
|
||
"pluginDefault": false,
|
||
"type": {
|
||
"kind": "boolean"
|
||
}
|
||
},
|
||
"rust-analyzer.inlayHints.implicitDrops.enable": {
|
||
"description": "Show implicit drop hints.\n",
|
||
"pluginDefault": false,
|
||
"type": {
|
||
"kind": "boolean"
|
||
}
|
||
},
|
||
"rust-analyzer.inlayHints.implicitSizedBoundHints.enable": {
|
||
"description": "Show inlay hints for the implied type parameter `Sized` bound.\n",
|
||
"pluginDefault": false,
|
||
"type": {
|
||
"kind": "boolean"
|
||
}
|
||
},
|
||
"rust-analyzer.inlayHints.lifetimeElisionHints.enable": {
|
||
"description": "Show inlay type hints for elided lifetimes in function signatures.\n\nValues:\n- always: Always show lifetime elision hints.\n- never: Never show lifetime elision hints.\n- skip_trivial: Only show lifetime elision hints if a return type is involved.\n",
|
||
"pluginDefault": "never",
|
||
"type": {
|
||
"kind": "enum",
|
||
"values": ["always", "never", "skip_trivial"]
|
||
}
|
||
},
|
||
"rust-analyzer.inlayHints.lifetimeElisionHints.useParameterNames": {
|
||
"description": "Prefer using parameter names as the name for elided lifetime hints if possible.\n",
|
||
"pluginDefault": false,
|
||
"type": {
|
||
"kind": "boolean"
|
||
}
|
||
},
|
||
"rust-analyzer.inlayHints.maxLength": {
|
||
"description": "Maximum length for inlay hints. Set to null to have an unlimited length.\n\n**Note:** This is mostly a hint, and we don't guarantee to strictly follow the limit.\n",
|
||
"pluginDefault": 25,
|
||
"type": {
|
||
"kind": "integer",
|
||
"maximum": null,
|
||
"minimum": 0
|
||
}
|
||
},
|
||
"rust-analyzer.inlayHints.parameterHints.enable": {
|
||
"description": "Show function parameter name inlay hints at the call site.\n",
|
||
"pluginDefault": true,
|
||
"type": {
|
||
"kind": "boolean"
|
||
}
|
||
},
|
||
"rust-analyzer.inlayHints.rangeExclusiveHints.enable": {
|
||
"description": "Show exclusive range inlay hints.\n",
|
||
"pluginDefault": false,
|
||
"type": {
|
||
"kind": "boolean"
|
||
}
|
||
},
|
||
"rust-analyzer.inlayHints.reborrowHints.enable": {
|
||
"description": "Show inlay hints for compiler inserted reborrows.\n\nThis setting is deprecated in favor of\n#rust-analyzer.inlayHints.expressionAdjustmentHints.enable#.\n\nValues:\n- always: Always show reborrow hints.\n- never: Never show reborrow hints.\n- mutable: Only show mutable reborrow hints.\n",
|
||
"pluginDefault": "never",
|
||
"type": {
|
||
"kind": "enum",
|
||
"values": ["always", "never", "mutable"]
|
||
}
|
||
},
|
||
"rust-analyzer.inlayHints.renderColons": {
|
||
"description": "Whether to render leading colons for type hints, and trailing colons for parameter hints.\n",
|
||
"pluginDefault": true,
|
||
"type": {
|
||
"kind": "boolean"
|
||
}
|
||
},
|
||
"rust-analyzer.inlayHints.typeHints.enable": {
|
||
"description": "Show inlay type hints for variables.\n",
|
||
"pluginDefault": true,
|
||
"type": {
|
||
"kind": "boolean"
|
||
}
|
||
},
|
||
"rust-analyzer.inlayHints.typeHints.hideClosureInitialization": {
|
||
"description": "Hide inlay type hints for `let` statements that initialize to a closure.\n\nOnly applies to closures with blocks, same as\n`#rust-analyzer.inlayHints.closureReturnTypeHints.enable#`.\n",
|
||
"pluginDefault": false,
|
||
"type": {
|
||
"kind": "boolean"
|
||
}
|
||
},
|
||
"rust-analyzer.inlayHints.typeHints.hideClosureParameter": {
|
||
"description": "Hide inlay parameter type hints for closures.\n",
|
||
"pluginDefault": false,
|
||
"type": {
|
||
"kind": "boolean"
|
||
}
|
||
},
|
||
"rust-analyzer.inlayHints.typeHints.hideNamedConstructor": {
|
||
"description": "Hide inlay type hints for constructors.\n",
|
||
"pluginDefault": false,
|
||
"type": {
|
||
"kind": "boolean"
|
||
}
|
||
},
|
||
"rust-analyzer.interpret.tests": {
|
||
"description": "Enable the experimental support for interpreting tests.\n",
|
||
"pluginDefault": false,
|
||
"type": {
|
||
"kind": "boolean"
|
||
}
|
||
},
|
||
"rust-analyzer.joinLines.joinAssignments": {
|
||
"description": "Join lines merges consecutive declaration and initialization of an assignment.\n",
|
||
"pluginDefault": true,
|
||
"type": {
|
||
"kind": "boolean"
|
||
}
|
||
},
|
||
"rust-analyzer.joinLines.joinElseIf": {
|
||
"description": "Join lines inserts else between consecutive ifs.\n",
|
||
"pluginDefault": true,
|
||
"type": {
|
||
"kind": "boolean"
|
||
}
|
||
},
|
||
"rust-analyzer.joinLines.removeTrailingComma": {
|
||
"description": "Join lines removes trailing commas.\n",
|
||
"pluginDefault": true,
|
||
"type": {
|
||
"kind": "boolean"
|
||
}
|
||
},
|
||
"rust-analyzer.joinLines.unwrapTrivialBlock": {
|
||
"description": "Join lines unwraps trivial blocks.\n",
|
||
"pluginDefault": true,
|
||
"type": {
|
||
"kind": "boolean"
|
||
}
|
||
},
|
||
"rust-analyzer.lens.debug.enable": {
|
||
"description": "Show `Debug` lens. Only applies when `#rust-analyzer.lens.enable#` is set.\n",
|
||
"pluginDefault": true,
|
||
"type": {
|
||
"kind": "boolean"
|
||
}
|
||
},
|
||
"rust-analyzer.lens.enable": {
|
||
"description": "Show CodeLens in Rust files.\n",
|
||
"pluginDefault": true,
|
||
"type": {
|
||
"kind": "boolean"
|
||
}
|
||
},
|
||
"rust-analyzer.lens.implementations.enable": {
|
||
"description": "Show `Implementations` lens. Only applies when `#rust-analyzer.lens.enable#` is set.\n",
|
||
"pluginDefault": true,
|
||
"type": {
|
||
"kind": "boolean"
|
||
}
|
||
},
|
||
"rust-analyzer.lens.location": {
|
||
"description": "Where to render annotations.\n\nValues:\n- above_name: Render annotations above the name of the item.\n- above_whole_item: Render annotations above the whole item, including documentation comments and attributes.\n",
|
||
"pluginDefault": "above_name",
|
||
"type": {
|
||
"kind": "enum",
|
||
"values": ["above_name", "above_whole_item"]
|
||
}
|
||
},
|
||
"rust-analyzer.lens.references.adt.enable": {
|
||
"description": "Show `References` lens for Struct, Enum, and Union. Only applies when\n`#rust-analyzer.lens.enable#` is set.\n",
|
||
"pluginDefault": false,
|
||
"type": {
|
||
"kind": "boolean"
|
||
}
|
||
},
|
||
"rust-analyzer.lens.references.enumVariant.enable": {
|
||
"description": "Show `References` lens for Enum Variants. Only applies when\n`#rust-analyzer.lens.enable#` is set.\n",
|
||
"pluginDefault": false,
|
||
"type": {
|
||
"kind": "boolean"
|
||
}
|
||
},
|
||
"rust-analyzer.lens.references.method.enable": {
|
||
"description": "Show `Method References` lens. Only applies when `#rust-analyzer.lens.enable#` is set.\n",
|
||
"pluginDefault": false,
|
||
"type": {
|
||
"kind": "boolean"
|
||
}
|
||
},
|
||
"rust-analyzer.lens.references.trait.enable": {
|
||
"description": "Show `References` lens for Trait. Only applies when `#rust-analyzer.lens.enable#` is\nset.\n",
|
||
"pluginDefault": false,
|
||
"type": {
|
||
"kind": "boolean"
|
||
}
|
||
},
|
||
"rust-analyzer.lens.run.enable": {
|
||
"description": "Show `Run` lens. Only applies when `#rust-analyzer.lens.enable#` is set.\n",
|
||
"pluginDefault": true,
|
||
"type": {
|
||
"kind": "boolean"
|
||
}
|
||
},
|
||
"rust-analyzer.lens.updateTest.enable": {
|
||
"description": "Show `Update Test` lens. Only applies when `#rust-analyzer.lens.enable#` and\n`#rust-analyzer.lens.run.enable#` are set.\n",
|
||
"pluginDefault": true,
|
||
"type": {
|
||
"kind": "boolean"
|
||
}
|
||
},
|
||
"rust-analyzer.linkedProjects": {
|
||
"description": "Disable project auto-discovery in favor of explicitly specified set of projects.\n\nElements must be paths pointing to `Cargo.toml`, `rust-project.json`, `.rs` files (which\nwill be treated as standalone files) or JSON objects in `rust-project.json` format.\n",
|
||
"pluginDefault": [],
|
||
"type": {
|
||
"item": {
|
||
"kind": "oneOf",
|
||
"subTypes": [
|
||
{
|
||
"kind": "string"
|
||
},
|
||
{
|
||
"kind": "object"
|
||
}
|
||
]
|
||
},
|
||
"kind": "list"
|
||
}
|
||
},
|
||
"rust-analyzer.lru.capacity": {
|
||
"description": "Number of syntax trees rust-analyzer keeps in memory. Defaults to 128.\n",
|
||
"pluginDefault": null,
|
||
"type": {
|
||
"kind": "integer",
|
||
"maximum": 65535,
|
||
"minimum": 0
|
||
}
|
||
},
|
||
"rust-analyzer.lru.query.capacities": {
|
||
"description": "The LRU capacity of the specified queries.\n",
|
||
"pluginDefault": {},
|
||
"type": {
|
||
"kind": "object"
|
||
}
|
||
},
|
||
"rust-analyzer.notifications.cargoTomlNotFound": {
|
||
"description": "Show `can't find Cargo.toml` error message.\n",
|
||
"pluginDefault": true,
|
||
"type": {
|
||
"kind": "boolean"
|
||
}
|
||
},
|
||
"rust-analyzer.numThreads": {
|
||
"description": "The number of worker threads in the main loop. The default `null` means to pick\nautomatically.\n\nValues:\n- physical: Use the number of physical cores\n- logical: Use the number of logical cores\n",
|
||
"pluginDefault": null,
|
||
"type": {
|
||
"kind": "oneOf",
|
||
"subTypes": [
|
||
{
|
||
"kind": "number",
|
||
"maximum": 255,
|
||
"minimum": 0
|
||
},
|
||
{
|
||
"kind": "enum",
|
||
"values": ["physical", "logical"]
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"rust-analyzer.procMacro.attributes.enable": {
|
||
"description": "Expand attribute macros. Requires `#rust-analyzer.procMacro.enable#` to be set.\n",
|
||
"pluginDefault": true,
|
||
"type": {
|
||
"kind": "boolean"
|
||
}
|
||
},
|
||
"rust-analyzer.procMacro.enable": {
|
||
"description": "Enable support for procedural macros, implies `#rust-analyzer.cargo.buildScripts.enable#`.\n",
|
||
"pluginDefault": true,
|
||
"type": {
|
||
"kind": "boolean"
|
||
}
|
||
},
|
||
"rust-analyzer.procMacro.ignored": {
|
||
"description": "These proc-macros will be ignored when trying to expand them.\n\nThis config takes a map of crate names with the exported proc-macro names to ignore as values.\n",
|
||
"pluginDefault": {},
|
||
"type": {
|
||
"kind": "object"
|
||
}
|
||
},
|
||
"rust-analyzer.procMacro.server": {
|
||
"description": "Internal config, path to proc-macro server executable.\n",
|
||
"pluginDefault": null,
|
||
"type": {
|
||
"kind": "string"
|
||
}
|
||
},
|
||
"rust-analyzer.references.excludeImports": {
|
||
"description": "Exclude imports from find-all-references.\n",
|
||
"pluginDefault": false,
|
||
"type": {
|
||
"kind": "boolean"
|
||
}
|
||
},
|
||
"rust-analyzer.references.excludeTests": {
|
||
"description": "Exclude tests from find-all-references and call-hierarchy.\n",
|
||
"pluginDefault": false,
|
||
"type": {
|
||
"kind": "boolean"
|
||
}
|
||
},
|
||
"rust-analyzer.runnables.command": {
|
||
"description": "Command to be executed instead of 'cargo' for runnables.\n",
|
||
"pluginDefault": null,
|
||
"type": {
|
||
"kind": "string"
|
||
}
|
||
},
|
||
"rust-analyzer.runnables.extraArgs": {
|
||
"description": "Additional arguments to be passed to cargo for runnables such as\ntests or binaries. For example, it may be `--release`.\n",
|
||
"pluginDefault": [],
|
||
"type": {
|
||
"item": {
|
||
"kind": "string"
|
||
},
|
||
"kind": "list"
|
||
}
|
||
},
|
||
"rust-analyzer.runnables.extraTestBinaryArgs": {
|
||
"description": "Additional arguments to be passed through Cargo to launched tests, benchmarks, or\ndoc-tests.\n\nUnless the launched target uses a\n[custom test harness](https://doc.rust-lang.org/cargo/reference/cargo-targets.html#the-harness-field),\nthey will end up being interpreted as options to\n[`rustc`’s built-in test harness (“libtest”)](https://doc.rust-lang.org/rustc/tests/index.html#cli-arguments).\n",
|
||
"pluginDefault": ["--nocapture"],
|
||
"type": {
|
||
"item": {
|
||
"kind": "string"
|
||
},
|
||
"kind": "list"
|
||
}
|
||
},
|
||
"rust-analyzer.rustc.source": {
|
||
"description": "Path to the Cargo.toml of the rust compiler workspace, for usage in rustc_private\nprojects, or \"discover\" to try to automatically find it if the `rustc-dev` component\nis installed.\n\nAny project which uses rust-analyzer with the rustcPrivate\ncrates must set `[package.metadata.rust-analyzer] rustc_private=true` to use it.\n\nThis option does not take effect until rust-analyzer is restarted.\n",
|
||
"pluginDefault": null,
|
||
"type": {
|
||
"kind": "string"
|
||
}
|
||
},
|
||
"rust-analyzer.rustfmt.extraArgs": {
|
||
"description": "Additional arguments to `rustfmt`.\n",
|
||
"pluginDefault": [],
|
||
"type": {
|
||
"item": {
|
||
"kind": "string"
|
||
},
|
||
"kind": "list"
|
||
}
|
||
},
|
||
"rust-analyzer.rustfmt.overrideCommand": {
|
||
"description": "Advanced option, fully override the command rust-analyzer uses for\nformatting. This should be the equivalent of `rustfmt` here, and\nnot that of `cargo fmt`. The file contents will be passed on the\nstandard input and the formatted result will be read from the\nstandard output.\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.\n",
|
||
"pluginDefault": null,
|
||
"type": {
|
||
"item": {
|
||
"kind": "string"
|
||
},
|
||
"kind": "list"
|
||
}
|
||
},
|
||
"rust-analyzer.rustfmt.rangeFormatting.enable": {
|
||
"description": "Enables the use of rustfmt's unstable range formatting command for the\n`textDocument/rangeFormatting` request. The rustfmt option is unstable and only\navailable on a nightly build.\n",
|
||
"pluginDefault": false,
|
||
"type": {
|
||
"kind": "boolean"
|
||
}
|
||
},
|
||
"rust-analyzer.semanticHighlighting.comments.enable": {
|
||
"description": "Use semantic tokens for comments.\n\nIn some editors (e.g. vscode) semantic tokens override other highlighting grammars.\nBy disabling semantic tokens for comments, other grammars can be used to highlight\ntheir contents.\n",
|
||
"pluginDefault": true,
|
||
"type": {
|
||
"kind": "boolean"
|
||
}
|
||
},
|
||
"rust-analyzer.semanticHighlighting.doc.comment.inject.enable": {
|
||
"description": "Inject additional highlighting into doc comments.\n\nWhen enabled, rust-analyzer will highlight rust source in doc comments as well as intra\ndoc links.\n",
|
||
"pluginDefault": true,
|
||
"type": {
|
||
"kind": "boolean"
|
||
}
|
||
},
|
||
"rust-analyzer.semanticHighlighting.nonStandardTokens": {
|
||
"description": "Emit non-standard tokens and modifiers\n\nWhen enabled, rust-analyzer will emit tokens and modifiers that are not part of the\nstandard set of semantic tokens.\n",
|
||
"pluginDefault": true,
|
||
"type": {
|
||
"kind": "boolean"
|
||
}
|
||
},
|
||
"rust-analyzer.semanticHighlighting.operator.enable": {
|
||
"description": "Use semantic tokens for operators.\n\nWhen disabled, rust-analyzer will emit semantic tokens only for operator tokens when\nthey are tagged with modifiers.\n",
|
||
"pluginDefault": true,
|
||
"type": {
|
||
"kind": "boolean"
|
||
}
|
||
},
|
||
"rust-analyzer.semanticHighlighting.operator.specialization.enable": {
|
||
"description": "Use specialized semantic tokens for operators.\n\nWhen enabled, rust-analyzer will emit special token types for operator tokens instead\nof the generic `operator` token type.\n",
|
||
"pluginDefault": false,
|
||
"type": {
|
||
"kind": "boolean"
|
||
}
|
||
},
|
||
"rust-analyzer.semanticHighlighting.punctuation.enable": {
|
||
"description": "Use semantic tokens for punctuation.\n\nWhen disabled, rust-analyzer will emit semantic tokens only for punctuation tokens when\nthey are tagged with modifiers or have a special role.\n",
|
||
"pluginDefault": false,
|
||
"type": {
|
||
"kind": "boolean"
|
||
}
|
||
},
|
||
"rust-analyzer.semanticHighlighting.punctuation.separate.macro.bang": {
|
||
"description": "When enabled, rust-analyzer will emit a punctuation semantic token for the `!` of macro\ncalls.\n",
|
||
"pluginDefault": false,
|
||
"type": {
|
||
"kind": "boolean"
|
||
}
|
||
},
|
||
"rust-analyzer.semanticHighlighting.punctuation.specialization.enable": {
|
||
"description": "Use specialized semantic tokens for punctuation.\n\nWhen enabled, rust-analyzer will emit special token types for punctuation tokens instead\nof the generic `punctuation` token type.\n",
|
||
"pluginDefault": false,
|
||
"type": {
|
||
"kind": "boolean"
|
||
}
|
||
},
|
||
"rust-analyzer.semanticHighlighting.strings.enable": {
|
||
"description": "Use semantic tokens for strings.\n\nIn some editors (e.g. vscode) semantic tokens override other highlighting grammars.\nBy disabling semantic tokens for strings, other grammars can be used to highlight\ntheir contents.\n",
|
||
"pluginDefault": true,
|
||
"type": {
|
||
"kind": "boolean"
|
||
}
|
||
},
|
||
"rust-analyzer.signatureInfo.detail": {
|
||
"description": "Show full signature of the callable. Only shows parameters if disabled.\n\nValues:\n- full: Show the entire signature.\n- parameters: Show only the parameters.\n",
|
||
"pluginDefault": "full",
|
||
"type": {
|
||
"kind": "enum",
|
||
"values": ["full", "parameters"]
|
||
}
|
||
},
|
||
"rust-analyzer.signatureInfo.documentation.enable": {
|
||
"description": "Show documentation.\n",
|
||
"pluginDefault": true,
|
||
"type": {
|
||
"kind": "boolean"
|
||
}
|
||
},
|
||
"rust-analyzer.typing.triggerChars": {
|
||
"description": "Specify the characters allowed to invoke special on typing triggers.\n\n- typing `=` after `let` tries to smartly add `;` if `=` is followed by an existing\n expression\n- typing `=` between two expressions adds `;` when in statement position\n- typing `=` to turn an assignment into an equality comparison removes `;` when in\n expression position\n- typing `.` in a chain method call auto-indents\n- typing `{` or `(` in front of an expression inserts a closing `}` or `)` after the\n expression\n- typing `{` in a use item adds a closing `}` in the right place\n- typing `>` to complete a return type `->` will insert a whitespace after it\n- typing `<` in a path or type position inserts a closing `>` after the path or type.\n",
|
||
"pluginDefault": "=.",
|
||
"type": {
|
||
"kind": "string"
|
||
}
|
||
},
|
||
"rust-analyzer.vfs.extraIncludes": {
|
||
"description": "Additional paths to include in the VFS. Generally for code that is\ngenerated or otherwise managed by a build system outside of Cargo,\nthough Cargo might be the eventual consumer.\n",
|
||
"pluginDefault": [],
|
||
"type": {
|
||
"item": {
|
||
"kind": "string"
|
||
},
|
||
"kind": "list"
|
||
}
|
||
},
|
||
"rust-analyzer.workspace.discoverConfig": {
|
||
"description": "Enables automatic discovery of projects using\n\\[`DiscoverWorkspaceConfig::command`\\].\n\n\\[`DiscoverWorkspaceConfig`\\] also requires setting `progress_label` and\n`files_to_watch`. `progress_label` is used for the title in progress\nindicators, whereas `files_to_watch` is used to determine which build\nsystem-specific files should be watched in order to reload\nrust-analyzer.\n\nBelow is an example of a valid configuration:\n\n``` json\n\"rust-analyzer.workspace.discoverConfig\": {\n \"command\": [\n \"rust-project\",\n \"develop-json\"\n ],\n \"progressLabel\": \"rust-analyzer\",\n \"filesToWatch\": [\n \"BUCK\"\n ]\n}\n```\n\n**On `DiscoverWorkspaceConfig::command`**\n\n**Warning**: This format is provisional and subject to change.\n\n\\[`DiscoverWorkspaceConfig::command`\\] *must* return a JSON object\ncorresponding to `DiscoverProjectData::Finished`:\n\n``` norun\n#[derive(Debug, Clone, Deserialize, Serialize)]\n#[serde(tag = \"kind\")]\n#[serde(rename_all = \"snake_case\")]\nenum DiscoverProjectData {\n Finished { buildfile: Utf8PathBuf, project: ProjectJsonData },\n Error { error: String, source: Option<String> },\n Progress { message: String },\n}\n```\n\nAs JSON, `DiscoverProjectData::Finished` is:\n\n``` json\n{\n // the internally-tagged representation of the enum.\n \"kind\": \"finished\",\n // the file used by a non-Cargo build system to define\n // a package or target.\n \"buildfile\": \"rust-analyzer/BUILD\",\n // the contents of a rust-project.json, elided for brevity\n \"project\": {\n \"sysroot\": \"foo\",\n \"crates\": []\n }\n}\n```\n\nIt is encouraged, but not required, to use the other variants on\n`DiscoverProjectData` to provide a more polished end-user experience.\n\n`DiscoverWorkspaceConfig::command` may *optionally* include an `{arg}`,\nwhich will be substituted with the JSON-serialized form of the following\nenum:\n\n``` norun\n#[derive(PartialEq, Clone, Debug, Serialize)]\n#[serde(rename_all = \"camelCase\")]\npub enum DiscoverArgument {\n Path(AbsPathBuf),\n Buildfile(AbsPathBuf),\n}\n```\n\nThe JSON representation of `DiscoverArgument::Path` is:\n\n``` json\n{\n \"path\": \"src/main.rs\"\n}\n```\n\nSimilarly, the JSON representation of `DiscoverArgument::Buildfile` is:\n\n``` json\n{\n \"buildfile\": \"BUILD\"\n}\n```\n\n`DiscoverArgument::Path` is used to find and generate a\n`rust-project.json`, and therefore, a workspace, whereas\n`DiscoverArgument::buildfile` is used to to update an existing\nworkspace. As a reference for implementors, buck2's `rust-project` will\nlikely be useful:\nhttps://github.com/facebook/buck2/tree/main/integrations/rust-project.\n\n",
|
||
"pluginDefault": null,
|
||
"type": {
|
||
"kind": "oneOf",
|
||
"subTypes": [
|
||
{
|
||
"kind": "submodule",
|
||
"options": {
|
||
"command": {
|
||
"item": {
|
||
"kind": "string"
|
||
},
|
||
"kind": "list"
|
||
},
|
||
"filesToWatch": {
|
||
"item": {
|
||
"kind": "string"
|
||
},
|
||
"kind": "list"
|
||
},
|
||
"progressLabel": {
|
||
"kind": "string"
|
||
}
|
||
}
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"rust-analyzer.workspace.symbol.search.excludeImports": {
|
||
"description": "Exclude all imports from workspace symbol search.\n\nIn addition to regular imports (which are always excluded),\nthis option removes public imports (better known as re-exports)\nand removes imports that rename the imported symbol.\n",
|
||
"pluginDefault": false,
|
||
"type": {
|
||
"kind": "boolean"
|
||
}
|
||
},
|
||
"rust-analyzer.workspace.symbol.search.kind": {
|
||
"description": "Workspace symbol search kind.\n\nValues:\n- only_types: Search for types only.\n- all_symbols: Search for all symbols kinds.\n",
|
||
"pluginDefault": "only_types",
|
||
"type": {
|
||
"kind": "enum",
|
||
"values": ["only_types", "all_symbols"]
|
||
}
|
||
},
|
||
"rust-analyzer.workspace.symbol.search.limit": {
|
||
"description": "Limits the number of items returned from a workspace symbol search (Defaults to 128).\nSome clients like vs-code issue new searches on result filtering and don't require all results to be returned in the initial search.\nOther clients requires all results upfront and might require a higher limit.\n",
|
||
"pluginDefault": 128,
|
||
"type": {
|
||
"kind": "integer",
|
||
"maximum": null,
|
||
"minimum": 0
|
||
}
|
||
},
|
||
"rust-analyzer.workspace.symbol.search.scope": {
|
||
"description": "Workspace symbol search scope.\n\nValues:\n- workspace: Search in current workspace only.\n- workspace_and_dependencies: Search in current workspace and dependencies.\n",
|
||
"pluginDefault": "workspace",
|
||
"type": {
|
||
"kind": "enum",
|
||
"values": ["workspace", "workspace_and_dependencies"]
|
||
}
|
||
}
|
||
}
|