OptionalconfigureOptionalinitializeCalled on application startup before configure is called.
OptionalinitializeCalled after the application shell has been attached in case there is no previous workbench layout state. Should return a promise if it runs asynchronously.
OptionalonAn event is emitted when a layout is initialized, but before the shell is attached.
OptionalonCalled when the application is started. The application shell is not attached yet when this method runs. Should return a promise if it runs asynchronously.
OptionalonCalled when an application is stopped or unloaded.
Note that this is implemented using window.beforeunload which doesn't allow any asynchronous code anymore.
I.e. this is the last tick.
OptionalonCalled on beforeunload event, right before the window closes.
Return true or an OnWillStopAction in order to prevent exit.
Note: No async code allowed, this function has to run on one tick.
Called before commands, key bindings and menus are initialized. Should return a promise if it runs asynchronously.