From b4aeb1b3e7e812a82f36c48d844d8607492646bc Mon Sep 17 00:00:00 2001 From: Simon Siefke Date: Thu, 27 Jul 2023 13:29:02 +0200 Subject: [PATCH] fix eslint warnings --- src/browser/Viewport.ts | 2 +- src/browser/renderer/dom/DomRenderer.ts | 2 +- src/browser/services/RenderService.ts | 10 +++++----- src/common/services/BufferService.ts | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/browser/Viewport.ts b/src/browser/Viewport.ts index 25757bca..9c338e1f 100644 --- a/src/browser/Viewport.ts +++ b/src/browser/Viewport.ts @@ -57,7 +57,7 @@ export class Viewport extends Disposable implements IViewport { @ICharSizeService private readonly _charSizeService: ICharSizeService, @IRenderService private readonly _renderService: IRenderService, @ICoreBrowserService private readonly _coreBrowserService: ICoreBrowserService, - @IThemeService themeService: IThemeService + @IThemeService public themeService: IThemeService ) { super(); diff --git a/src/browser/renderer/dom/DomRenderer.ts b/src/browser/renderer/dom/DomRenderer.ts index 54711ed8..dc701ab4 100644 --- a/src/browser/renderer/dom/DomRenderer.ts +++ b/src/browser/renderer/dom/DomRenderer.ts @@ -48,7 +48,7 @@ export class DomRenderer extends Disposable implements IRenderer { private readonly _screenElement: HTMLElement, private readonly _viewportElement: HTMLElement, private readonly _linkifier2: ILinkifier2, - @IInstantiationService instantiationService: IInstantiationService, + @IInstantiationService public instantiationService: IInstantiationService, @ICharSizeService private readonly _charSizeService: ICharSizeService, @IOptionsService private readonly _optionsService: IOptionsService, @IBufferService private readonly _bufferService: IBufferService, diff --git a/src/browser/services/RenderService.ts b/src/browser/services/RenderService.ts index c31d061a..867d3b70 100644 --- a/src/browser/services/RenderService.ts +++ b/src/browser/services/RenderService.ts @@ -55,12 +55,12 @@ export class RenderService extends Disposable implements IRenderService { constructor( private _rowCount: number, screenElement: HTMLElement, - @IOptionsService optionsService: IOptionsService, + @IOptionsService public optionsService: IOptionsService, @ICharSizeService private readonly _charSizeService: ICharSizeService, - @IDecorationService decorationService: IDecorationService, - @IBufferService bufferService: IBufferService, - @ICoreBrowserService coreBrowserService: ICoreBrowserService, - @IThemeService themeService: IThemeService + @IDecorationService public decorationService: IDecorationService, + @IBufferService public bufferService: IBufferService, + @ICoreBrowserService public coreBrowserService: ICoreBrowserService, + @IThemeService public themeService: IThemeService ) { super(); diff --git a/src/common/services/BufferService.ts b/src/common/services/BufferService.ts index 528d2674..962d582d 100644 --- a/src/common/services/BufferService.ts +++ b/src/common/services/BufferService.ts @@ -32,7 +32,7 @@ export class BufferService extends Disposable implements IBufferService { /** An IBufferline to clone/copy from for new blank lines */ private _cachedBlankLine: IBufferLine | undefined; - constructor(@IOptionsService optionsService: IOptionsService) { + constructor(@IOptionsService public optionsService: IOptionsService) { super(); this.cols = Math.max(optionsService.rawOptions.cols || 0, MINIMUM_COLS); this.rows = Math.max(optionsService.rawOptions.rows || 0, MINIMUM_ROWS);