@@ -141,7 +141,6 @@ export class InteractiveSessionWidget extends Disposable implements IInteractive
141141 const viewId = 'viewId' in this . viewContext ? this . viewContext . viewId : undefined ;
142142 this . editorOptions = this . _register ( this . instantiationService . createInstance ( InteractiveSessionEditorOptions , viewId , this . styles . listForeground , this . styles . inputEditorBackground , this . styles . resultEditorBackground ) ) ;
143143 this . createList ( this . listContainer ) ;
144- this . setupColors ( this . listContainer ) ;
145144 this . createInput ( this . container ) ;
146145
147146 this . _register ( this . editorOptions . onDidChange ( ( ) => this . onDidStyleChange ( ) ) ) ;
@@ -241,10 +240,6 @@ export class InteractiveSessionWidget extends Disposable implements IInteractive
241240 return this . slashCommandsPromise ;
242241 }
243242
244- private setupColors ( container : HTMLElement ) {
245- container . style . setProperty ( '--vscode-interactive-session-foreground' , this . editorOptions . configuration . foreground ?. toString ( ) ?? '' ) ;
246- }
247-
248243 private createList ( listContainer : HTMLElement ) : void {
249244 const scopedInstantiationService = this . instantiationService . createChild ( new ServiceCollection ( [ IContextKeyService , this . contextKeyService ] ) ) ;
250245 const delegate = scopedInstantiationService . createInstance ( InteractiveSessionListDelegate ) ;
@@ -339,6 +334,7 @@ export class InteractiveSessionWidget extends Disposable implements IInteractive
339334
340335 private onDidStyleChange ( ) : void {
341336 this . container . style . setProperty ( '--vscode-interactive-result-editor-background-color' , this . editorOptions . configuration . resultEditor . backgroundColor ?. toString ( ) ?? '' ) ;
337+ this . container . style . setProperty ( '--vscode-interactive-session-foreground' , this . editorOptions . configuration . foreground ?. toString ( ) ?? '' ) ;
342338 }
343339
344340 setModel ( model : IInteractiveSessionModel , viewState : IViewState ) : void {
0 commit comments