Remove react to changes idea

This commit is contained in:
Daniel Imms
2022-05-10 06:20:48 -07:00
parent a67e7286d3
commit ba61509fdd
2 changed files with 2 additions and 5 deletions
-2
View File
@@ -75,7 +75,6 @@ class Decoration extends Disposable implements IInternalDecoration {
private _onDispose = this.register(new EventEmitter<void>());
public readonly onDispose = this._onDispose.event;
// TODO: React to changes on options
private _cachedBg: IColor | undefined | null = null;
public get backgroundColorRGB(): IColor | undefined {
if (this._cachedBg === null) {
@@ -88,7 +87,6 @@ class Decoration extends Disposable implements IInternalDecoration {
return this._cachedBg;
}
// TODO: React to changes on options
private _cachedFg: IColor | undefined | null = null;
public get foregroundColorRGB(): IColor | undefined {
if (this._cachedFg === null) {
+2 -3
View File
@@ -445,7 +445,6 @@ declare module 'xterm' {
* were provided initially.
*/
options: Pick<IDecorationOptions, 'overviewRulerOptions'>;
// options: Pick<IDecorationOptions, 'overviewRulerOptions' | 'backgroundColor' | 'foregroundColor'>;
}
@@ -493,13 +492,13 @@ declare module 'xterm' {
* The background color of the cell(s). When 2 decorations both set the foreground color the
* last registered decoration will be used. Only the `#RRGGBB` format is supported.
*/
backgroundColor?: string;
readonly backgroundColor?: string;
/**
* The foreground color of the cell(s). When 2 decorations both set the foreground color the
* last registered decoration will be used. Only the `#RRGGBB` format is supported.
*/
foregroundColor?: string;
readonly foregroundColor?: string;
/**
* When defined, renders the decoration in the overview ruler to the right