microsoft / vscode-cpptools

Official repository for the Microsoft C/C++ extension for VS Code.
Other
5.54k stars 1.56k forks source link

pass optional parameter to C_Cpp.ConfigurationSelect #12993

Open adrianstephens opened 5 days ago

adrianstephens commented 5 days ago

I would like to be able to switch the cpp configuration from within my extension, and I couldn't find an existing way to do that programmatically.

This change just adds an optional string parameter to the existing C_Cpp.ConfigurationSelect command which bypasses the quickpick if defined.

This is sort of a 'better to ask for forgiveness than permission' thing, but with pull requests I can't do any harm!