Adding settings for enable experimental features. (#18008)
This commit is contained in:
Родитель
b32ac9440c
Коммит
df11eb42b1
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче