-
Notifications
You must be signed in to change notification settings - Fork 502
Description
Brief Issue Summary
I would like to configure a task which would depend on building a specific target. It is possible to call a command from a task using "inputs"
, tasks.json
would look something like this:
{
"version": "2.0.0",
"tasks": [
{
"label": "Build Target",
"command": "echo ${input:buildTarget}",
"type": "shell",
"problemMatcher": []
}
],
"inputs": [
{
"id": "buildTarget",
"type": "command",
"command": "cmake.buildWithTarget",
"args": "targetName"
}
]
}
Unfortunately, cmake.buildWithTarget
does not support receiving target as argument, instead it unconditionally prompts user for target selection:
vscode-cmake-tools/src/cmakeProject.ts
Lines 2066 to 2067 in 2878725
async buildWithTarget(): Promise<number> { | |
const target = await this.showTargetSelector(); |
This is not acceptable in my use case, because there is a specific target I want to build and I don't want to bother workspace users with target selection (which would be non-user-friendly and error-prone).
Could you please make cmake.buildWithTarget
accept target as argument?
CMake Tools Diagnostics
No response
Debug Log
No response
Additional Information
No response
Metadata
Metadata
Assignees
Labels
Type
Projects
Status