mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-08 17:19:48 +01:00
Fix exception when moving from terminal editor to view
This commit is contained in:
@@ -647,7 +647,9 @@ export class TerminalInstance extends Disposable implements ITerminalInstance {
|
||||
}
|
||||
|
||||
// The container changed, reattach
|
||||
this._container?.removeChild(this._wrapperElement);
|
||||
const wrapperElement = this._wrapperElement;
|
||||
this.detachFromElement();
|
||||
this._wrapperElement = wrapperElement;
|
||||
this._container = container;
|
||||
this._container.appendChild(this._wrapperElement);
|
||||
setTimeout(() => this._initDragAndDrop(container));
|
||||
|
||||
Reference in New Issue
Block a user