microsoft / vscode-cmake-tools

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

Feature Request: Make `Compile active file` a first-class citizen #3845

Open gcampbell-msft opened 3 months ago

gcampbell-msft commented 3 months ago

Discussed in https://github.com/microsoft/vscode-cmake-tools/discussions/3844

Originally posted by **dslijepcevic** June 24, 2024 At the moment, `Compile active file` is not well integrated into CMake Tools; it feels disconnected, like a side, one-off thing. From the user's standpoint, there's really no reason for the compilation of a single file to be treated differently than building any other target via CMake. To achieve this, I believe that the output of the compilation command should be parsed, and all warnings and errors displayed in the Problems tab, replacing the last build's output. This is how things work in Visual Studio and other IDEs, i.e., compilation with Ctrl+F7 is seamless. Perhaps you can add an option for this if you don't want this behavior to be the default.