Skip to content

Commit 6c59029

Browse files
committed
Conditionally turn off lang service for saved queries
1 parent 20f8cc8 commit 6c59029

File tree

2 files changed

+1515
-1502
lines changed

2 files changed

+1515
-1502
lines changed

src/controllers/connectionManager.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -880,12 +880,13 @@ export default class ConnectionManager {
880880
this.statusView.connecting(fileUri, connectionCreds);
881881
this.statusView.languageFlavorChanged(fileUri, flavor);
882882

883+
// Notify the language service that the editor with the specified URI doesn't have a language flavor to avoid error squiggles
883884
if (flavor === Constants.noneProviderName) {
884885
SqlToolsServerClient.instance.sendNotification(LanguageServiceContracts.LanguageFlavorChangedNotification.type,
885886
<LanguageServiceContracts.DidChangeLanguageFlavorParams>{
886887
uri: fileUri,
887888
language: 'sql',
888-
flavor: flavor
889+
flavor: Constants.noneProviderName
889890
})
890891
}
891892
}

0 commit comments

Comments
 (0)