Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FEATURE REQUEST: Option to clear terminal before 'Compile active file' #1122

Closed
BlakeTheAwesome opened this issue Mar 16, 2020 · 5 comments
Closed
Labels
enhancement an enhancement to the product that is either not present or an improvement to an existing feature Feature: build
Milestone

Comments

@BlakeTheAwesome
Copy link

Brief Issue Summary

There is currently an option to Clear Output Before Build which clears the output window "CMake/Build" when you run the CMake: Build command, but there is no option to clear the output when running CMake: Compile Active File which has its output in the terminal window.

I would like an option to clear the output before compiling the active file, either by clearing the terminal, or making that command redirect to the same "CMake/Build" output window used by the build command.

Expected:

  1. Run CMake: Compile Active File
  2. Scroll to top of terminal window to find the first error to fix

Apparent Behavior:

  1. Run CMake: Compile Active File
  2. Scroll to top of terminal window and see errors from an earlier run
  3. Manually clear the terminal and try again
@bobbrow
Copy link
Member

bobbrow commented Mar 17, 2020

Would there be any concern with having the setting be interpreted to clear both the output and the terminal? The change to support that is easy enough.

@bobbrow bobbrow added enhancement an enhancement to the product that is either not present or an improvement to an existing feature Feature: build labels Mar 17, 2020
@BlakeTheAwesome
Copy link
Author

I'd certainly be fine with that.
It's probably what most people would expect to happen.

@bobbrow bobbrow added this to the 1.4.0 milestone Mar 19, 2020
@andreeis
Copy link
Contributor

CMake Tools 1.4.0 Beta is available on GitHub.
https://github.com/microsoft/vscode-cmake-tools/releases/tag/1.4.0-beta

Please try it out and let us know if you encounter any issues.

@andreeis
Copy link
Contributor

This fix is available in CMake Tools #1.4.0 which has been released.

@mqtthiqs
Copy link

Hello, I found this issue google for a way to clear the Output tab when Building+running.
The new option does clear the output when running "CMake: Build" but not when running "CMake: Run without debugging". Woudn't it be more consistent if the option also acted on the other ways to build?

@github-actions github-actions bot locked and limited conversation to collaborators Jan 29, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement an enhancement to the product that is either not present or an improvement to an existing feature Feature: build
Projects
None yet
Development

No branches or pull requests

4 participants