-
Notifications
You must be signed in to change notification settings - Fork 29.3k
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
showTextDocument & vscode.diff always default to ViewColumn.One #27408
Comments
Unsure what that means? |
Sorry, I meant that the |
+1 for not setting |
@bpasero PR #27409 addresses it, but it conflicts with another change see: #27409 (comment) Any thoughts on coming to a resolution on that -- I would LOVE to see this fixed. |
@eamodio we have an option for editors to reveal if they are open in another group (see I am actually surprised that #25801 was fixed and marked as important because the normal workbench behaviour is to open an editor in the currently active editor group. On top of that, the solution also does not seem right because what if I start in column 2 and I open a document in column 3 and then open the document from column 2 again. It opens in column 1? |
@bpasero I was surprised as well as that was my argument too :) |
I could rebase that PR again (since its quite old) if you'd like, but it will still fail because of a test checking for #25801 |
Well, we had this behaviour in place, extensions rely on it #25801 (comment), and we don't want to break them. That's why this is tricky
The solution is to use column 1 if not specified, no column-math happens: c9963a4 |
Closes #27408 - Adds ViewColumn.Active
These 2 apis should honor the ViewColumn if specified, but if left
undefined
they should default to the column of the active editorHaving this will eliminate code in many extensions such as:
Which fails for anything that isn't a text document (since
viewColumn
will be missing)The text was updated successfully, but these errors were encountered: