mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-06-18 17:45:08 -04:00
Merge from vscode a4177f50c475fc0fa278a78235e3bee9ffdec781 (#8649)
* Merge from vscode a4177f50c475fc0fa278a78235e3bee9ffdec781 * distro * fix tests
This commit is contained in:
@@ -417,9 +417,12 @@ export class CodeEditorWidget extends Disposable implements editorBrowser.ICodeE
|
||||
// Current model is the new model
|
||||
return;
|
||||
}
|
||||
|
||||
const hasTextFocus = this.hasTextFocus();
|
||||
const detachedModel = this._detachModel();
|
||||
this._attachModel(model);
|
||||
if (hasTextFocus && this.hasModel()) {
|
||||
this.focus();
|
||||
}
|
||||
|
||||
const e: editorCommon.IModelChangedEvent = {
|
||||
oldModelUrl: detachedModel ? detachedModel.uri : null,
|
||||
|
||||
Reference in New Issue
Block a user