Skip to content

Commit 08cbfc7

Browse files
committed
1 parent c8826e4 commit 08cbfc7

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -667,7 +667,13 @@ export class ExplorerView extends ViewPane {
667667
item = first(values(item.children), i => isEqualOrParent(resource, i.resource));
668668
}
669669

670-
if (item && item.parent) {
670+
if (item) {
671+
if (item === this.tree.getInput()) {
672+
this.tree.setFocus([]);
673+
this.tree.setSelection([]);
674+
return;
675+
}
676+
671677
try {
672678
if (reveal) {
673679
if (item.isDisposed) {

0 commit comments

Comments
 (0)