Add contrast caching for DOM renderer

This commit is contained in:
Daniel Imms
2019-11-12 09:33:50 -08:00
parent c2474626f0
commit faaa07be68
6 changed files with 76 additions and 6 deletions
+1
View File
@@ -546,6 +546,7 @@ export class Terminal extends Disposable implements ITerminal, IDisposable, IInp
this._theme = this.options.theme || this._theme;
this.options.theme = undefined;
this._colorManager = new ColorManager(document, this.options.allowTransparency);
this.optionsService.onOptionChange(e => this._colorManager.onOptionsChange(e));
this._colorManager.setTheme(this._theme);
const renderer = this._createRenderer();