Called on application startup before configure is called.
Called after the application shell has been attached in case there is no previous workbench layout state. Should return a promise if it runs asynchronously.
An event is emitted when a layout is initialized, but before the shell is attached.
Called when the application is started. The application shell is not attached yet when this method runs. Should return a promise if it runs asynchronously.
Called 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.
Called 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.