Skip to content

Commit

Permalink
explorer: fixed 'doOpenNode' implementation
Browse files Browse the repository at this point in the history
The following commit fixes an issue with the `explorer` where the
workspace folder node is incorrectly opened (despite not being visible) causing
an issue where the explorer is empty.

Signed-off-by: vince-fugnitto <vincent.fugnitto@ericsson.com>
  • Loading branch information
vince-fugnitto committed Oct 26, 2020
1 parent b774c55 commit deccec6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/navigator/src/browser/navigator-model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,9 @@ export class FileNavigatorModel extends FileTreeModel {
}

protected doOpenNode(node: TreeNode): void {
if (FileNode.is(node)) {
if (node.visible === false) {
return;
} else if (FileNode.is(node)) {
open(this.openerService, node.uri);
} else {
super.doOpenNode(node);
Expand Down

0 comments on commit deccec6

Please sign in to comment.