File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed
src/vs/workbench/contrib/inlineChat/browser Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -383,11 +383,20 @@ export class InlineChatWidget {
383
383
}
384
384
385
385
get minHeight ( ) : number {
386
- // The chat widget is variable height and supports scrolling. It
387
- // should be at least 100px high and at most the content height.
386
+ // The chat widget is variable height and supports scrolling. It should be
387
+ // at least "maxWidgetHeight" high and at most the content height.
388
+
389
+ let maxWidgetHeight = 100 ;
390
+ for ( const item of this . _chatWidget . viewModel ?. getItems ( ) ?? [ ] ) {
391
+ if ( isResponseVM ( item ) && item . response . value . some ( r => r . kind === 'textEditGroup' && ! r . state ?. applied ) ) {
392
+ maxWidgetHeight = 270 ;
393
+ break ;
394
+ }
395
+ }
396
+
388
397
let value = this . contentHeight ;
389
398
value -= this . _chatWidget . contentHeight ;
390
- value += Math . min ( 100 , this . _chatWidget . contentHeight ) ;
399
+ value += Math . min ( maxWidgetHeight , this . _chatWidget . contentHeight ) ;
391
400
return value ;
392
401
}
393
402
You can’t perform that action at this time.
0 commit comments