Refresh xterm theme when reattaching

Fixes #126473
This commit is contained in:
Daniel Imms 2021-06-17 07:24:51 -07:00
parent cc39291fd9
commit 707af666fa

View file

@ -652,6 +652,11 @@ export class TerminalInstance extends Disposable implements ITerminalInstance {
return this._attachToElement(container);
}
// Update the theme when attaching as the terminal location could have changed
if (this._xterm) {
this._updateTheme(this._xterm);
}
// The container changed, reattach
this._detachWrapperElement();
this._container = container;