microsoft / vscode-cmake-tools

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

usepresets context is not set after manually creating a cmakepresets.json #3854

Open qarni opened 5 days ago

qarni commented 5 days ago

Brief Issue Summary

usepresets context is not set after manually creating a cmakepresets.json, so the Select Configure Preset and Add Configure Preset options are not available in the command palette.

Might need to add/update a file watcher to update the active project when changes are made to a cmakepreset.json file. Also maybe for cmakeuesrpresets.json as well.

Related to #3734.

CMake Tools Diagnostics

No response

Debug Log

No response

Additional Information

No response

Yingzi1234 commented 5 days ago

@qarni Thanks for asking the question on Github! Its not a problem, you need to re-open the vscode and re-open this file, then search again and the command will be found. Please feel free if you have any concerns!

qarni commented 4 days ago

Thanks @Yingzi1234. The team would actually like to have this functionality without a reload and I’ll be working on a fix later on. :)