有没有一种方法可以在不显示的情况下解决网络浏览视图?
我希望触发WebViewViewProvider.resolveWebViewView(),而无需显示视图 /用户打开视图。我了解您可以使用vscode.commands.executecommand(“ myview.focus”),然后将打开视图并触发上述函数。我还尝试执行命令“ workbench.view.extension.myview”,但这似乎具有相同的操作。取而代之的是,我想激活视图,以使提供商拥有它的所有权(使用ResolveWebViewView),但是该视图仍然隐藏起来,我仍然可以向其发送消息。这可能吗?
I wish to trigger WebviewViewProvider.resolveWebviewView() without showing the view / the user opening the view. I understand that you can use vscode.commands.executeCommand("myView.focus"), which would then open the view and trigger the above function. I also tried executing the command "workbench.view.extension.myview", but that seemed to have the same action. Instead, I want to activate the view such that the provider takes ownership of it (using resolveWebviewView), but the view remains hidden and I can still send messages to it. Is this possible?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您必须创建另一个消息处理程序。
We have a
silentMessage
handler 。You got to create a different message handler.
We have a
silentMessage
handler.