diff options
| author | Lukas Wirth <lukastw97@gmail.com> | 2022-08-27 18:28:09 +0200 |
|---|---|---|
| committer | Lukas Wirth <lukastw97@gmail.com> | 2022-10-19 23:21:29 +0200 |
| commit | 7e2c41dbd68014acbf91c2657a975c5a4b486da9 (patch) | |
| tree | 62f814c69442d2f5a9fe47bf22e818f935958bf5 /editors/code | |
| parent | 40cbeb5b3d1ec37e8857844e43c75b6980f588e3 (diff) | |
| download | rust-7e2c41dbd68014acbf91c2657a975c5a4b486da9.tar.gz rust-7e2c41dbd68014acbf91c2657a975c5a4b486da9.zip | |
Implement invocation strategy config for build scripts
Diffstat (limited to 'editors/code')
| -rw-r--r-- | editors/code/package.json | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/editors/code/package.json b/editors/code/package.json index f1dd3aa79ff..b1b565106a3 100644 --- a/editors/code/package.json +++ b/editors/code/package.json @@ -421,6 +421,21 @@ "default": true, "type": "boolean" }, + "rust-analyzer.cargo.buildScripts.invocationStrategy": { + "markdownDescription": "Specifies the invocation strategy to use when running the build scripts command.\nIf `per_workspace_with_manifest_path` is set, the command will be executed for each\nworkspace, `--manifest-path {workspace-dir}` will be passed to the invoked command and\nthe command will be executed from the project root.\nIf `per_workspace` is set, the command will be executed for each workspace and the\ncommand will be executed from the corresponding workspace root.\nIf `once_in_root` is set, the command will be executed once in the project root.", + "default": "per_workspace", + "type": "string", + "enum": [ + "per_workspace", + "per_workspace_with_manifest_path", + "once_in_root" + ], + "enumDescriptions": [ + "The command will be executed for each workspace, `--manifest-path {workspace-dir}` will be passed to the invoked command and the command will be executed from the project root.", + "The command will be executed for each workspace and the command will be executed from the corresponding workspace root.", + "The command will be executed once in the project root." + ] + }, "rust-analyzer.cargo.buildScripts.overrideCommand": { "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\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\n```\n.", "default": null, |
