forked from DonJayamanne/pythonVSCode
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
initializeServices
in the extension.ts file to register startup code is the old way of doing it.
IExtensionActivationService (new way)
- All classes implementing
IExtensionActivationService
will have theiractivate
methods 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.