forked from DonJayamanne/pythonVSCode
-
Couldn't load subscription status.
- Fork 1.3k
Extension Activation
Don Jayamanne edited this page Apr 1, 2019
·
1 revision
All code related to activation of the extension can be found in extension.ts file.
- Code that needs to be executed when extension starts.
- E.g. registering command handlers, or the like.
- Modifying the
initializeServicesin the extension.ts file to register startup code is the old way of doing it.
IExtensionActivationService (new way)
- All classes implementing
IExtensionActivationServicewill have theiractivatemethods invoked when the extension loads - This is done in the ExtensionActivationManager class
- This provides a very simple way of registering startup code, without having to modify extension.ts file.