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

@@ -41,7 +41,6 @@ const serverGroupConfig: IConfigurationNode = {
}
};
export const NODE_EXPANSION_CONFIG = 'serverTree.nodeExpansionTimeout';
export const USE_ASYNC_SERVER_TREE_CONFIG = 'serverTree.useAsyncServerTree';
const serverTreeConfig: IConfigurationNode = {
'id': 'serverTree',
@@ -52,12 +51,6 @@ const serverTreeConfig: IConfigurationNode = {
'type': 'boolean',
'default': true,
'description': localize('serverTree.useAsyncServerTree', "Use the new async server tree for the Servers view and Connection Dialog with support for new features such as dynamic node filtering. Requires a restart to take effect.")
},
'serverTree.nodeExpansionTimeout': {
'type': 'number',
'default': '45',
'description': localize('serverTree.nodeExpansionTimeout', "The timeout in seconds for expanding a node in the Servers view"),
'minimum': 1
}
}
};