This commit is contained in:
meganrogge
2022-01-31 12:53:07 -06:00
parent 9b4801fb43
commit c5a0711f84
12 changed files with 135 additions and 118 deletions
+2 -2
View File
@@ -12,7 +12,7 @@ import { addDisposableDomListener } from 'browser/Lifecycle';
import { IColorSet, IRenderDebouncer } from 'browser/Types';
import { IOptionsService, IBufferService } from 'common/services/Services';
import { ICharSizeService, IRenderService } from 'browser/services/Services';
import { IDecorationOptions, IDecoration, IGutterDecorationOptions, IBufferDecorationOptions } from 'xterm';
import { IDecoration, IBufferDecorationOptions } from 'xterm';
interface ISelectionState {
start: [number, number] | undefined;
@@ -86,7 +86,7 @@ export class RenderService extends Disposable implements IRenderService {
}
}
public registerDecoration(decorationOptions: IBufferDecorationOptions | IGutterDecorationOptions): IDecoration {
public registerDecoration(decorationOptions: IBufferDecorationOptions): IDecoration | undefined {
return this._renderer.registerDecoration(decorationOptions);
}
+2 -2
View File
@@ -9,7 +9,7 @@ import { IColorSet } from 'browser/Types';
import { ISelectionRedrawRequestEvent as ISelectionRequestRedrawEvent, ISelectionRequestScrollLinesEvent } from 'browser/selection/Types';
import { createDecorator } from 'common/services/ServiceRegistry';
import { IDisposable } from 'common/Types';
import { IDecoration, IDecorationOptions } from 'xterm';
import { IBufferDecorationOptions, IDecoration } from 'xterm';
export const ICharSizeService = createDecorator<ICharSizeService>('CharSizeService');
export interface ICharSizeService {
@@ -52,7 +52,7 @@ export interface IRenderService extends IDisposable {
onRefreshRequest: IEvent<{ start: number, end: number }>;
dimensions: IRenderDimensions;
registerDecoration(decorationOptions: IDecorationOptions): IDecoration;
registerDecoration(decorationOptions: IBufferDecorationOptions): IDecoration | undefined;
refreshRows(start: number, end: number): void;
clearTextureAtlas(): void;
resize(cols: number, rows: number): void;