Skip to content

Commit

Permalink
fix(chat): clear pending messages in chat panel
Browse files Browse the repository at this point in the history
  • Loading branch information
liangfung committed Dec 17, 2024
1 parent 6fa7c2d commit be2468f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions clients/vscode/src/chat/WebviewHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,11 @@ export class WebviewHelper {
}

this.pendingRelevantContexts.forEach((ctx) => this.addRelevantContext(ctx));
this.pendingRelevantContexts = [];

this.pendingMessages.forEach((message) => this.sendMessageToChatPanel(message));
this.pendingMessages = [];

this.syncActiveSelection(window.activeTextEditor);

const agentConfig = this.lspClient.agentConfig.current;
Expand Down

0 comments on commit be2468f

Please sign in to comment.