From 06357b1184e1ae9e7a66c79f4ea542697be76342 Mon Sep 17 00:00:00 2001 From: meganrogge Date: Fri, 11 Feb 2022 14:08:46 -0600 Subject: [PATCH] get rid of some unnecessary code --- src/browser/services/DecorationService.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/browser/services/DecorationService.ts b/src/browser/services/DecorationService.ts index f29ec7ea..9dc4c4ac 100644 --- a/src/browser/services/DecorationService.ts +++ b/src/browser/services/DecorationService.ts @@ -17,7 +17,6 @@ export class DecorationService extends Disposable implements IDecorationService private _renderService: IRenderService | undefined; constructor( - @IBufferService private readonly _bufferService: IBufferService, @IInstantiationService private readonly _instantiationService: IInstantiationService) { super(); } @@ -28,7 +27,6 @@ export class DecorationService extends Disposable implements IDecorationService this._container = document.createElement('div'); this._container.classList.add('xterm-decoration-container'); screenElement.appendChild(this._container); - this.refresh(); this.register(this._renderService.onRenderedBufferChange(() => this.refresh())); this.register(this._renderService.onDimensionsChange(() => this.refresh(true))); } @@ -44,7 +42,7 @@ export class DecorationService extends Disposable implements IDecorationService } public refresh(recreate?: boolean): void { - if (!this._bufferService || !this._renderService) { + if (!this._renderService) { return; } for (const decoration of this._decorations) {