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

Vscode new version 1.81 hide popup immediately GitLens commit details

Open quyenvsp opened this issue 2 years ago • 7 comments

Description

Does this issue occur when use old version 1.80.2?: No

  • VS Code Version: 1.81.1
  • OS Version: Windows 11

Steps to Reproduce:

  1. Install plugin GitLens
  2. Hover Commit message for show suggest
  3. Click Commit ID for show Quick commit details

Expert: Quick commit details popup should show and keep present.

Actually: Popup show but hide immediately

Log:

When occur:

TRACE CommandService#executeCommand gitlens.showQuickCommitDetails
(22) log.ts:401 TRACE CommandService#executeCommand _setContext

When work normally:

TRACE CommandService#executeCommand gitlens.showQuickCommitDetails
(11) log.ts:401 TRACE CommandService#executeCommand _setContext

https://github.com/microsoft/vscode/assets/35319492/50002bb4-5abc-41aa-8f93-e8e83cb991f4

GitLens Version

14.2.1

VS Code Version

Version: 1.81.1 (system setup) Commit: 6c3e3dba23e8fadc360aed75ce363ba185c49794 Date: 2023-08-09T22:22:42.175Z Electron: 22.3.18 ElectronBuildId: 22689846 Chromium: 108.0.5359.215 Node.js: 16.17.1 V8: 10.8.168.25-electron.0 OS: Windows_NT x64 10.0.22621

Git Version

git version 2.42.0.windows.2

Logs, Screenshots, Screen Captures, etc

No response

quyenvsp avatar Sep 06 '23 05:09 quyenvsp

Can you still reproduce this in 1.82?

eamodio avatar Sep 13 '23 05:09 eamodio

@eamodio yes it still here.

Version: 1.82.1 (system setup) Commit: 6509174151d557a81c9d0b5f8a5a1e9274db5585 Date: 2023-09-08T08:45:05.575Z Electron: 25.8.0 ElectronBuildId: 23503258 Chromium: 114.0.5735.289 Node.js: 18.15.0 V8: 11.4.183.29-electron.0 OS: Windows_NT x64 10.0.22621

Gitlens plugin version: 14.3.0

I am using hyper v virtual machine for reproduce. Just only Gitlens installed with default clean Vscode.

Here are more log, you can see CommandService#executeCommand _setContext, when it work only (11). when not work it show (22) times

image

quyenvsp avatar Sep 13 '23 05:09 quyenvsp

VS Code controls the focus behavior that is likely causing this. Please open an issue on the VS Code repository. Thanks!

eamodio avatar Sep 14 '23 07:09 eamodio

I already filled issue then they closed because Third party plugin. But can you reproduce it?

Vào 14:14, Th 5, 14 thg 9, 2023 Eric Amodio @.***> đã viết:

VS Code controls the focus behavior that is likely causing this. Please open an issue on the VS Code repository. Thanks!

— Reply to this email directly, view it on GitHub https://github.com/gitkraken/vscode-gitlens/issues/2906#issuecomment-1718891294, or unsubscribe https://github.com/notifications/unsubscribe-auth/AINO5RBND5JBUJHV7354SPLX2KVGRANCNFSM6AAAAAA4MYZ4YE . You are receiving this because you authored the thread.Message ID: @.***>

quyenvsp avatar Sep 14 '23 07:09 quyenvsp

I posted this one the PR:

Sorry for the delay. I can't reproduce this issue but it must be a VS Code bug of some kind. Since this "fix" is a hack to workaround that bug and that it is forcing focus to something that may or may not have focus, I don't think GitLens should attempt to fix it. Forcing focus to the active editor group, could have implications to keyboard usage and screen reader support.

Since you already opened an issue on the VS Code repo, can you provide a link to it and I can comment on it. Although without a strong reproduction it might be hard. I would also suggest checking the VS Code settings you have set to see if there is maybe a combination of them that is causing the behavior (e.g. editor.hover.*)

eamodio avatar Nov 27 '23 05:11 eamodio

Thank you, from begin I have installed on Hyper-V virtual and only Gitlens plugin installed for sure all is Default setting. Today, it still happen with all latest Windows 11, Vscode, Gitlens plugin. But no problem, because you can't reproduce and I fixed by install customize Gitlens build myself. So all seem fine here.

quyenvsp avatar Nov 27 '23 06:11 quyenvsp