Skip to content

Commit 380583f

Browse files
committed
Review changes
1 parent 9f63907 commit 380583f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/controllers/connectionManager.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -882,11 +882,11 @@ export default class ConnectionManager {
882882
// Notify the language service that the editor with the specified URI doesn't have a language flavor to avoid error squiggles
883883
if (flavor === Constants.noneProviderName) {
884884
SqlToolsServerClient.instance.sendNotification(LanguageServiceContracts.LanguageFlavorChangedNotification.type,
885-
<LanguageServiceContracts.DidChangeLanguageFlavorParams>{
885+
{
886886
uri: fileUri,
887887
language: 'sql',
888888
flavor: Constants.noneProviderName
889-
});
889+
} as LanguageServiceContracts.DidChangeLanguageFlavorParams);
890890
}
891891
}
892892
this.vscodeWrapper.logToOutputChannel(

src/controllers/mainController.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1297,11 +1297,11 @@ export default class MainController implements vscode.Disposable {
12971297
// Notify the language service that the editor with the specified URI doesn't have a language flavor to avoid error squiggles.
12981298
if (flavor === Constants.noneProviderName) {
12991299
SqlToolsServerClient.instance.sendNotification(LanguageFlavorChangedNotification.type,
1300-
<DidChangeLanguageFlavorParams>{
1300+
{
13011301
uri: doc.uri.toString(true),
13021302
language: 'sql',
13031303
flavor: Constants.noneProviderName
1304-
});
1304+
} as DidChangeLanguageFlavorParams);
13051305
}
13061306
}
13071307

0 commit comments

Comments
 (0)