Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'editors/code/package.json')
| -rw-r--r-- | editors/code/package.json | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/editors/code/package.json b/editors/code/package.json index 5ffce2f553..468368668f 100644 --- a/editors/code/package.json +++ b/editors/code/package.json @@ -556,22 +556,22 @@ "type": "string" } }, - "rust-analyzer.checkOnSave.allTargets": { + "rust-analyzer.checkOnSave": { + "markdownDescription": "Run the check command for diagnostics on save.", + "default": true, + "type": "boolean" + }, + "rust-analyzer.check.allTargets": { "markdownDescription": "Check all targets and tests (`--all-targets`).", "default": true, "type": "boolean" }, - "rust-analyzer.checkOnSave.command": { + "rust-analyzer.check.command": { "markdownDescription": "Cargo command to use for `cargo check`.", "default": "check", "type": "string" }, - "rust-analyzer.checkOnSave.enable": { - "markdownDescription": "Run specified `cargo check` command for diagnostics on save.", - "default": true, - "type": "boolean" - }, - "rust-analyzer.checkOnSave.extraArgs": { + "rust-analyzer.check.extraArgs": { "markdownDescription": "Extra arguments for `cargo check`.", "default": [], "type": "array", @@ -579,12 +579,12 @@ "type": "string" } }, - "rust-analyzer.checkOnSave.extraEnv": { + "rust-analyzer.check.extraEnv": { "markdownDescription": "Extra environment variables that will be set when running `cargo check`.\nExtends `#rust-analyzer.cargo.extraEnv#`.", "default": {}, "type": "object" }, - "rust-analyzer.checkOnSave.features": { + "rust-analyzer.check.features": { "markdownDescription": "List of features to activate. Defaults to\n`#rust-analyzer.cargo.features#`.\n\nSet to `\"all\"` to pass `--all-features` to Cargo.", "default": null, "anyOf": [ @@ -608,7 +608,7 @@ } ] }, - "rust-analyzer.checkOnSave.invocationLocation": { + "rust-analyzer.check.invocationLocation": { "markdownDescription": "Specifies the working directory for running checks.\n- \"workspace\": run checks for workspaces in the corresponding workspaces' root directories.\n This falls back to \"root\" if `#rust-analyzer.cargo.checkOnSave.invocationStrategy#` is set to `once`.\n- \"root\": run checks in the project's root directory.\nThis config only has an effect when `#rust-analyzer.cargo.buildScripts.overrideCommand#`\nis set.", "default": "workspace", "type": "string", @@ -621,7 +621,7 @@ "The command will be executed in the project root." ] }, - "rust-analyzer.checkOnSave.invocationStrategy": { + "rust-analyzer.check.invocationStrategy": { "markdownDescription": "Specifies the invocation strategy to use when running the checkOnSave 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.cargo.buildScripts.overrideCommand#`\nis set.", "default": "per_workspace", "type": "string", @@ -634,7 +634,7 @@ "The command will be executed once." ] }, - "rust-analyzer.checkOnSave.noDefaultFeatures": { + "rust-analyzer.check.noDefaultFeatures": { "markdownDescription": "Whether to pass `--no-default-features` to Cargo. Defaults to\n`#rust-analyzer.cargo.noDefaultFeatures#`.", "default": null, "type": [ @@ -642,7 +642,7 @@ "boolean" ] }, - "rust-analyzer.checkOnSave.overrideCommand": { + "rust-analyzer.check.overrideCommand": { "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\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, this command is invoked for\neach of them, with the working directory being the project root\n(i.e., the folder containing the `Cargo.toml`).\n\nAn example command would be:\n\n```bash\ncargo check --workspace --message-format=json --all-targets\n```\n.", "default": null, "type": [ @@ -653,7 +653,7 @@ "type": "string" } }, - "rust-analyzer.checkOnSave.target": { + "rust-analyzer.check.targets": { "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\"`.", "default": null, "anyOf": [ |