-
Notifications
You must be signed in to change notification settings - Fork 270
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
Do not steal focus from VS Code editor #1935
Comments
Man this is crazy. I've been looking all over the web to find a solution to this problem, found 5 threads in 5 minutes running over years with multiple users complaining, all of them closed with no real reason or answer, at best referencing a mega thread where the VSCode team themselves discuss the philosophical implications of preventing the output tab from stealing focus. I have zero idea why this is such an issue. Just add a toggle to prevent logging. |
We should be able to prevent focus while still writing to the output channel. If there's a catastrophic failure then we can add a button to our notification toast to open the output channel for details. This is just one of those decisions that was made years ago that we haven't revisited in some time. The world (and user expectations) have changed, it's reasonable to be more demure, more mindful with our logging. |
Yes, I believe @lifengl had made some sort of initiative to improve our UI for this to stop producing output in this channel. Maybe it's gone to a window notification based approach. I'm not sure that's better here, but for this message in particular we definitely dont need to draw away attention. Anyway, this is something I should take care of. |
Describe the bug.
Various extensions depend on the .NET install tool to grab the .NET SDK. As a result, on each initialization of the editor it steals focus from the user to display the Output tab -- for example:
See also:
output.showQuietly
to stop extensions activating Output view (fix #105270) microsoft/vscode#205225Please attach log file(s) here if you have any.
Reproduction Steps
Open VS Code
Expected Behavior
Focus is not stolen to Output tab to display an message that is not actionable by the user
Exceptions & Errors (if any)
No response
.NET Install Tool Version
v2.1.5
Your operating system? Please provide more detail, such as the version and or distro above.
OSX / Darwin / Mac
VS Code Version
Version: 1.92.2 Commit: fee1edb8d6d72a0ddff41e5f71a671c23ed924b9 Date: 2024-08-14T17:29:30.058Z Electron: 30.1.2 ElectronBuildId: 9870757 Chromium: 124.0.6367.243 Node.js: 20.14.0 V8: 12.4.254.20-electron.0 OS: Darwin arm64 23.6.0
The text was updated successfully, but these errors were encountered: