ExplorerService
class
Provides an API to interact with the explorer view tree.
Properties
| Name | Type | Description |
|---|---|---|
adapter (readonly) |
ITreeAdapter<IFile> |
|
id (readonly) |
"workbench.contrib.explorer-service" |
Unique identifier of the contribution. |
root (readonly) |
Observable<IFile[]> |
|
fileNestingPatterns |
unknown |
|
onDidContextMenu |
unknown |
|
tree |
unknown |
canCopy()
Signature
canCopy(): booleanReturns
boolean
canCreateFile()
Signature
canCreateFile(): booleanReturns
boolean
canDelete()
Signature
canDelete(): booleanReturns
boolean
canDownload()
Signature
canDownload(): booleanReturns
boolean
canEdit()
Signature
canEdit(): booleanReturns
boolean
canPaste()
Signature
canPaste(): booleanReturns
boolean
canUpload()
Signature
canUpload(): booleanReturns
boolean
collapse()
Signature
collapse(node: IFile): voidParameters
node(IFile) - The node to collapse.
Returns
void
collapseAll()
Signature
collapseAll(): voidReturns
void
copy()
Signature
copy(): voidReturns
void
createFile()
Signature
createFile(): Promise<void>Returns
Promise<void>
createFolder()
Signature
createFolder(): Promise<void>Returns
Promise<void>
deactivate()
Signature
deactivate(): voidReturns
void
download()
Signature
download(): voidReturns
void
expand()
Signature
expand(node: IFile): voidParameters
node(IFile) - The node to expand.
Returns
void
expandAll()
Signature
expandAll(): voidReturns
void
focusedNode()
Signature
focusedNode(): IFile | undefinedReturns
IFile | undefined
hasSelection()
Signature
hasSelection(): booleanReturns
boolean
listCommands()
Signature
listCommands(): IExplorerCommand[][]Returns
IExplorerCommand[][]
paste()
Signature
paste(): voidReturns
void
refresh()
Signature
refresh(): voidReturns
void
registerCommands()
Signature
registerCommands(...commands: (IExplorerCommand | Type<IExplorerCommand>)[]): voidParameters
...commands((IExplorerCommand | Type<IExplorerCommand>)[]) - The commands to register.
Returns
void
registerFileNestingPatterns()
Signature
registerFileNestingPatterns(...patterns: FileNestingPattern[]): voidParameters
...patterns(FileNestingPattern[])
Returns
void
selections()
Signature
selections(): IFile[]Returns
IFile[]
startEdit()
Signature
startEdit(): voidReturns
void
unregisterCommands()
Signature
unregisterCommands(...ids: string[]): voidParameters
...ids(string[])
Returns
void
unregisterFileNestingPatterns()
Signature
unregisterFileNestingPatterns(...ids: string[]): voidParameters
...ids(string[])
Returns
void
uploadFiles()
Signature
uploadFiles(file: File): voidParameters
file(File)
Returns
void