卸载扩展名取决于Visual Studio代码中的另一个扩展
我正在尝试卸载vscode中另一个扩展名的扩展名。有人可以协助如何做到这一点吗?
PS在套件的扩展依赖性部分中定义了要卸载的扩展名。
I am trying to uninstall an extension in VSCode on which another extension is dependent. Could anyone please assist on how this can be done?
P.S. the extension to be uninstalled has been defined in the extensionDependancies part of package.json
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我自己解决了这个问题。发布答案,以便其他人也可以从中受益。我能够使用“ ExtensionPack(并在此块中提到扩展程序)”来解决问题。这样,我不仅可以在安装因扩展程序时自动安装我的扩展名,而且还可以在需要时卸载它,而不会影响主扩展的性能。换句话说,ExtensionPack为您提供了一个选项,可以随时卸载或禁用其他扩展名:)。我的代码看起来像这样:
“ ExtensionPack”:[[
“扩展标识符”
]
参考链接:
https://github.com/microsoft/microsoft/vscscode/issues/issues/48430
I resolved the issue by myself. Posting the answer so that others may also benefit from it. I was able to solve the problem by using "extensionPack (and mentioned the extension within this block)" section in package.json. In this way, I was not only able to get my extension automatically installed whenever the dependent extension is installed, but also uninstall it whenever required without effecting the performance of the main extension. In other words, extensionPack gives you an option to uninstall or disable the other extension whenever needed :). My code looks like this:
"extensionPack": [
"extension identifier"
]
Reference Link:
https://github.com/microsoft/vscode/issues/48430