Protected
Readonly
aboutProtected
Readonly
authenticationProtected
Readonly
clipboardProtected
Readonly
commandProtected
commonProtected
Readonly
contextProtected
Readonly
encodingProtected
Readonly
environmentsProtected
Readonly
iconProtected
inputProtected
Readonly
languageProtected
Readonly
localizationProtected
Readonly
menuProtected
Readonly
messageProtected
Readonly
openerProtected
pinnedProtected
Readonly
preferencesProtected
Readonly
preferenceProtected
Readonly
quickProtected
Readonly
resourceProtected
Readonly
saveProtected
Readonly
selectionProtected
Readonly
shellProtected
shouldProtected
Readonly
storageProtected
Readonly
themeProtected
Readonly
undoProtected
Readonly
untitledProtected
Readonly
windowProtected
Readonly
workingCalled before commands, key bindings and menus are initialized. Should return a promise if it runs asynchronously.
Protected
configureProtected
confirmProtected
getProtected
handleProtected
initProtected
isProtected
isCalled 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.
Protected
openProtected
registerregisters event listener which make sure that window doesn't get closed if CMD/CTRL W is pressed. Too many users have that in their muscle memory. Chrome doesn't let us rebind or prevent default the keybinding, so this at least doesn't close the window immediately.
Protected
saveOptional
options: SaveOptionsProtected
savesaves any dirty widget in toSave side effect - will pop all widgets from toSave that was saved
Protected
selectProtected
selectProtected
setProtected
setProtected
showProtected
toggleProtected
toggleProtected
unsavedProtected
unsavedProtected
updateProtected
updateProtected
update
Representation of a menu contribution.
Note that there are also convenience classes which combine multiple contributions into one. For example to register a view together with a menu and keybinding you could use AbstractViewContribution instead.
Example usage