You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The webview reveal API is what we use to display a webview when a user adds new content to it. However the only way we can present it is to force it to move to a specific ViewColumn (either the same as the active editor, or a hardcoded value).
We'd really love a way to just have it activate wherever it happens to be.
Maybe something like:
/**
* Makes the webviewpanel show up.
* @return A Promise that can be waited on
*/
show(): Promise<void>;
Nope. If I pass no arguments, it activates next to the window that currently has focus.
So if the webview was in view column 2, the active editor is view column 1 and I call 'reveal()' it activates the webview in view column 1. Additionally it steals the focus. Although since it covers the active editor, it kinda has to steal the focus.
What we'd like is to have reveal(undefined, true) just bring the webview to the front of the list of windows in whatever column it's already in.
mjbvz
added
bug
Issue identified by VS Code Team member as probable bug
and removed
info-needed
Issue requires more information from poster
labels
Feb 12, 2019
The webview reveal API is what we use to display a webview when a user adds new content to it. However the only way we can present it is to force it to move to a specific ViewColumn (either the same as the active editor, or a hardcoded value).
We'd really love a way to just have it activate wherever it happens to be.
Maybe something like:
Here's an example of reveal not working the way a customer needs:
https://github.com/Microsoft/vscode-python/issues/4237
The text was updated successfully, but these errors were encountered: