-
Notifications
You must be signed in to change notification settings - Fork 29.5k
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
vscode.ViewColumn doesn't work as expected #46161
Comments
(Experimental duplicate detection) |
Not sure what that means? Do you want an empty first column? |
When I open a document in the second column If there's no document open, after I open a document in the second column, only one column will show (this is as expected), but the shown column should still be And when I open a new document in Why I request this change? The issue we have in fact is unexpected duplicate explorers: Generally, when the user has document open in vscode (text document, or welcome page), the explorer will open in the second column. And even the user run open explorer command multi times, there will be only one explorer. However, if the user has no document open, and run open explorer command twice, two explorers will open in the first and second column. |
The workbench currently cannot do that as columns are not static but dynamically added while editors are opened. You should be looking at #45994 which is about improving the webview-api and which will let you know in which column the webview currently shows. Assigning @bpasero for the static workbench layouts |
Allowing arbitrary editor layouts is covered in #2755 |
Emmm, I do not agree this issue is duplicate with #2755. As an extension developer, I cannot ask my users to change their vscode config to make the extension work as expected. |
Steps to Reproduce:
AI: Open Azure ML Sample Explorer
twiceDoes this issue occur when all extensions are disabled?: N/A
This issue is cause by
vscode.ViewColumn.Two
. When we want to open a document in the second column, the first column should exist, and if there is no column, the document will open in the first column, even if we are clear to open it withvscode.ViewColumn.Two
. I believe this is as design, but it doesn't make sense.What I expect is, when there is not column, the document will also open in the second column, and the first column is hidden, but not replace the second column with the first one.
The text was updated successfully, but these errors were encountered: