Adding settings for enable experimental features. (#18008)

This commit is contained in:
Aasim Khan 2024-08-27 13:32:29 -07:00 коммит произвёл GitHub
Родитель b32ac9440c
Коммит df11eb42b1
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
5 изменённых файлов: 17 добавлений и 3 удалений

Просмотреть файл

@ -440,6 +440,9 @@
</trans-unit id="mssql.openExecutionPlanFile">
<source xml:lang="en">Open Execution Plan File</source>
</trans-unit>
<trans-unit id="mssql.enableExperimentalFeatures.description">
<source xml:lang="en">Enables experimental features in the MSSQL extension. The features are not production-ready and may have bugs or issues. Restart Visual Studio Code after changing this setting.</source>
</trans-unit>
</body>
</file>
</xliff>

Просмотреть файл

@ -739,6 +739,12 @@
"type": "object",
"title": "%mssql.Configuration%",
"properties": {
"mssql.enableExperimentalFeatures": {
"type": "boolean",
"default": false,
"description": "%mssql.enableExperimentalFeatures.description%",
"scope": "application"
},
"mssql.azureActiveDirectory": {
"type": "string",
"default": "AuthCodeGrant",

Просмотреть файл

@ -143,5 +143,6 @@
"mssql.objectExplorer.expandTimeout":"The timeout in seconds for expanding a node in Object Explorer. The default value is 45 seconds.",
"mssql.newTable":"New Table",
"mssql.editTable":"Edit Table",
"mssql.editConnection":"Edit Connection"
"mssql.editConnection":"Edit Connection",
"mssql.enableExperimentalFeatures.description":"Enables experimental features in the MSSQL extension. The features are not production-ready and may have bugs or issues. Restart Visual Studio Code after changing this setting."
}

Просмотреть файл

@ -158,7 +158,7 @@ export const configPersistQueryResultTabs = 'persistQueryResultTabs';
export const configQueryHistoryLimit = 'queryHistoryLimit';
export const configEnableQueryHistoryCapture = 'enableQueryHistoryCapture';
export const configEnableQueryHistoryFeature = 'enableQueryHistoryFeature';
export const configEnableExperimentalFeatures = 'enableExperimentalFeatures';
export const configEnableExperimentalFeatures = 'mssql.enableExperimentalFeatures';
// ToolsService Constants
export const serviceInstallingTo = 'Installing SQL tools service to';

Просмотреть файл

@ -92,7 +92,7 @@ export default class MainController implements vscode.Disposable {
}
this._vscodeWrapper = vscodeWrapper || new VscodeWrapper();
this._untitledSqlDocumentService = new UntitledSqlDocumentService(this._vscodeWrapper);
this.configuration = vscode.workspace.getConfiguration(Constants.extensionName);
this.configuration = vscode.workspace.getConfiguration();
}
/**
@ -1385,6 +1385,10 @@ export default class MainController implements vscode.Disposable {
if (e.affectsConfiguration(Constants.enableConnectionPooling)) {
await this.displayReloadMessage(LocalizedConstants.reloadPromptGeneric);
}
if(e.affectsConfiguration(Constants.configEnableExperimentalFeatures)) {
await this.displayReloadMessage(LocalizedConstants.reloadPromptGeneric);
}
}
}