-
Notifications
You must be signed in to change notification settings - Fork 29.4k
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
Open editors in the active editor group if now viewcolumn is specified #34459
Comments
Yes, that how it is defined because otherwise both editors will have the same view column which is a little bogus. The |
Yeah, I think we can always tweak that. And more than you want that: #27409 I am just not yet sure about the implementations... |
I pushed a change to open an editor in the currently active editor group if no group is provided. I think this plays much better with the new grid system. As for other impact the grid should have on extensions API I have opened #51001 |
Steps to Reproduce:
I think the Git extension is doing the right thing for this command by setting the view column to be the one of the active editor, which in this case is the diff editor. However, it looks like the view column is always
undefined
for diff editors at least.Tracing this down the stack, it looks like
MainThreadDocumentsAndEditors#_onDelta
is called with the left hand side of the diff editor as well as the right hand side (both instance ofCodeEditor
). As such, the method_findEditorPosition
will not function properly because it compares theCodeEditor
to theDiffEditorWidget
which is opened.The text was updated successfully, but these errors were encountered: