From 88bd33f2d79f21794fc166c252601f8e1131909b Mon Sep 17 00:00:00 2001 From: meganrogge Date: Tue, 8 Feb 2022 17:27:15 -0600 Subject: [PATCH] bring jumpyness back --- src/browser/Terminal.ts | 1 - src/browser/services/DecorationService.ts | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/src/browser/Terminal.ts b/src/browser/Terminal.ts index 02f039f7..14a107f9 100644 --- a/src/browser/Terminal.ts +++ b/src/browser/Terminal.ts @@ -516,7 +516,6 @@ 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'); diff --git a/src/browser/services/DecorationService.ts b/src/browser/services/DecorationService.ts index cb3a9643..cfe10045 100644 --- a/src/browser/services/DecorationService.ts +++ b/src/browser/services/DecorationService.ts @@ -27,6 +27,7 @@ export class DecorationService extends Disposable implements IDecorationService @IRenderService private readonly _renderService: IRenderService ) { super(); + this.register(this._renderService.onRenderedBufferChange(() => this.refresh())); } public registerDecoration(decorationOptions: IDecorationOptions): IDecoration | undefined {