diff options
| author | Lukas Wirth <lukastw97@gmail.com> | 2022-10-22 23:02:59 +0200 |
|---|---|---|
| committer | Lukas Wirth <lukastw97@gmail.com> | 2022-10-22 23:33:03 +0200 |
| commit | 0f8904ec9cc0d26fda0164bc4a61f8e8ceb4d4ee (patch) | |
| tree | 53ef05ded9ec757a4aa1f567e0b6f2af016a5e38 /editors/code/package.json | |
| parent | 19efa0b1103287ad521c0036c065ea2ebbe5939d (diff) | |
| download | rust-0f8904ec9cc0d26fda0164bc4a61f8e8ceb4d4ee.tar.gz rust-0f8904ec9cc0d26fda0164bc4a61f8e8ceb4d4ee.zip | |
Implement invocation location config
Diffstat (limited to 'editors/code/package.json')
| -rw-r--r-- | editors/code/package.json | 38 |
1 files changed, 32 insertions, 6 deletions
diff --git a/editors/code/package.json b/editors/code/package.json index 62ac1e60b00..6771cad28a7 100644 --- a/editors/code/package.json +++ b/editors/code/package.json @@ -432,8 +432,21 @@ "default": true, "type": "boolean" }, + "rust-analyzer.cargo.buildScripts.invocationLocation": { + "markdownDescription": "Specifies the working directory for running build scripts.\n- \"workspace\": run build scripts for a workspace in the workspace's root directory.\n This is incompatible with `#rust-analyzer.cargo.buildScripts.invocationStrategy#` set to `once`.\n- \"root\": run build scripts in the project's root directory.\nThis config only has an effect when `#rust-analyzer.cargo.buildScripts.overrideCommand#`\nis set.", + "default": "workspace", + "type": "string", + "enum": [ + "workspace", + "root" + ], + "enumDescriptions": [ + "The command will be executed in the corresponding workspace root.", + "The command will be executed in the project root." + ] + }, "rust-analyzer.cargo.buildScripts.invocationStrategy": { - "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 workspace from the\ncorresponding workspace root.\nIf `once` is set, the command will be executed once in the project root.\nThis config only has an effect when `#rust-analyzer.cargo.buildScripts.overrideCommand#`\nis set.", + "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 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", "enum": [ @@ -441,8 +454,8 @@ "once" ], "enumDescriptions": [ - "The command will be executed for each workspace from the corresponding workspace root.", - "The command will be executed once in the project root." + "The command will be executed for each workspace.", + "The command will be executed once." ] }, "rust-analyzer.cargo.buildScripts.overrideCommand": { @@ -570,8 +583,21 @@ } ] }, + "rust-analyzer.checkOnSave.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", + "enum": [ + "workspace", + "root" + ], + "enumDescriptions": [ + "The command will be executed in the corresponding workspace root.", + "The command will be executed in the project root." + ] + }, "rust-analyzer.checkOnSave.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 from the\ncorresponding workspace root.\nIf `once` is set, the command will be executed once in the project root.\nThis config only has an effect when `#rust-analyzer.cargo.buildScripts.overrideCommand#`\nis set.", + "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", "enum": [ @@ -579,8 +605,8 @@ "once" ], "enumDescriptions": [ - "The command will be executed for each workspace from the corresponding workspace root.", - "The command will be executed once in the project root." + "The command will be executed for each workspace.", + "The command will be executed once." ] }, "rust-analyzer.checkOnSave.noDefaultFeatures": { |
