move listener into terminal.ts

This commit is contained in:
meganrogge
2022-02-08 14:35:33 -06:00
parent 571bf9e533
commit d8234affa4
2 changed files with 1 additions and 1 deletions
+1
View File
@@ -516,6 +516,7 @@ export class Terminal extends CoreTerminal implements ITerminal {
this.onResize(e => this._renderService!.resize(e.cols, e.rows));
this._decorationService = this.register(this._instantiationService.createInstance(DecorationService, this.screenElement));
this.register(this._renderService.onRefreshRequest(() => this._decorationService?.refresh()));
this._compositionView = document.createElement('div');
this._compositionView.classList.add('composition-view');
@@ -27,7 +27,6 @@ export class DecorationService extends Disposable implements IDecorationService
@IRenderService private readonly _renderService: IRenderService
) {
super();
this._renderService.onRefreshRequest(() => this.refresh());
}
public registerDecoration(decorationOptions: IDecorationOptions): IDecoration | undefined {