dotnet / dotnet/vscode-dotnet-runtime

Only call outputChannel.show(preserveFocus: false) on `Warning` and `Error`output

Open
#1,683 1 comment 0 reactions 0 assignees View on GitHub
cost: small feature-request new-hire-issue P2
Dominant language
TypeScript
Stars
209
Forks
455
PR merge metrics
No merged PRs in 30d

Description

### Is your feature request related to a problem? Please describe.

When `ms-dotnettools.vscode-dotnet-runtime` shows its Output on `Info`/`Debug`/`Trace`-level output, it yanks focus away other extensions' more important `Error` and `Warning` logs.

This has caused other extensions' users to post .NET Runtime's logs instead of the corresponding extension's logs.
![image](https://github.com/dotnet/vscode-dotnet-runtime/assets/7243190/1fd3e383-a7c6-4ba5-9faf-c6130c714759)

### A clear and concise description of what you want to happen. Include any alternative solutions you've considered.

1. Update logger output to use VSCode's newer API.
2. Use the Output API's "Log Level" feature to filter logging output.
3. Only call `outputChannel.show(true)` when the logging entry' logging level is `Warning` and `Error`.

### Describe the solution you'd like

See above

### Additional context

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.