mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
Enabling async server tree in insiders (#22596)
This commit is contained in:
@@ -49,8 +49,8 @@ const serverTreeConfig: IConfigurationNode = {
|
|||||||
'properties': {
|
'properties': {
|
||||||
'serverTree.useAsyncServerTree': {
|
'serverTree.useAsyncServerTree': {
|
||||||
'type': 'boolean',
|
'type': 'boolean',
|
||||||
'default': false,
|
'default': true,
|
||||||
'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.")
|
'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': {
|
'serverTree.nodeExpansionTimeout': {
|
||||||
'type': 'number',
|
'type': 'number',
|
||||||
|
|||||||
@@ -25,7 +25,6 @@ import { AsyncRecentConnectionTreeDataSource } from 'sql/workbench/services/obje
|
|||||||
import { AsyncServerTreeDataSource } from 'sql/workbench/services/objectExplorer/browser/asyncServerTreeDataSource';
|
import { AsyncServerTreeDataSource } from 'sql/workbench/services/objectExplorer/browser/asyncServerTreeDataSource';
|
||||||
import { AsyncServerTree, ServerTreeElement } from 'sql/workbench/services/objectExplorer/browser/asyncServerTree';
|
import { AsyncServerTree, ServerTreeElement } from 'sql/workbench/services/objectExplorer/browser/asyncServerTree';
|
||||||
import { IConfigurationService } from 'vs/platform/configuration/common/configuration';
|
import { IConfigurationService } from 'vs/platform/configuration/common/configuration';
|
||||||
import { CONFIG_WORKBENCH_ENABLEPREVIEWFEATURES } from 'sql/workbench/common/constants';
|
|
||||||
|
|
||||||
export class TreeCreationUtils {
|
export class TreeCreationUtils {
|
||||||
/**
|
/**
|
||||||
@@ -143,5 +142,5 @@ export class TreeCreationUtils {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function useAsyncServerTree(configurationService: IConfigurationService): boolean {
|
function useAsyncServerTree(configurationService: IConfigurationService): boolean {
|
||||||
return configurationService.getValue<boolean>(CONFIG_WORKBENCH_ENABLEPREVIEWFEATURES) && configurationService.getValue<boolean>('serverTree.useAsyncServerTree');
|
return configurationService.getValue<boolean>('serverTree.useAsyncServerTree');
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user