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

Do not steal focus when installing shell format binary #381

Open
stewartadam opened this issue May 28, 2024 · 0 comments
Open

Do not steal focus when installing shell format binary #381

stewartadam opened this issue May 28, 2024 · 0 comments

Comments

@stewartadam
Copy link

After installing the extension, it steals focus to open up the output window and present download progress:

shfmt hasn't downloaded yet!Error: ENOENT: no such file or directory, stat '/home/vscode/.vscode-server/extensions/foxundermoon.shell-format-7.2.5/bin/shfmt_v3.6.0_linux_arm64'
Shfmt will be downloaded automatically!
download url: https://github.com/mvdan/sh/releases/download/v3.6.0/shfmt_v3.6.0_linux_arm64
download to: /home/vscode/.vscode-server/extensions/foxundermoon.shell-format-7.2.5/bin/shfmt_v3.6.0_linux_arm64
If the download fails, you can manually download it to the dest directory.
Or download to another directory, and then set the "shellformat.path" as the path
download shfmt page: https://github.com/mvdan/sh/releases
You can't use this plugin until the download is successful.
downloaded:[0.05%]
downloaded:[0.10%]
downloaded:[0.15%]
...

There isn't really much actionable here, it should be logged but should not steal focus. This is particularly annoying for dev containers because every startup, the focus is stolen away from the active terminal or file being edited after ~1 minute as extensions are initialized in the background.

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

No branches or pull requests

1 participant