为什么 VSCode 进入无限循环,显示“扩展已禁用,您要启用并打开 url 吗?”
我开发了一个扩展并注册 onUri 以接收 url“vscode://
所以我想问:
- 是VSCode的bug吗?
- 怎么解决呢?我可以通过某种方式让我的扩展在本地和远程都启用吗?
谢谢你!
I develop an extenison and register onUri to receive the url "vscode://<extensionid>/". I publish the extension to the marketplace. When I open url in my webbrowser, the VSCode will be opened and ask me if need to install the extension.
But when I open an remote ssh window (I connect to remote cloud environment) and then open the url in browser, I receive "Extension xx is disabled, Would you like to enable the extension and open the url". I choose "enable" and then after few seconds, the same message occurred again!! It enters to infinite loop……
So I want to ask:
- Is a VSCode bug?
- How to solve it? Can I in some way make my extension enable in both local and remote?
Thank you!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
当扩展类型为 'workbench':
当扩展类型为 'ui' 时,不存在此问题在 1.57.1 和 1.65.2 中
所以,我最终通过将其添加到 package.json 来解决它
When the extension kind is 'workbench':
When the extension kind is 'ui', this problem does not exist in both 1.57.1 and 1.65.2
So, I finally solved it by adding this to package.json