From 958a3f85e5544b75a802d71ba0868c2fd2d4bcf6 Mon Sep 17 00:00:00 2001 From: Aasim Khan Date: Mon, 3 Apr 2023 17:15:52 -0700 Subject: [PATCH] Enabling async server tree in insiders (#22596) --- .../contrib/objectExplorer/common/serverGroup.contribution.ts | 4 ++-- .../services/objectExplorer/browser/treeCreationUtils.ts | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/sql/workbench/contrib/objectExplorer/common/serverGroup.contribution.ts b/src/sql/workbench/contrib/objectExplorer/common/serverGroup.contribution.ts index 8cc403f321..1515cacdc8 100644 --- a/src/sql/workbench/contrib/objectExplorer/common/serverGroup.contribution.ts +++ b/src/sql/workbench/contrib/objectExplorer/common/serverGroup.contribution.ts @@ -49,8 +49,8 @@ const serverTreeConfig: IConfigurationNode = { 'properties': { 'serverTree.useAsyncServerTree': { 'type': 'boolean', - 'default': false, - 'description': localize('serverTree.useAsyncServerTree', "(Preview) Use the new async server tree for the Servers view and Connection Dialog with support for new features such as dynamic node filtering.") + '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.") }, 'serverTree.nodeExpansionTimeout': { 'type': 'number', diff --git a/src/sql/workbench/services/objectExplorer/browser/treeCreationUtils.ts b/src/sql/workbench/services/objectExplorer/browser/treeCreationUtils.ts index c46cbcb158..fec5e1e800 100644 --- a/src/sql/workbench/services/objectExplorer/browser/treeCreationUtils.ts +++ b/src/sql/workbench/services/objectExplorer/browser/treeCreationUtils.ts @@ -25,7 +25,6 @@ import { AsyncRecentConnectionTreeDataSource } from 'sql/workbench/services/obje import { AsyncServerTreeDataSource } from 'sql/workbench/services/objectExplorer/browser/asyncServerTreeDataSource'; import { AsyncServerTree, ServerTreeElement } from 'sql/workbench/services/objectExplorer/browser/asyncServerTree'; import { IConfigurationService } from 'vs/platform/configuration/common/configuration'; -import { CONFIG_WORKBENCH_ENABLEPREVIEWFEATURES } from 'sql/workbench/common/constants'; export class TreeCreationUtils { /** @@ -143,5 +142,5 @@ export class TreeCreationUtils { } function useAsyncServerTree(configurationService: IConfigurationService): boolean { - return configurationService.getValue(CONFIG_WORKBENCH_ENABLEPREVIEWFEATURES) && configurationService.getValue('serverTree.useAsyncServerTree'); + return configurationService.getValue('serverTree.useAsyncServerTree'); }