microsoft / vscode-cpptools

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

Setting default task in "Run and Debug" play button #8928

Open elahehrashedi opened 2 years ago

elahehrashedi commented 2 years ago

We need to make a decision for this scenario:

  1. When playing the "Debug/Run" button:

if the user doesn't want the task to be a default anymore, they have to remove the "isDefault" property from their tasks.json file. The other way to design this is not to set the default and expect the user to run "Tasks: Configure Default Build Task" to set the default manually. The question is: what would be a more simple approach for setting the default?

elahehrashedi commented 2 years ago

I think we should not select the task as "default", it looks like setting is as default is causing some confusion:https://github.com/microsoft/vscode-cpptools/issues/9209

sean-mcmanus commented 2 years ago

I think setting the task as default is good, since the most common case is probably compiling with a single compiler, but maybe instead we could add a command to easily switch the default and/or just add a setting to toggle the behavior.