Skip to content

Commit bc6a2ed

Browse files
committedSep 10, 2024·
Minor clean up
1 parent 5a44708 commit bc6a2ed

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed
 

‎package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1197,10 +1197,10 @@
11971197
"description": "%mssql.intelliSense.lowerCaseSuggestions%",
11981198
"scope": "window"
11991199
},
1200-
"mssql.intelliSense.setQueryEditorLanguageToNone": {
1200+
"mssql.intelliSense.defaultQueryEditorLanguageToNone": {
12011201
"type": "boolean",
12021202
"default": false,
1203-
"description": "%mssql.intelliSense.setQueryEditorLanguageToNone%",
1203+
"description": "%mssql.intelliSense.defaultQueryEditorLanguageToNone%",
12041204
"scope": "window"
12051205
},
12061206
"mssql.persistQueryResultTabs": {

‎package.nls.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@
101101
"mssql.enableQueryHistoryFeature":"Should Query History feature be enabled",
102102
"mssql.intelliSense.lowerCaseSuggestions":"Should IntelliSense suggestions be lowercase",
103103
"mssql.persistQueryResultTabs":"Should query result selections and scroll positions be saved when switching tabs (may impact performance)",
104-
"mssql.intelliSense.setQueryEditorLanguageToNone":"Should the editor language be set to None when a query editor is opened.",
104+
"mssql.intelliSense.defaultQueryEditorLanguageToNone":"Should the default editor language be set to None when a query editor is opened.",
105105
"mssql.queryHistoryLimit":"Number of query history entries to show in the Query History view",
106106
"mssql.createAzureFunction":"Create Azure Function with SQL binding",
107107
"mssql.query.maxXmlCharsToStore":"Maximum number of characters to store for each value in XML columns after running a query. Default value: 2,097,152. Valid value range: 1 to 2,147,483,647.",

‎src/controllers/connectionManager.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -874,7 +874,7 @@ export default class ConnectionManager {
874874
if (this.statusView) {
875875
const configuration = vscode.workspace.getConfiguration(Constants.extensionConfigSectionName);
876876
const intelliSenseConfig = configuration.get<IntelliSenseConfig>(Constants.configIntelliSense);
877-
const flavor = intelliSenseConfig.setQueryEditorLanguageToNone ? Constants.noneProviderName : Constants.mssqlProviderName;
877+
const flavor = intelliSenseConfig.defaultQueryEditorLanguageToNone ? Constants.noneProviderName : Constants.mssqlProviderName;
878878
this.statusView.languageFlavorChanged(fileUri, flavor);
879879
this.statusView.connecting(fileUri, connectionCreds);
880880
this.statusView.languageFlavorChanged(fileUri, flavor);

‎src/controllers/mainController.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1288,8 +1288,8 @@ export default class MainController implements vscode.Disposable {
12881288
this._connectionMgr.onDidOpenTextDocument(doc);
12891289

12901290
if (doc && doc.languageId === Constants.languageId) {
1291-
const isLanguageSetToNone = this.configuration.get('mssql.intelliSense.setQueryEditorLanguageToNone');
1292-
const flavor = isLanguageSetToNone ? Constants.noneProviderName : Constants.mssqlProviderName;
1291+
const isQueryEditorLanguageDefaultNone = this.configuration.get('mssql.intelliSense.defaultQueryEditorLanguageToNone');
1292+
const flavor = isQueryEditorLanguageDefaultNone ? Constants.noneProviderName : Constants.mssqlProviderName;
12931293
// set encoding to false
12941294
this._statusview.languageFlavorChanged(doc.uri.toString(true), flavor);
12951295

‎src/models/interfaces.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { AzureAuthType } from './contracts/azure';
1111

1212
// interfaces
1313
export interface IntelliSenseConfig {
14-
setQueryEditorLanguageToNone: boolean;
14+
defaultQueryEditorLanguageToNone: boolean;
1515
}
1616

1717
export enum ContentType {

0 commit comments

Comments
 (0)