mirror of
https://github.com/wavetermdev/xterm.js.git
synced 2026-08-05 13:43:48 -07:00
move listener into terminal.ts
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user