Home > Blockchain >  Uninstalling Extension Dependent on Another Extension in Visual Studio Code
Uninstalling Extension Dependent on Another Extension in Visual Studio Code

Time:04-30

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

CodePudding user response:

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

  • Related