mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-26 18:27:38 +01:00
fixed multi history display
This commit is contained in:
@@ -942,14 +942,15 @@ export class ChatWidget extends Disposable implements IChatWidget {
|
||||
welcomeContent = this.getWelcomeViewContent(additionalMessage);
|
||||
welcomeContent.tips = tips;
|
||||
}
|
||||
// Optional: recent chat history above welcome content when enabled
|
||||
const showHistory = this.configurationService.getValue<boolean>(ChatConfiguration.EmptyStateHistoryEnabled);
|
||||
if (showHistory) {
|
||||
this.renderWelcomeHistorySection();
|
||||
}
|
||||
|
||||
if (!this.welcomePart.value || this.welcomePart.value.needsRerender(welcomeContent)) {
|
||||
dom.clearNode(this.welcomeMessageContainer);
|
||||
|
||||
// Optional: recent chat history above welcome content when enabled
|
||||
const showHistory = this.configurationService.getValue<boolean>(ChatConfiguration.EmptyStateHistoryEnabled);
|
||||
if (showHistory) {
|
||||
this.renderWelcomeHistorySection();
|
||||
}
|
||||
|
||||
this.welcomePart.value = this.instantiationService.createInstance(
|
||||
ChatViewWelcomePart,
|
||||
welcomeContent,
|
||||
|
||||
Reference in New Issue
Block a user