Fixing node refresh in stateless oe (#2255)

This commit is contained in:
Aasim Khan
2023-09-30 00:37:43 +00:00
committed by GitHub
parent c7857c249c
commit a794382f29

View File

@@ -82,7 +82,7 @@ namespace Microsoft.SqlTools.SqlCore.ObjectExplorer
node = rootNode.FindNodeByPath(nodePath, true, taskCancellationTokenSource.Token); node = rootNode.FindNodeByPath(nodePath, true, taskCancellationTokenSource.Token);
if (node != null) if (node != null)
{ {
return node.Expand(taskCancellationTokenSource.Token, token, filters); return node.Refresh(taskCancellationTokenSource.Token, token, filters);
} }
else else
{ {
@@ -131,7 +131,7 @@ namespace Microsoft.SqlTools.SqlCore.ObjectExplorer
await underlyingSqlConnection.OpenAsync(); await underlyingSqlConnection.OpenAsync();
} }
return node.Expand(taskCancellationTokenSource.Token, securityToken?.Token, filters); return node.Refresh(taskCancellationTokenSource.Token, securityToken?.Token, filters);
}); });
return await RunExpandTask(expandTask, taskCancellationTokenSource, options.OperationTimeoutSeconds); return await RunExpandTask(expandTask, taskCancellationTokenSource, options.OperationTimeoutSeconds);