Fix lost results on query editor save (#21043)

* Fix lost results on query editor save

* Fix typos
This commit is contained in:
Karl Burtram
2022-10-31 14:51:12 -07:00
committed by GitHub
parent 4ade808695
commit e0e333c35f
4 changed files with 36 additions and 14 deletions

View File

@@ -312,10 +312,10 @@ export class QueryEditor extends EditorPane {
// TODO: Allow query provider to provide the language mode.
if (this.input instanceof UntitledQueryEditorInput) {
if ((providerId === 'KUSTO') || this.languageService.getExtensions('Kusto').indexOf(fileExtension) > -1) {
if ((providerId === 'KUSTO') || this.languageService.getExtensions('kusto').indexOf(fileExtension) > -1) {
this.input.setMode('kusto');
}
else if (providerId === 'LOGANALYTICS' || this.languageService.getExtensions('LogAnalytics').indexOf(fileExtension) > -1) {
else if (providerId === 'LOGANALYTICS' || this.languageService.getExtensions('loganalytics').indexOf(fileExtension) > -1) {
this.input.setMode('loganalytics');
}
}

View File

@@ -314,7 +314,9 @@ suite('SQL QueryEditor Tests', () => {
connectionManagementService.object,
queryModelService.object,
configurationService.object,
testinstantiationService
testinstantiationService,
undefined,
undefined
);
});