@@ -77,7 +77,7 @@ export class ChatInputPart extends Disposable implements IHistoryNavigationWidge
7777
7878 constructor (
7979 // private readonly editorOptions: ChatEditorOptions, // TODO this should be used
80- private readonly options : { renderFollowupsBelow : boolean } ,
80+ private readonly options : { renderFollowups : boolean } ,
8181 @IChatWidgetHistoryService private readonly historyService : IChatWidgetHistoryService ,
8282 @IModelService private readonly modelService : IModelService ,
8383 @IInstantiationService private readonly instantiationService : IInstantiationService ,
@@ -178,14 +178,8 @@ export class ChatInputPart extends Disposable implements IHistoryNavigationWidge
178178 render ( container : HTMLElement , initialValue : string , widget : IChatWidget ) {
179179 this . container = dom . append ( container , $ ( '.interactive-input-part' ) ) ;
180180
181- let inputContainer : HTMLElement ;
182- if ( this . options . renderFollowupsBelow ) {
183- inputContainer = dom . append ( this . container , $ ( '.interactive-input-and-toolbar' ) ) ;
184- this . followupsContainer = dom . append ( this . container , $ ( '.interactive-input-followups' ) ) ;
185- } else {
186- this . followupsContainer = dom . append ( this . container , $ ( '.interactive-input-followups' ) ) ;
187- inputContainer = dom . append ( this . container , $ ( '.interactive-input-and-toolbar' ) ) ;
188- }
181+ this . followupsContainer = dom . append ( this . container , $ ( '.interactive-input-followups' ) ) ;
182+ const inputContainer = dom . append ( this . container , $ ( '.interactive-input-and-toolbar' ) ) ;
189183
190184 const inputScopedContextKeyService = this . _register ( this . contextKeyService . createScoped ( inputContainer ) ) ;
191185 CONTEXT_IN_CHAT_INPUT . bindTo ( inputScopedContextKeyService ) . set ( true ) ;
@@ -256,6 +250,9 @@ export class ChatInputPart extends Disposable implements IHistoryNavigationWidge
256250 }
257251
258252 async renderFollowups ( items ?: IChatReplyFollowup [ ] ) : Promise < void > {
253+ if ( ! this . options . renderFollowups ) {
254+ return ;
255+ }
259256 this . followupsDisposables . clear ( ) ;
260257 dom . clearNode ( this . followupsContainer ) ;
261258
0 commit comments