Skip to content

Commit f7b80ba

Browse files
authored
bugfix: Refresh the explorer correctly when it has default package (#307)
1 parent 3e36d9d commit f7b80ba

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/views/nodeCache/explorerNodeCache.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ class ExplorerNodeCache {
2727
}
2828

2929
public saveNode(node: ExplorerNode): void {
30-
if (node instanceof DataNode && node.uri) {
30+
// default package has the same uri as the root package,
31+
// we skip default package and store the root package here.
32+
if (node instanceof DataNode && node.uri && node.name !== "default-package") {
3133
this.mutableNodeCache.insert(node);
3234
}
3335
}

0 commit comments

Comments
 (0)