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

Move Editor Left / Right actions incosistent when tabs are disabled #42997

Closed
myfonj opened this issue Feb 5, 2018 · 4 comments
Closed

Move Editor Left / Right actions incosistent when tabs are disabled #42997

myfonj opened this issue Feb 5, 2018 · 4 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug verified Verification succeeded
Milestone

Comments

@myfonj
Copy link

myfonj commented Feb 5, 2018

  • VSCode Version: Code 1.19.3 (7c4205b, 2018-01-25T10:36:34.867Z)
  • OS Version: Windows_NT x64 10.0.16299

Steps to Reproduce:

  1. Assure "workbench.editor.showTabs": true.
  2. Open three editors in one group.
  3. Switch to the second edtor.
  4. Invoke "Move Editor Left" (workbench.action.moveEditorLeftInGroup; ctrl+shift+pageUp by default) action once.
  5. Invoke "Move Editor Right" thrice.
  6. Observe tab movement in Tab Bar (left once, right twice) and Open Editors panel (up once, down twice) without creating new group.
  7. Set "workbench.editor.showTabs": false.
  8. Repeat step 3 - 5.

Expected result:

Editor moves in Open Editors panel up once and down twice.

Actual result:

  • Editor does not change position from second to first with "Move Editor Left".
  • New editor group is created with "Move Editor Right". (As if "Move Editor Into next Group" had been invoked instead.)

Reproduces without extensions: Yes

@bpasero
Copy link
Member

bpasero commented Feb 6, 2018

@myfonj if tabs are disabled, moving editors within a group would have no visible impact otherwise, that is the reason why we move across groups in that case and no-one has complained so far.

@bpasero bpasero added the info-needed Issue requires more information from poster label Feb 6, 2018
@myfonj
Copy link
Author

myfonj commented Feb 6, 2018

I see, but I slightly disagree: there is the Open Editors panel in the left sidebar.
My report could be reworded into "How can I move active editor up/down in Open Editors panel with keyboard when tabs are not displayed?".

@myfonj
Copy link
Author

myfonj commented Feb 6, 2018

Illustrative gif "Moving settings.json editor back and forth with tab enabled and then disabled":
vscode-move-editor-left-right-2018-02-06

(...) that is the reason why we move across groups in that case

But there is a dedicated action with separate hotkey for moving editors across groups, isn't there?

FMPoW there is very weak excuse for changing actions outcome based on state of completely different ("visual") pref: in this case setting "workbench.editor.showTabs": false changes workbench.action.moveEditorRightInGroup action to do the workbench.action.moveEditorToNextGroup (which is still working) and workbench.action.moveEditorLeftInGroup to workbench.action.moveEditorToPreviousGroup (which does nothing when active editor is in the first group).

@bpasero bpasero added bug Issue identified by VS Code Team member as probable bug and removed info-needed Issue requires more information from poster labels Feb 6, 2018
@bpasero bpasero added this to the February 2018 milestone Feb 6, 2018
@bpasero bpasero closed this as completed in 114b671 Feb 6, 2018
@bpasero
Copy link
Member

bpasero commented Feb 6, 2018

We probably added the other commands for moving editors across groups later and now that we have them I am fine to remove the inconsistent behaviour. This means that people that got used to this behaviour will have to change to the workbench.action.moveEditorToNextGroup and workbench.action.moveEditorToPreviousGroup commands.

@RMacfarlane RMacfarlane added the verified Verification succeeded label Mar 1, 2018
@vscodebot vscodebot bot locked and limited conversation to collaborators Mar 23, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug verified Verification succeeded
Projects
None yet
Development

No branches or pull requests

3 participants