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 454 forks source link

Request: Option to disable output panel auto-activation when configurating-on-open #4120

Closed Colengms closed 1 month ago

Colengms commented 1 month ago

Currently, when automatically configuring on open, CMake Tools activates it's output panel. In the process of debugging the C/C++ Extension, I'm often trying to investigate issues at start-up, trying to view the C/C++ output panel. It would be great if there were some way to prevent CMake Tools from switching my output channel selection, yet still configure as expected.

Perhaps this could even be an undocumented setting that is applied only when extensions are running in a debug session? (I think that can be determined using vscode.env.sessionId).

bobbrow commented 1 month ago

Can you try the "cmake.revealLog" setting and see if that does what you want?

Yingzi1234 commented 1 month ago

@bobbrow @Colengms This doesn't seem to work too well for this problem, I open the project after turning the option to never and it still automatically opens the output window of cmake/build. Please let us know if it is wrong. Thank you! Image

Colengms commented 1 month ago

Hi @Yingzi1234 . VS Code appears to recall the output channel it was previously set to and restores it on relaunch. It takes a moment for CMake Tools to create the channel, so it might switch away from what would otherwise be the default channel (Tasks?).

"cmake.revealLog": "error" works well for me. Closing.