Fix bug where failed OE expands could not be retried (#2780)

This commit is contained in:
Matt Irvine
2018-10-08 11:16:11 -07:00
committed by GitHub
parent 8a8745701b
commit dad831bc8c
3 changed files with 20 additions and 7 deletions

View File

@@ -350,7 +350,9 @@ export class ObjectExplorerService implements IObjectExplorerService {
}
public resolveTreeNodeChildren(session: sqlops.ObjectExplorerSession, parentTree: TreeNode): Thenable<TreeNode[]> {
return this.expandOrRefreshTreeNode(session, parentTree);
// Always refresh the node if it has an error, otherwise expand it normally
let needsRefresh = !!parentTree.errorStateMessage;
return this.expandOrRefreshTreeNode(session, parentTree, needsRefresh);
}
public refreshTreeNode(session: sqlops.ObjectExplorerSession, parentTree: TreeNode): Thenable<TreeNode[]> {