microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
164.71k stars 29.46k forks source link

Fail to load timeline info when activate timeline view using keyboard shortcut #100611

Open sunliangqin opened 4 years ago

sunliangqin commented 4 years ago

Steps to Reproduce:

  1. Add the following keyboard binding { "key": "ctrl+alt+t", "command": "files.openTimeline", }
  2. Move timeline view to the panel
  3. Make sure you unpin the current timeline
  4. Press ctrl+alt+t
  5. The timeline view automatically pins the current timeline and fails to load any timeline information.

image

Note that I cannot repro this issue if I switch to the timeline view with a mouse click.

baz-sh commented 1 year ago

I believe the command you should bind to should be: "command": "timeline.focus"

tepsley commented 6 months ago

"command": "timeline.focus" works as a solution for this, the user just has to remember to not pin the Timeline-view or else this works only if you close the timeline in between when changing focus to another file. I am using the following version on Windows 11 with WSL2

Version: 1.89.0 Commit: b58957e67ee1e712cebf466b995adf4c5307b2bd Date: 2024-05-01T02:09:22.859Z Browser: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Code/1.89.0 Chrome/120.0.6099.291 Electron/28.2.8 Safari/537.36