Skip to content

Commit af503e5

Browse files
authored
Don't accumulate historical references in Ask mode (#245929)
* Don't accumulate historical references in Ask mode For microsoft/vscode-copilot-release#7290
1 parent 989da1f commit af503e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1109,7 +1109,7 @@ export class ChatWidget extends Disposable implements IChatWidget {
11091109
}
11101110

11111111
let attachedContext = this.inputPart.getAttachedAndImplicitContext(this.viewModel.sessionId);
1112-
if (this.viewOptions.enableWorkingSet !== undefined) {
1112+
if (this.viewOptions.enableWorkingSet !== undefined && this.input.currentMode !== ChatMode.Ask) {
11131113
const uniqueWorkingSetEntries = new ResourceSet(); // NOTE: this is used for bookkeeping so the UI can avoid rendering references in the UI that are already shown in the working set
11141114
const editingSessionAttachedContext: IChatRequestVariableEntry[] = attachedContext;
11151115

0 commit comments

Comments
 (0)