VS-Code Extensions - Global Activation ? #187
-
Hello, how I can choose between extensions which are globally activated or other methods in VS Code ? When you ask yourself what I mean, look for example at the extensions LanguagePacks. Greets |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
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 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. Hope this helps |
Beta Was this translation helpful? Give feedback.
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, useonCommand
. 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.
…