Skip to content

VS-Code Extensions - Global Activation ? #187

Discussion options

You must be logged in to vote

Hi @sado17 ,

Extensions are activated depending on the Activation Events (https://code.visualstudio.com/api/references/activation-events). There are a few categories of activation, and depending on the kind/purpose of your extension, you may choose the one that better fit your needs.

Globally activated, I suppose right after VS Code starts, no matter what the user does. In this case, you should choose onStartupFinished. If you want to activate only when the user runs some command, use onCommand. And so on..

LanguagePack are a special kind of extension, and doesn't use Activation Events. Anyway, don't see anyone other than MS publishing it, even existing such option in the Yeoman generator.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@sado17
Comment options

@alefragnani
Comment options

Answer selected by digitarald
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants