@@ -108,6 +108,7 @@ export class Repl extends FilterViewPane implements IHistoryNavigationWidget {
108
108
private scopedInstantiationService ! : IInstantiationService ;
109
109
private replElementsChangeListener : IDisposable | undefined ;
110
110
private styleElement : HTMLStyleElement | undefined ;
111
+ private styleChangedWhenInvisible : boolean = false ;
111
112
private completionItemProvider : IDisposable | undefined ;
112
113
private modelChangeListener : IDisposable = Disposable . None ;
113
114
private filter : ReplFilter ;
@@ -199,6 +200,10 @@ export class Repl extends FilterViewPane implements IHistoryNavigationWidget {
199
200
this . replInput . setModel ( this . model ) ;
200
201
this . updateInputDecoration ( ) ;
201
202
this . refreshReplElements ( true ) ;
203
+ if ( this . styleChangedWhenInvisible ) {
204
+ this . styleChangedWhenInvisible = false ;
205
+ this . onDidStyleChange ( ) ;
206
+ }
202
207
}
203
208
} ) ) ;
204
209
this . _register ( this . configurationService . onDidChangeConfiguration ( e => {
@@ -353,6 +358,10 @@ export class Repl extends FilterViewPane implements IHistoryNavigationWidget {
353
358
}
354
359
355
360
private onDidStyleChange ( ) : void {
361
+ if ( ! this . isVisible ( ) ) {
362
+ this . styleChangedWhenInvisible = true ;
363
+ return ;
364
+ }
356
365
if ( this . styleElement ) {
357
366
this . replInput . updateOptions ( {
358
367
fontSize : this . replOptions . replConfiguration . fontSize ,
0 commit comments