Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inline chat UI contains undesired empty space after getting response #198756

Merged
merged 1 commit into from
Nov 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions src/vs/workbench/contrib/chat/browser/media/chat.css
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,7 @@

.interactive-item-container.interactive-item-compact.no-padding {
padding: unset;
gap: unset;
}

.interactive-item-container.interactive-item-compact .header {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -588,9 +588,10 @@ export class InlineChatWidget {
updateChatMessage(message: IInlineChatMessage | undefined): void;
updateChatMessage(message: IInlineChatMessage | undefined, isIncomplete?: boolean): IInlineChatMessageAppender | undefined {
this._chatMessageDisposables.clear();
this._elements.chatMessage.classList.toggle('hidden', !message);
const hasMessage = message?.message.value;
this._elements.chatMessage.classList.toggle('hidden', !hasMessage);
reset(this._elements.chatMessageContent);
if (message) {
if (hasMessage) {
const sessionModel = this._chatMessageDisposables.add(new ChatModel(message.providerId, undefined, this._logService, this._chatAgentService));
const responseModel = this._chatMessageDisposables.add(new ChatResponseModel(message.message, sessionModel, undefined, message.requestId, !isIncomplete, false, undefined));
const viewModel = this._chatMessageDisposables.add(new ChatResponseViewModel(responseModel, this._logService));
Expand Down