Skip to content

Commit 602bc14

Browse files
committed
fixed multi history display
1 parent ec9bb0b commit 602bc14

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

src/vs/workbench/contrib/chat/browser/chatWidget.ts

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -942,14 +942,15 @@ export class ChatWidget extends Disposable implements IChatWidget {
942942
welcomeContent = this.getWelcomeViewContent(additionalMessage);
943943
welcomeContent.tips = tips;
944944
}
945-
// Optional: recent chat history above welcome content when enabled
946-
const showHistory = this.configurationService.getValue<boolean>(ChatConfiguration.EmptyStateHistoryEnabled);
947-
if (showHistory) {
948-
this.renderWelcomeHistorySection();
949-
}
950-
951945
if (!this.welcomePart.value || this.welcomePart.value.needsRerender(welcomeContent)) {
952946
dom.clearNode(this.welcomeMessageContainer);
947+
948+
// Optional: recent chat history above welcome content when enabled
949+
const showHistory = this.configurationService.getValue<boolean>(ChatConfiguration.EmptyStateHistoryEnabled);
950+
if (showHistory) {
951+
this.renderWelcomeHistorySection();
952+
}
953+
953954
this.welcomePart.value = this.instantiationService.createInstance(
954955
ChatViewWelcomePart,
955956
welcomeContent,

0 commit comments

Comments
 (0)