Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -647,9 +647,14 @@ export class ChatViewPane extends ViewPane implements IViewWelcomeDelegate {
}));

// When showing sessions stacked, adjust the height of the sessions list to make room for chat input
let lastChatInputHeight: number | undefined;
this._register(chatWidget.input.onDidChangeHeight(() => {
if (this.sessionsViewerVisible && this.sessionsViewerOrientation === AgentSessionsViewerOrientation.Stacked) {
this.relayout();
const chatInputHeight = this._widget?.input?.contentHeight;
if (chatInputHeight && chatInputHeight !== lastChatInputHeight) { // ensure we only layout on actual height changes
lastChatInputHeight = chatInputHeight;
this.relayout();
}
}
}));
}
Expand Down
Loading