Protected ReadonlycontextProtected ReadonlyencodingProtected ReadonlyfileProtected ReadonlyfileProtected ReadonlymessageProtected ReadonlyopenerProtected ReadonlypreferenceProtected ReadonlyquickProtected ReadonlysaveProtected ReadonlytoProtected ReadonlyworkspaceProtected ReadonlyworkspaceProtectedcloseCalled before commands, key bindings and menus are initialized. Should return a promise if it runs asynchronously.
ProtectedcreateProtecteddoThis 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.
ProtecteddoOpens a set of files after prompting the Open File dialog. Resolves to undefined, if
Otherwise, resolves to the set of URIs of the files.
ProtecteddoOpens one or more folders after prompting the Open Folder dialog. Resolves to undefined, if
Otherwise, resolves to the URI of the new workspace:
ProtecteddoOpens 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.
ProtecteddoProtectedgetProtectedgetCalled 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.
Protectedsavewhether the file was successfully saved.
ProtectedupdateProtectedupdateProtectedupdateProtectedupdate
The command contribution should be implemented to register custom commands and handler.