-
Notifications
You must be signed in to change notification settings - Fork 27.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extension Pack - Optionally loading extension dependencies #48873
Comments
(Experimental duplicate detection) |
@akaroml What is the activation event for the pack? |
@sandy081 the pack is activated when a command is triggered. |
@alexandrudima May I know if activating an extension also activates its dependencies? |
If an extension If I understand extension packs make use of |
@alexandrudima thanks for the info. So does vscode have a mechanism to achieve what you described? That behavior is exactly what we want. I see lots of extension packs use extensionDependency as the underlying mechanism and I'm not aware of other choices. |
@akaroml Only supported mechanism to define extensions in an extension pack is by |
@sandy081 thanks for the confirmation. Then I would like to ask for a mechanism to allow installation-only extension dependency. This will be super useful for the extension pack scenario. Most packs' purpose is to recommend extension combinations and they do not necessarily need to have runtime dependency on those extensions. I'd like to borrow the concept of peer dependency from npm but give it a new name peerExtensions. An extension would only work when all the peer extensions are installed. |
isn't this then a dupe of #48430? |
Yes. it is. |
Thanks for creating this issue! We figured it's covering the same as another one we already have. Thus, we closed this one as a duplicate. You can search for existing issues here. See also our issue reporting guidelines. Happy Coding! |
An extension pack itself is also an extension which can have some code logic. When a pack is activated as an extension, all the extensions listed in the
extensionDependencies
are automatically activated. This behavior may not be ideal because the pack's role is to install several extensions together but not necessarily load them all at the same time when the pack is loaded.The documentation also echos that:
https://code.visualstudio.com/docs/extensionAPI/extension-manifest#_extension-packs
The extensions listed in extensionDependencies will be installed. But there is no clear statement of lifecycle, e.g. extension dependencies being activated whenever the pack extension is activated.
Here to request that vscode provide a mechanism of optionally activating these dependencies. Here's one scenario to consider:
The text was updated successfully, but these errors were encountered: