mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-03 01:25:38 -05:00
table designer perf improvement - add user setting for preload db model (#20608)
* add user setting for preload db model * vbump sts * more description
This commit is contained in:
@@ -21,6 +21,7 @@ const configLogFilesRemovalLimit = 'logFilesRemovalLimit';
|
||||
const extensionConfigSectionName = 'mssql';
|
||||
const configLogDebugInfo = 'logDebugInfo';
|
||||
const parallelMessageProcessingConfig = 'parallelMessageProcessing';
|
||||
const tableDesignerPreloadConfig = 'tableDesigner.preloadDatabaseModel';
|
||||
|
||||
/**
|
||||
*
|
||||
@@ -93,6 +94,22 @@ export function getConfigTracingLevel(): string {
|
||||
}
|
||||
}
|
||||
|
||||
export function getConfigPreloadDatabaseModel(): boolean {
|
||||
let config = getConfiguration();
|
||||
if (config) {
|
||||
return config.get<boolean>(tableDesignerPreloadConfig);
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
export function setConfigPreloadDatabaseModel(enable: boolean): void {
|
||||
let config = getConfiguration();
|
||||
if (config) {
|
||||
void config.update(tableDesignerPreloadConfig, enable, true);
|
||||
}
|
||||
}
|
||||
|
||||
export async function getParallelMessageProcessingConfig(): Promise<boolean> {
|
||||
const config = getConfiguration();
|
||||
if (!config) {
|
||||
|
||||
Reference in New Issue
Block a user