Skip to content

Extension Activation

Don Jayamanne edited this page Apr 1, 2019 · 1 revision

Activation

All code related to activation of the extension can be found in extension.ts file.

Startup code

  • Code that needs to be executed when extension starts.
  • E.g. registering command handlers, or the like.

initializeServices (old way)

  • Modifying the initializeServices in the extension.ts file to register startup code is the old way of doing it.
  • All classes implementing IExtensionActivationService will have their activate 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.
Clone this wiki locally