File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
src/vs/workbench/contrib/chat/browser Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -624,6 +624,13 @@ export class ChatListItemRenderer extends Disposable implements ITreeRenderer<Ch
624
624
} else {
625
625
// Nothing new to render, stop rendering until next model update
626
626
this . traceLayout ( 'doNextProgressiveRender' , 'caught up with the stream- no new content to render' ) ;
627
+
628
+ if ( ! templateData . renderedParts ) {
629
+ // First render? Initialize currentRenderedHeight. https://github.com/microsoft/vscode/issues/232096
630
+ const height = templateData . rowContainer . offsetHeight ;
631
+ element . currentRenderedHeight = height ;
632
+ }
633
+
627
634
return true ;
628
635
}
629
636
}
@@ -635,7 +642,7 @@ export class ChatListItemRenderer extends Disposable implements ITreeRenderer<Ch
635
642
const height = templateData . rowContainer . offsetHeight ;
636
643
element . currentRenderedHeight = height ;
637
644
if ( ! isInRenderElement ) {
638
- this . _onDidChangeItemHeight . fire ( { element, height : templateData . rowContainer . offsetHeight } ) ;
645
+ this . _onDidChangeItemHeight . fire ( { element, height } ) ;
639
646
}
640
647
641
648
return false ;
You can’t perform that action at this time.
0 commit comments