From 723e9158958a6544a278befa41299965221a93bd Mon Sep 17 00:00:00 2001 From: meganrogge Date: Tue, 8 Feb 2022 14:25:24 -0600 Subject: [PATCH] more decorationsService -> singular --- src/browser/Terminal.ts | 12 ++++++------ .../{DecorationsService.ts => DecorationService.ts} | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) rename src/browser/services/{DecorationsService.ts => DecorationService.ts} (99%) diff --git a/src/browser/Terminal.ts b/src/browser/Terminal.ts index abf985b7..fec8ee2a 100644 --- a/src/browser/Terminal.ts +++ b/src/browser/Terminal.ts @@ -55,7 +55,7 @@ import { CoreTerminal } from 'common/CoreTerminal'; import { color, rgba } from 'browser/Color'; import { CharacterJoinerService } from 'browser/services/CharacterJoinerService'; import { toRgbString } from 'common/input/XParseColor'; -import { DecorationService, IDecorationService } from 'browser/services/DecorationsService'; +import { DecorationService, IDecorationService } from 'browser/services/DecorationService'; // Let it work inside Node.js for automated testing purposes. const document: Document = (typeof window !== 'undefined') ? window.document : null as any; @@ -81,7 +81,7 @@ export class Terminal extends CoreTerminal implements ITerminal { private _charSizeService: ICharSizeService | undefined; private _mouseService: IMouseService | undefined; private _renderService: IRenderService | undefined; - private _decorationsService: IDecorationService | undefined; + private _decorationService: IDecorationService | undefined; private _characterJoinerService: ICharacterJoinerService | undefined; private _selectionService: ISelectionService | undefined; private _soundService: ISoundService | undefined; @@ -515,7 +515,7 @@ export class Terminal extends CoreTerminal implements ITerminal { this.register(this._renderService.onRenderedBufferChange(e => this._onRender.fire(e))); this.onResize(e => this._renderService!.resize(e.cols, e.rows)); - this._decorationsService = this.register(this._instantiationService.createInstance(DecorationService, this.screenElement)); + this._decorationService = this.register(this._instantiationService.createInstance(DecorationService, this.screenElement)); this._compositionView = document.createElement('div'); this._compositionView.classList.add('composition-view'); @@ -569,11 +569,11 @@ export class Terminal extends CoreTerminal implements ITerminal { this.register(this._onScroll.event(ev => { this.viewport!.syncScrollArea(); this._selectionService!.refresh(); - this._decorationsService!.refresh(); + this._decorationService!.refresh(); })); this.register(addDisposableDomListener(this._viewportElement, 'scroll', () => { this._selectionService!.refresh(); - this._decorationsService!.refresh(); + this._decorationService!.refresh(); })); this._mouseZoneManager = this._instantiationService.createInstance(MouseZoneManager, this.element, this.screenElement); @@ -1011,7 +1011,7 @@ export class Terminal extends CoreTerminal implements ITerminal { if (this.buffer !== this.buffers.normal) { return undefined; } - return this._decorationsService!.registerDecoration(decorationOptions); + return this._decorationService!.registerDecoration(decorationOptions); } /** diff --git a/src/browser/services/DecorationsService.ts b/src/browser/services/DecorationService.ts similarity index 99% rename from src/browser/services/DecorationsService.ts rename to src/browser/services/DecorationService.ts index 36aabf9a..f3f1c3fa 100644 --- a/src/browser/services/DecorationsService.ts +++ b/src/browser/services/DecorationService.ts @@ -67,7 +67,7 @@ export class DecorationService extends Disposable implements IDecorationService } } -export const IDecorationService = createDecorator('DecorationsService'); +export const IDecorationService = createDecorator('DecorationService'); class Decoration extends Disposable implements IDecoration { private static _nextId = 1; private _marker: IMarker;