vscode-cmake-tools icon indicating copy to clipboard operation
vscode-cmake-tools copied to clipboard

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

Open qarni opened this issue 1 year ago • 3 comments

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

qarni avatar Jul 23 '24 19:07 qarni

@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?

v-frankwang avatar Jul 26 '24 11:07 v-frankwang

@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.

gcampbell-msft avatar Jul 26 '24 12:07 gcampbell-msft

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

v-frankwang avatar Jul 29 '24 02:07 v-frankwang