more decorationsService -> singular

This commit is contained in:
meganrogge
2022-02-08 14:25:24 -06:00
parent 3e5ecbf52b
commit 723e915895
2 changed files with 7 additions and 7 deletions
+6 -6
View File
@@ -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);
}
/**
@@ -67,7 +67,7 @@ export class DecorationService extends Disposable implements IDecorationService
}
}
export const IDecorationService = createDecorator<IDecorationService>('DecorationsService');
export const IDecorationService = createDecorator<IDecorationService>('DecorationService');
class Decoration extends Disposable implements IDecoration {
private static _nextId = 1;
private _marker: IMarker;