File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/vs/workbench/contrib/chat/browser Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -516,7 +516,7 @@ export class ChatInputPart extends Disposable implements IHistoryNavigationWidge
516
516
onDidChangeCursorPosition ( ) ;
517
517
}
518
518
519
- private initAttachedContext ( container : HTMLElement ) {
519
+ private initAttachedContext ( container : HTMLElement , isLayout = false ) {
520
520
const oldHeight = container . offsetHeight ;
521
521
dom . clearNode ( container ) ;
522
522
this . attachedContextDisposables . clear ( ) ;
@@ -578,7 +578,7 @@ export class ChatInputPart extends Disposable implements IHistoryNavigationWidge
578
578
this . attachedContextDisposables . add ( disp ) ;
579
579
} ) ;
580
580
581
- if ( oldHeight !== container . offsetHeight ) {
581
+ if ( oldHeight !== container . offsetHeight && ! isLayout ) {
582
582
this . _onDidChangeHeight . fire ( ) ;
583
583
}
584
584
}
@@ -609,7 +609,7 @@ export class ChatInputPart extends Disposable implements IHistoryNavigationWidge
609
609
610
610
private previousInputEditorDimension : IDimension | undefined ;
611
611
private _layout ( height : number , width : number , allowRecurse = true ) : void {
612
- this . initAttachedContext ( this . attachedContextContainer ) ;
612
+ this . initAttachedContext ( this . attachedContextContainer , true ) ;
613
613
614
614
const data = this . getLayoutData ( ) ;
615
615
You can’t perform that action at this time.
0 commit comments