mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-26 09:35:38 -05:00
Fix lost results on query editor save (#21043)
* Fix lost results on query editor save * Fix typos
This commit is contained in:
@@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -314,7 +314,9 @@ suite('SQL QueryEditor Tests', () => {
|
||||
connectionManagementService.object,
|
||||
queryModelService.object,
|
||||
configurationService.object,
|
||||
testinstantiationService
|
||||
testinstantiationService,
|
||||
undefined,
|
||||
undefined
|
||||
);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user