@@ -13,7 +13,7 @@ import * as Constants from '../constants/constants';
13
13
import * as LocalizedConstants from '../constants/locConstants' ;
14
14
import SqlToolsServerClient from '../languageservice/serviceclient' ;
15
15
import * as ConnInfo from '../models/connectionInfo' ;
16
- import { CompletionExtensionParams , CompletionExtLoadRequest , DidChangeLanguageFlavorParams , LanguageFlavorChangedNotification , RebuildIntelliSenseNotification } from '../models/contracts/languageService' ;
16
+ import { CompletionExtensionParams , CompletionExtLoadRequest , RebuildIntelliSenseNotification } from '../models/contracts/languageService' ;
17
17
import { ScriptOperation } from '../models/contracts/scripting/scriptingRequest' ;
18
18
import { SqlOutputContentProvider } from '../models/sqlOutputContentProvider' ;
19
19
import * as Utils from '../models/utils' ;
@@ -1288,20 +1288,8 @@ export default class MainController implements vscode.Disposable {
1288
1288
this . _connectionMgr . onDidOpenTextDocument ( doc ) ;
1289
1289
1290
1290
if ( doc && doc . languageId === Constants . languageId ) {
1291
- const isLanguageSetToNone = this . configuration . get ( 'mssql.intelliSense.setQueryEditorLanguageToNone' ) ;
1292
- const flavor = isLanguageSetToNone ? Constants . noneProviderName : Constants . mssqlProviderName ;
1293
1291
// set encoding to false
1294
- this . _statusview . languageFlavorChanged ( doc . uri . toString ( true ) , flavor ) ;
1295
-
1296
- // Notify the language service that the editor with the specified URI doesn't have a language flavor to avoid error squiggles.
1297
- if ( flavor === Constants . noneProviderName ) {
1298
- SqlToolsServerClient . instance . sendNotification ( LanguageFlavorChangedNotification . type ,
1299
- < DidChangeLanguageFlavorParams > {
1300
- uri : doc . uri . toString ( true ) ,
1301
- language : 'sql' ,
1302
- flavor : Constants . noneProviderName
1303
- } ) ;
1304
- }
1292
+ this . _statusview . languageFlavorChanged ( doc . uri . toString ( true ) , Constants . mssqlProviderName ) ;
1305
1293
}
1306
1294
1307
1295
if ( doc && doc . languageId === Constants . sqlPlanLanguageId ) {
0 commit comments