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

Set useCMakePresets context after quick start #3853

Closed qarni closed 15 hours ago

qarni commented 5 days ago

Ensure useCMakePresets context is set after making a CMakePreset.json with Quick Start, so the Select Configure Preset and Add Configure Preset options are available in the command pallete.

This works by updating the active project after the new project files are made, which in turn updates the use presets context.

In the future, it would be good to set up a file watcher to call this function to cover other use cases.

Fixes #3734.