Fixing async server tree error handling and removing timeout. (#22955)

* Fixing async server tree issues and removing timeout

* removing empty results for connection errors

* Fixing error message fetching

* Update src/sql/workbench/services/objectExplorer/browser/asyncServerTreeDataSource.ts

Co-authored-by: Charles Gagnon <chgagnon@microsoft.com>

---------

Co-authored-by: Charles Gagnon <chgagnon@microsoft.com>
This commit is contained in:
Aasim Khan
2023-05-04 15:50:37 -07:00
committed by GitHub
parent 86cd0003fe
commit 302855e4a4
6 changed files with 79 additions and 123 deletions

View File

@@ -288,9 +288,7 @@ suite('SQL Object Explorer Service tests', () => {
connectionManagementService.object,
new NullAdsTelemetryService(),
capabilitiesService,
logService,
configurationService.object,
notificationService.object);
logService);
objectExplorerService.registerProvider(mssqlProviderName, sqlOEProvider.object);
sqlOEProvider.setup(x => x.createNewSession(TypeMoq.It.is<azdata.ConnectionInfo>(x => x.options['serverName'] === connection.serverName))).returns(() => new Promise<any>((resolve) => {