Skip to content

Commit 593fd6c

Browse files
authored
Fix undefined filter (microsoft#189324)
1 parent e1b9eed commit 593fd6c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/vs/workbench/contrib/files/browser/views/explorerView.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,10 @@ export class ExplorerView extends ViewPane implements IExplorerView {
333333
}
334334

335335
isItemVisible(item: ExplorerItem): boolean {
336+
// If filter is undefined it means the tree hasn't been rendered yet, so nothing is visible
337+
if (!this.filter) {
338+
return false;
339+
}
336340
return this.filter.filter(item, TreeVisibility.Visible);
337341
}
338342

0 commit comments

Comments
 (0)