Version: 1.45.0-insider
Commit: d342048538c28d54afd1c6beea03f3a89af04359
Date: 2020-04-23T07:46:52.128Z
Electron: 7.2.2
Chrome: 78.0.3904.130
Node.js: 12.8.1
V8: 7.8.279.23-electron.0
OS: Darwin x64 19.4.0
This problem does not reproduce on VS Code 1.44.2 (stable).
When I use the command Source Control: Focus on Source Control View, the SCM view focuses the "Initialise repository" view which was not there before. Video attached.
Steps to Reproduce:
Source Control: Focus on Source Control Viewvscode-focus-on-scm-view.mov.zip
Does this issue occur when all extensions are disabled?: Yes
partially by design, the command you are running is intended to focus that view. we should probably unregister the welcome views when they are hidden however to remove this command. maybe it used to but a recent change broke it.
what's worse however is that if you then try to hide that view with the context menu, it duplicates forever
Well, not sure what the original intent for this command was, but I was looking for a way to bind a keybinding which would take my keyboard focus to the list of changed files in the SCM view. I have a keybinding to open the SCM view and focus the commit message input, but it takes additional tab press to get to the list.
And, yeah... I could not figure out how to get rid of that "Initialise repository" view after I got it to show up. 馃
I do not think this welcome view/command shall be shown/available from command pallete when the repositories view is shown. I will investigate this.
@joaomoreno Actual request from user is to have a command to focus repository changes view.
Fixed removing the focus command. Also fixed the model and view to respect active view descriptors.
That view should not be there at all since its when clause resolves to false. Is that what you just fixed, @sandy081 ?
Yes.
I reassigned to you because user actually wants - to have a command to focus the list in the changes view.
@robertohuertasm Please create a separate issue for this request. I am closing this for the fix I did here.
This behaves normal for me now. There is "Source control: Focus on REPO_NAME view". And that one does not open the SCM Welcome view.
@robertrossmann if you see issues with latest vscode insiders please let us know. Thanks!
Most helpful comment
Yes.
I reassigned to you because user actually wants - to have a command to focus the list in the changes view.
@robertohuertasm Please create a separate issue for this request. I am closing this for the fix I did here.