-
Notifications
You must be signed in to change notification settings - Fork 28.8k
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
API: Prevent the webview tab from being replaced #66051
Comments
I'm not in favor of supporting editors that can't be replaced since it would let webviews behave differently from how all other editors in VS Code currently work. Would placing the webview in a sidebar cover your use case, either #46585 or #43049. There's also this request for modal webviews: #47899 |
Thanks, please upvote #46585. I'm going to close this feature request as out of scope since I do not think it something we would want to enable |
I didn't find any way to prevent the webview tab from being replaced.
Context: I'm developing an extension with a preview pane that you can interact with. The typical workflow is: open a file, interact with a preview, open a different file. If the user tries to open a different file while the preview is focused, the preview tab will be replaced.
I propose a new option on
WebviewPanelOptions
:What do you think?
The text was updated successfully, but these errors were encountered: