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

Output tab added by PlatformIO vscode extension's aggressively takes focus #3535

Closed
mlewand opened this issue Feb 18, 2023 · 2 comments
Closed
Milestone

Comments

@mlewand
Copy link

mlewand commented Feb 18, 2023

Repro steps:

  1. Open a project in VSCode that:
    1. has PIO extension enabled,
    2. has a few dependencies in platformio.ini file.
  2. (at this point PIO should start some dependency checking/installing thingy)
  3. Open any source code in editor.
  4. Start typing/editing.

Expected

Output panel doesn't grab focus from the editor. It's perfectly fine for it to process its own thing, but it shouldn't interrupt editing.

Actual

It takes focus for every single time it puts a line to the output.

Given I'm using multiple git repositories, it takes ~1sec for each line - effectively I can't do anything for a notable time.

Other info

This is an issue that didn't occur to me before (although I had a break in using PIO in VSCode for like year or two). So seems to be a regression.

@mlewand
Copy link
Author

mlewand commented Feb 18, 2023

Worst part of it is that it occurs even when I change branches when I want to hop between the two to merge them or do anything. That probably happens because there are some platformio.ini changes.

But it kills the experience really (can't use CLI in vscode's terminal to do further git operations).

For others fading this issue, I suppose the workaround will be to disable the feature:

image

Let's see how it fares.

@ivankravets ivankravets added this to the 3.0.1 milestone Feb 24, 2023
@Carl-UB
Copy link

Carl-UB commented Aug 27, 2024

I'm getting this issue as well I think. E.g. on switching branches on git, the Output>PlatformIO: Project Configuration tab aggressively takes focus if there are libraries to install.
Should I be seeing this fix by now in my version?
> pio --version
PlatformIO Core, version 6.1.15

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants