diff --git a/src/vs/workbench/parts/files/electron-browser/views/explorerView.ts b/src/vs/workbench/parts/files/electron-browser/views/explorerView.ts index e32a1a11cd209fa2717f9a13365daee19990f427..c538216e9fd1f521a727d19dcd8893ac4853e6de 100644 --- a/src/vs/workbench/parts/files/electron-browser/views/explorerView.ts +++ b/src/vs/workbench/parts/files/electron-browser/views/explorerView.ts @@ -350,15 +350,17 @@ export class ExplorerView extends ViewletPanel { /** * Refresh the contents of the explorer to get up to date data from the disk about the file structure. + * If the item is passed we refresh only that level of the tree, otherwise we do a full refresh. */ refresh(item?: ExplorerItem): Promise { if (!this.tree || !this.isBodyVisible()) { this.shouldRefresh = true; return Promise.resolve(undefined); } + const recursive = !item; const toRefresh = item || this.tree.getInput(); - return this.tree.refresh(toRefresh, true); + return this.tree.refresh(toRefresh, recursive); } getOptimalWidth(): number {