Skip to content

Set (configure) preset in custom task? #4303

Closed Answered by gcampbell-msft
KUGA2 asked this question in Q&A
Discussion options

You must be logged in to vote

Understood. I don't believe we have a command visible through the command pallete that would do this.

I attempted with a couple other tasks we have, and I don't believe we have one that would do this. We do have a command cmake.setConfigurePreset that can be called with the VS Code API, for example, through the VSCode API Explorer extension, but I attempted to use it in a tasks.json and it didn't seem to work.

There may be a way if you investigate more on how to execute a vscode command through a tasks.json with arguments, but it seems to pass additional arguments that mess with how our implementation handles it.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@gcampbell-msft
Comment options

Answer selected by KUGA2
@KUGA2
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants