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

implement #2521 by adding output channel argument #3785

Merged
merged 12 commits into from
Jul 23, 2024

Conversation

stepeos
Copy link
Contributor

@stepeos stepeos commented May 21, 2024

Hi there, this is my first ts PR, so be adivesd. I really wanted this functionality so I'll throw the ball.

This change addresses item #2521

The changes include:

an option to keep the output channel hidden unless there is a build or configuration error

The following changes are proposed:

  1. add optional boolean argument to showChannel of the logging output channel
  2. call showChannel after building/configuring so that the "on error" option can be triggered

The purpose of this change

Building and configuring a project should not divert the programmers focus from the code when building. The user actually only needs to see the output window if an error occurs.

Other Notes/Information

I see no other way than calling showChannel twice since option "always" expects the showChannel to pop before configuring starts while "on error" expects it after.

@stepeos
Copy link
Contributor Author

stepeos commented May 21, 2024

@microsoft-github-policy-service agree

@stepeos
Copy link
Contributor Author

stepeos commented Jul 8, 2024

@gcampbell-msft any update on this? It's been months and it's not being merged?

@gcampbell-msft
Copy link
Collaborator

@stepeos Thanks for the ping, we've had it on our backlog for awhile and just haven't gotten to it, thanks for the reminder.

@gcampbell-msft
Copy link
Collaborator

@stepeos Overall it looks good, but could you add a CHANGELOG update?

package.json Outdated
@@ -3512,12 +3512,14 @@
"enum": [
"focus",
"always",
"never"
"never",
"on error"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I'd rather have this enum value simply be error

src/logging.ts Outdated Show resolved Hide resolved
src/logging.ts Outdated Show resolved Hide resolved
Copy link
Collaborator

@gcampbell-msft gcampbell-msft left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a couple of small nit changes, otherwise I appreciate the contribution and it's a good idea! Sorry for the delay in reviewing.

Also, could you please make a CHANGELOG update as well? Feel free to give yourself credit as other OSS contributors have in the changelog before.

gcampbell-msft
gcampbell-msft previously approved these changes Jul 11, 2024
@gcampbell-msft gcampbell-msft enabled auto-merge (squash) July 18, 2024 15:10
@gcampbell-msft gcampbell-msft merged commit 890fb56 into microsoft:main Jul 23, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants