How to switch to the context of specific webview? #1493
Unanswered
daniel-a126
asked this question in
Q&A
Replies: 2 comments
-
unfortunately there is no identifier for webviews to be more specific which to use. There is open issue for improvement of this -#1486 The idea is to allow users at least to specify webview title/name which they would like to try to switch to. Is this something what would also help you? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Yeah, that would definitely help. Thank you! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Editor and sidebars can be contributing webviews to VS Code. Editor seems to be contributing only one active at a time, but for sidebars this is a completely different story - there can be multiple and each can have many panels. Sidebar webviews are not discarded when sidebar is hidden. There are therefore multiple webviews at the same time.
As far as I know (via wiki) we have the following API awailable:
This seems to return the first found webview (typically from Editor).
Is there a way to tell the tester which webview am I interested in? For example by passing a ViewSection?
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions