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

Pinned Commands - allow Build Target pinned commands to be build a target that was already selected #4189

Open fdk17 opened 1 day ago

fdk17 commented 1 day ago

Brief Issue Summary

In a CMake project with a hundred different targets it would be nice to have the ability to easily jump between the couple of targets I use all the time. So, When pinning Build Target the user could select the build target and the Pinned Build Target would always build that particular target. The current behavior is to always have to select a target to build when clicking on the pinned 'Build Target' command.

CMake Tools Diagnostics

Debug Log

Additional Information

No response

Yingzi1234 commented 1 day ago

Hi @fdk17, thanks for reporting issue here! Based on the information you provided, we were able to reproduce the issue and you can get the details below. We will mark your suggestion as a feature request!

Repro steps:

  1. Create a folder to open with VSCode
  2. Create project with the run command: CMake: Quick start
  3. Click CMake page and set the build target to a value
  4. Add the 'Build target' to PINNED COMMANDS
  5. Click Run command

Actual result: Still need to choose the build target Image