microsoft / vscode-cmake-tools

CMake integration in Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=vector-of-bool.cmake-tools
MIT License
1.48k stars 456 forks source link

Restore the last selected preset after an error in expanding a presets file #3930

Open qarni opened 4 months ago

qarni commented 4 months ago

Brief Issue Summary

If we select a preset and later there are errors in expansion, once the errors are fixed, we should go back to the previously selected preset.

Follow up from #3905

CMake Tools Diagnostics

No response

Debug Log

No response

Additional Information

No response

v-frankwang commented 4 months ago

@qarni Is this problem due to the fact that the cache is generated the first time a preset is selected and is not automatically regenerated after changes are made? Can you give me some suggestions?

gcampbell-msft commented 4 months ago

@v-frankwang This one, since it was internally created, can be ignored until we implement a fix and close the bug, then it can be retested to verify. Essentially, this is an issue where when a problem is introduced into the presets file, and then removed, it should select the last selected preset automatically again.

v-frankwang commented 4 months ago

@gcampbell-msft Okay, I got it. Thank you very much for your reply.