mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-01-16 09:35:36 -05:00
Expand nodes for findNodes instead of refreshing (#599)
This commit is contained in:
committed by
Karl Burtram
parent
2d4918ad83
commit
92456d50aa
@@ -181,7 +181,7 @@ namespace Microsoft.SqlTools.ServiceLayer.ObjectExplorer.Nodes
|
||||
nodePath = path;
|
||||
}
|
||||
|
||||
public TreeNode FindNodeByPath(string path, bool refreshChildren = false)
|
||||
public TreeNode FindNodeByPath(string path, bool expandIfNeeded = false)
|
||||
{
|
||||
TreeNode nodeForPath = ObjectExplorerUtils.FindNode(this, node =>
|
||||
{
|
||||
@@ -189,7 +189,7 @@ namespace Microsoft.SqlTools.ServiceLayer.ObjectExplorer.Nodes
|
||||
}, nodeToFilter =>
|
||||
{
|
||||
return path.StartsWith(nodeToFilter.GetNodePath());
|
||||
}, refreshChildren);
|
||||
}, expandIfNeeded);
|
||||
|
||||
return nodeForPath;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user