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
preferenceProtected
Readonly
preferencesProtected
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
configurePrivate
confirmProtected
confirmProtected
getProtected
handleProtected
initProtected
isProtected
isCalled 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
openRegister commands and handlers.
Protected
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.
Registers keybindings.
the keybinding registry.
Registers menus.
the menu model registry.
Protected
saveOptional
options: SaveOptionsProtected
saveProtected
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