Skip to content

Commit

Permalink
fix: sync all attachments to working set when submitting request (#23…
Browse files Browse the repository at this point in the history
  • Loading branch information
joyceerhl authored Oct 25, 2024
1 parent b402ee3 commit 2eb50fc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/vs/workbench/contrib/chat/browser/chatWidget.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1012,6 +1012,11 @@ export class ChatWidget extends Disposable implements IChatWidget {
}
}
workingSet = [...uniqueWorkingSetEntries.values()];
const currentEditingSession = this.chatEditingService.currentEditingSessionObs.get();
for (const file of workingSet) {
// Make sure that any files that we sent are part of the working set
currentEditingSession?.addFileToWorkingSet(file);
}
attachedContext = editingSessionAttachedContext;
}

Expand Down

0 comments on commit 2eb50fc

Please sign in to comment.