Protected
Readonly
contextProtected
Readonly
encodingProtected
Readonly
fileProtected
Readonly
fileProtected
Readonly
messageProtected
Readonly
openerProtected
Readonly
preferenceProtected
Readonly
quickProtected
Readonly
saveProtected
Readonly
toProtected
Readonly
workspaceProtected
Readonly
workspaceProtected
closeCalled before commands, key bindings and menus are initialized. Should return a promise if it runs asynchronously.
Protected
createProtected
doThis is the generic Open
method. Opens files and directories too. Resolves to the opened URI.
Except when you are on either Windows or Linux AND
running in electron. If so, it opens a file.
Protected
doOpens a set of files after prompting the Open File
dialog. Resolves to undefined
, if
Otherwise, resolves to the set of URIs of the files.
Protected
doOpens one or more folders after prompting the Open Folder
dialog. Resolves to undefined
, if
Otherwise, resolves to the URI of the new workspace:
Protected
doOpens a workspace after raising the Open Workspace
dialog. Resolves to the URI of the recently opened workspace,
if it was successful. Otherwise, resolves to undefined
.
Protected
doProtected
getProtected
getCalled 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.
Registers keybindings.
the keybinding registry.
Protected
savewhether the file was successfully saved.
Protected
updateProtected
updateProtected
updateProtected
update
The command contribution should be implemented to register custom commands and handler.