vscode-gitlens icon indicating copy to clipboard operation
vscode-gitlens copied to clipboard

Every time I open my IDE, focus is stolen by this extension

Open ramarivera opened this issue 2 months ago • 9 comments

Description

Every time I open my IDE, focus is stolen by this extension

GitLens Version

latest

VS Code Version

No response

Git Version

No response

Logs, Screenshots, Screen Captures, etc

No response

ramarivera avatar Nov 14 '25 21:11 ramarivera

And here I thought I was the only one with this issue, thanks for raising it @ramarivera

brandonpapworth avatar Nov 14 '25 21:11 brandonpapworth

@ramarivera @brandonpapworth what view from GitLens takes focus? Can you provide steps for when this occurs?

d13 avatar Nov 14 '25 21:11 d13

  1. Open the IDE
  2. Try to do something
  3. Wait some seconds
  4. Your focus gets stolen because this tab gets focused
Image

ramarivera avatar Nov 14 '25 21:11 ramarivera

@gitkraken any update here?

ramarivera avatar Nov 17 '25 18:11 ramarivera

@ramarivera are you using GitLens in a container? The only time Home gets focuses is on new Installs.

d13 avatar Nov 19 '25 21:11 d13

@d13 nope, same install for months

ramarivera avatar Nov 20 '25 01:11 ramarivera

Is there any more information you can provide -- like the exact set of steps. We can't reproduce this.

Do you have settings sync enabled in VS Code?

eamodio avatar Nov 27 '25 05:11 eamodio

Can you also please enable debug logging by running the GitLens: Enable Debug Logging command from the Command Palette (F1 or ctrl/cmd+shift+p). This will enable logging to the GitLens & GitLens (Git) channels in the Output pane.

Once enabled, please reproduce the issue, and attach the logs from the GitLens channel.

Thank you!

eamodio avatar Dec 01 '25 23:12 eamodio

I encounter this as well, but I'm running on Nix so when I open VSCode it is effectively a new install every time. This may be different than @ramarivera's case.

The only time Home gets focuses is on new Installs.

Is it possible to disable this? Or is that default behaviour for extensions? GitLens is always the extension that steals focus, but I would understand if that was simply coincidental.

UnstoppableMango avatar Dec 05 '25 01:12 UnstoppableMango

I've added a gitlens.advanced.skipOnboarding setting that you can set to avoid this and other "new user" experiences

eamodio avatar Dec 14 '25 18:12 eamodio