mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 18:46:40 -05:00
fix move editor group issue (#18242)
This commit is contained in:
@@ -64,6 +64,7 @@ export class DesignerScriptEditor extends BaseTextEditor implements DesignerText
|
|||||||
this.setInput(this._editorInput, undefined, undefined).catch(onUnexpectedError);
|
this.setInput(this._editorInput, undefined, undefined).catch(onUnexpectedError);
|
||||||
this._editorInput.resolve().then((model) => {
|
this._editorInput.resolve().then((model) => {
|
||||||
this._editorModel = model.textEditorModel;
|
this._editorModel = model.textEditorModel;
|
||||||
|
this.updateEditor();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -111,8 +112,14 @@ export class DesignerScriptEditor extends BaseTextEditor implements DesignerText
|
|||||||
|
|
||||||
set content(val: string) {
|
set content(val: string) {
|
||||||
this._content = val;
|
this._content = val;
|
||||||
|
this.updateEditor();
|
||||||
|
}
|
||||||
|
|
||||||
|
private updateEditor(): void {
|
||||||
|
if (this._editorModel) {
|
||||||
this._modelService.updateModel(this._editorModel, this._content);
|
this._modelService.updateModel(this._editorModel, this._content);
|
||||||
this._untitledTextEditorModel.setDirty(false);
|
this._untitledTextEditorModel.setDirty(false);
|
||||||
this.layout(new DOM.Dimension(this._container.clientWidth, this._container.clientHeight));
|
this.layout(new DOM.Dimension(this._container.clientWidth, this._container.clientHeight));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user