@@ -42,6 +42,7 @@ export interface AIChatInputConfiguration {
4242 showContext ?: boolean ;
4343 showPinnedAgent ?: boolean ;
4444 showChangeSet ?: boolean ;
45+ showSuggestions ?: boolean ;
4546}
4647
4748@injectable ( )
@@ -180,6 +181,7 @@ export class AIChatInputWidget extends ReactWidget {
180181 showContext = { this . configuration ?. showContext }
181182 showPinnedAgent = { this . configuration ?. showPinnedAgent }
182183 showChangeSet = { this . configuration ?. showChangeSet }
184+ showSuggestions = { this . configuration ?. showSuggestions }
183185 labelProvider = { this . labelProvider }
184186 actionService = { this . changeSetActionService }
185187 decoratorService = { this . changeSetDecoratorService }
@@ -289,6 +291,7 @@ interface ChatInputProperties {
289291 showContext ?: boolean ;
290292 showPinnedAgent ?: boolean ;
291293 showChangeSet ?: boolean ;
294+ showSuggestions ?: boolean ;
292295 labelProvider : LabelProvider ;
293296 actionService : ChangeSetActionService ;
294297 decoratorService : ChangeSetDecoratorService ;
@@ -593,7 +596,7 @@ const ChatInput: React.FunctionComponent<ChatInputProperties> = (props: ChatInpu
593596 const contextUI = buildContextUI ( props . context , props . labelProvider , props . onDeleteContextElement , props . onOpenContextElement ) ;
594597
595598 return < div className = 'theia-ChatInput' onDragOver = { props . onDragOver } onDrop = { props . onDrop } >
596- { < ChatInputAgentSuggestions suggestions = { props . suggestions } opener = { props . openerService } /> }
599+ { props . showSuggestions !== false && < ChatInputAgentSuggestions suggestions = { props . suggestions } opener = { props . openerService } /> }
597600 { props . showChangeSet && changeSetUI ?. elements &&
598601 < ChangeSetBox changeSet = { changeSetUI } />
599602 }
0 commit comments