Opens a file after prompting the Open File
dialog. Resolves to undefined
, if
Otherwise, resolves to the URI of the file.
Opens one or more folders after prompting the Open Folder
dialog. Resolves to undefined
, if
Otherwise, resolves to the URI of the new workspace:
Opens 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
.
Caveat: this behaves differently on different platforms, the workspace.supportMultiRootWorkspace
preference value does matter,
and electron
/browser
version has impact too. See here for more details.
Legend:
workspace.supportMultiRootWorkspace
is false
: => N
workspace.supportMultiRootWorkspace
is true
: => Y
F
W
FW
|---------|-----------|-----------|------------|------------|
browser Y | browser N | electron Y | electron N | |
---|---|---|---|---|
Linux | FW | F | W | F |
Windows | FW | F | W | F |
OS X | FW | F | FW | FW |
--------- | ----------- | ----------- | ------------ | ------------ |
Get the current workspace URI.
the current workspace URI.
whether the file was successfully saved.
This is the generic
Open
method. Opens files and directories too. Resolves to the opened URI. Except when you are on either Windows or LinuxAND
running in electron. If so, it opens a file.