mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-09 01:32:34 -05:00
fix upgrade path for new serialization model (#8489)
This commit is contained in:
@@ -17,6 +17,7 @@ import { coalesce, firstIndex } from 'vs/base/common/arrays';
|
||||
import { UntitledEditorInput } from 'vs/workbench/common/editor/untitledEditorInput';
|
||||
import { FileEditorInput } from 'vs/workbench/contrib/files/common/editors/fileEditorInput';
|
||||
import { QueryEditorInput } from 'sql/workbench/contrib/query/common/queryEditorInput';
|
||||
import { doHandleUpgrade } from 'sql/workbench/common/languageAssociation';
|
||||
|
||||
const EditorOpenPositioning = {
|
||||
LEFT: 'left',
|
||||
@@ -688,7 +689,7 @@ export class EditorGroup extends Disposable {
|
||||
this.editors = coalesce(data.editors.map(e => {
|
||||
const factory = registry.getEditorInputFactory(e.id);
|
||||
if (factory) {
|
||||
const editor = factory.deserialize(this.instantiationService, e.value);
|
||||
const editor = this.instantiationService.invokeFunction(doHandleUpgrade, factory.deserialize(this.instantiationService, e.value)); // {{SQL CARBON EDIT}} handle upgrade path to new serialization
|
||||
if (editor) {
|
||||
this.registerEditorListeners(editor);
|
||||
this.updateResourceMap(editor, false /* add */);
|
||||
|
||||
Reference in New Issue
Block a user