mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-21 01:25:37 -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._editorInput.resolve().then((model) => {
|
||||
this._editorModel = model.textEditorModel;
|
||||
this.updateEditor();
|
||||
});
|
||||
}
|
||||
|
||||
@@ -111,8 +112,14 @@ export class DesignerScriptEditor extends BaseTextEditor implements DesignerText
|
||||
|
||||
set content(val: string) {
|
||||
this._content = val;
|
||||
this._modelService.updateModel(this._editorModel, this._content);
|
||||
this._untitledTextEditorModel.setDirty(false);
|
||||
this.layout(new DOM.Dimension(this._container.clientWidth, this._container.clientHeight));
|
||||
this.updateEditor();
|
||||
}
|
||||
|
||||
private updateEditor(): void {
|
||||
if (this._editorModel) {
|
||||
this._modelService.updateModel(this._editorModel, this._content);
|
||||
this._untitledTextEditorModel.setDirty(false);
|
||||
this.layout(new DOM.Dimension(this._container.clientWidth, this._container.clientHeight));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user