Create workbench.editor.openPositioning
pendant for tab groups
#56142
Labels
workbench.editor.openPositioning
pendant for tab groups
#56142
Steps to reproduce
ctrl+shift+e
) and then its preview (ctrl+k, v
)Result: markdown file opened in a new tab in the left tab group, its preview replaced the previous one in the right tab group
Result: markdown file opens in the 2nd tab group next to the preview and spawns a 3rd tab group
Expected behavior
Markdown files should always be opened in the left tab group and their preview in the 2nd tab group.
This behavior is independent of other tab settings (open markdown file as preview, do not use tabs at all, etc.)
The problem
It seems that after step 2) the preview tab in the 2nd tab group has focus. This is why in step 3), the markdown file is opened in the 2nd tab group.
This process can be repeated indefinitely. After step 3), the preview in tab group 3 has focus. If another markdown file is opened, it will open in the 3rd tab group and spawn a 4th group.
Why this matters
When editing markdown files in a folder, you often have to switch between files.
I cannot fathom a scenario where someone would want a new markdown file to be opened next to a preview tab, effectively hiding the preview and displaying the 2 markdown files side-by-side, plus showing a preview of the 2nd in a 3rd tab group.
Possible solution
Create a setting similar to
workbench.editor.openPositioning
, only that it controls which tab group is used when opening new files. I.e. when setting this tofirst
it would solve the problem described here.The text was updated successfully, but these errors were encountered: