mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
Fix lost results on query editor save (#21043)
* Fix lost results on query editor save * Fix typos
This commit is contained in:
@@ -41,6 +41,7 @@ import { IUntitledTextEditorModel } from 'vs/workbench/services/untitled/common/
|
||||
import { Schemas } from 'vs/base/common/network';
|
||||
import { Registry } from 'vs/platform/registry/common/platform';
|
||||
import { IUntitledTextEditorService } from 'vs/workbench/services/untitled/common/untitledTextEditorService';
|
||||
import { FileQueryEditorInput } from 'sql/workbench/contrib/query/browser/fileQueryEditorInput'; // {{SQL CARBON EDIT}} - add type
|
||||
|
||||
type CachedEditorInput = TextResourceEditorInput | IFileEditorInput | UntitledTextEditorInput;
|
||||
|
||||
@@ -1129,6 +1130,11 @@ export class EditorService extends Disposable implements EditorServiceImpl {
|
||||
break; // failed or cancelled, abort
|
||||
}
|
||||
|
||||
// {{SQL CARBON EDIT}} - disable editor resolution when replacing editors to maintain previous state
|
||||
if (result instanceof FileQueryEditorInput) {
|
||||
editorOptions.override = EditorResolution.DISABLED;
|
||||
}
|
||||
|
||||
// Replace editor preserving viewstate (either across all groups or
|
||||
// only selected group) if the resulting editor is different from the
|
||||
// current one.
|
||||
|
||||
Reference in New Issue
Block a user