update filebrowser expand contract and methods (#500)

This commit is contained in:
Kate Shin
2017-10-16 17:05:02 -07:00
committed by GitHub
parent 5d11654a10
commit e52d95cebf
5 changed files with 46 additions and 42 deletions

View File

@@ -230,9 +230,9 @@ namespace Microsoft.SqlTools.ServiceLayer.FileBrowser
if (this.ownerToFileBrowserMap.ContainsKey(fileBrowserParams.OwnerUri))
{
FileBrowserOperation browser = this.ownerToFileBrowserMap[fileBrowserParams.OwnerUri];
browser.ExpandSelectedNode(fileBrowserParams.ExpandPath);
result.Children = browser.GetChildren(fileBrowserParams.ExpandPath).ToArray();
result.ExpandPath = fileBrowserParams.ExpandPath;
result.OwnerUri = fileBrowserParams.OwnerUri;
result.ExpandedNode = browser.FileTree.SelectedNode;
result.Succeeded = true;
}
else