vscode扩展放进去后webview不能正常显示 #3315
tanjiancheng
started this conversation in
General
Replies: 1 comment
-
我们的 webview 是基于 iframe 做的,因为 iframe 的一些通信的限制,我们需要通过加载 /webview/index.html 来包裹一层 webview,你这里的报错看起来是加载不到这个地址。 可以参考下这个 webpack 脚本,构建一下 webview 到某个目录,然后让 server 能通过某个路径能访问到这个 webview 的地址: webview 的地址可以通过前端 ClientApp 的 webviewEndpoint 属性配置,参考: |
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
-
描述你的问题(Describe the bug)
我自己修改编写的vscode插件放进去extensions后,图标和相关的webview都没有显示
打开控制台显示

对比同样的插件,我使用theia是正常的


所以这块是有什么兼容性问题吗?
预期表现(Expected behavior)
能正常显示图标和相关的view内容
环境信息(Environment)
Beta Was this translation helpful? Give feedback.
All reactions