Skip to content

Commit

Permalink
bugfix: Refresh the explorer correctly when it has default package (#307
Browse files Browse the repository at this point in the history
)
  • Loading branch information
jdneo authored Aug 19, 2020
1 parent 3e36d9d commit f7b80ba
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/views/nodeCache/explorerNodeCache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ class ExplorerNodeCache {
}

public saveNode(node: ExplorerNode): void {
if (node instanceof DataNode && node.uri) {
// default package has the same uri as the root package,
// we skip default package and store the root package here.
if (node instanceof DataNode && node.uri && node.name !== "default-package") {
this.mutableNodeCache.insert(node);
}
}
Expand Down

0 comments on commit f7b80ba

Please sign in to comment.