[BUG] STM32Cube CMake Support: Infinite "Select hardware" Popup in VSCode Multi-Root Workspace
- February 26, 2026
- 1 reply
- 182 views
The STM32Cube CMake Support extension blocks the VSCode UI when multi-root VSCode workspace are opened. Specifically, if a multi-root workspace is opened, the STM32Cube CMake Support extension continuously shows the Select hardware window. Even if the user closes the window by pressing Esc, it immediately reappears, preventing the user from doing anything, since that window has the highest priority.

This happens because the extension detects the CMakeLists.txt file in the sub-workspace another_generic_cmake_project (see attached project) and, for some reason, attempts to configure the sub-workspace as an STM32Cube project, even though it is not an STM32 project but a generic CMake project.
Currently, as a workaround, I have to add the setting:
"settings": {
"stm32cube-ide-build-cmake.ignoreCubeProjectDiscovery": true,
}to the multi_root_project.code-workspace file, which prevents the STM32Cube CMake Support extension from attempting to detect the main workspace and any sub-workspace as STM32Cube projects.
Attached is a small example project that reproduces the issue. Open it by double-clicking on multi_root_project.code-workspace.
