@@ -141,7 +141,6 @@ export class InteractiveSessionWidget extends Disposable implements IInteractive
141
141
const viewId = 'viewId' in this . viewContext ? this . viewContext . viewId : undefined ;
142
142
this . editorOptions = this . _register ( this . instantiationService . createInstance ( InteractiveSessionEditorOptions , viewId , this . styles . listForeground , this . styles . inputEditorBackground , this . styles . resultEditorBackground ) ) ;
143
143
this . createList ( this . listContainer ) ;
144
- this . setupColors ( this . listContainer ) ;
145
144
this . createInput ( this . container ) ;
146
145
147
146
this . _register ( this . editorOptions . onDidChange ( ( ) => this . onDidStyleChange ( ) ) ) ;
@@ -241,10 +240,6 @@ export class InteractiveSessionWidget extends Disposable implements IInteractive
241
240
return this . slashCommandsPromise ;
242
241
}
243
242
244
- private setupColors ( container : HTMLElement ) {
245
- container . style . setProperty ( '--vscode-interactive-session-foreground' , this . editorOptions . configuration . foreground ?. toString ( ) ?? '' ) ;
246
- }
247
-
248
243
private createList ( listContainer : HTMLElement ) : void {
249
244
const scopedInstantiationService = this . instantiationService . createChild ( new ServiceCollection ( [ IContextKeyService , this . contextKeyService ] ) ) ;
250
245
const delegate = scopedInstantiationService . createInstance ( InteractiveSessionListDelegate ) ;
@@ -339,6 +334,7 @@ export class InteractiveSessionWidget extends Disposable implements IInteractive
339
334
340
335
private onDidStyleChange ( ) : void {
341
336
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 ( ) ?? '' ) ;
342
338
}
343
339
344
340
setModel ( model : IInteractiveSessionModel , viewState : IViewState ) : void {
0 commit comments