Skip to content

Commit 77565bd

Browse files
authored
fix: don't reset history cursor while navigating history with attachments (microsoft#223800)
1 parent 2dad26a commit 77565bd

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,10 @@ export class ChatInputPart extends Disposable implements IHistoryNavigationWidge
362362

363363
if (removed.length > 0 || contentReferences.length > 0) {
364364
this.initAttachedContext(this.attachedContextContainer);
365-
this._onDidChangeContext.fire({ removed, added: contentReferences });
365+
366+
if (!overwrite) {
367+
this._onDidChangeContext.fire({ removed, added: contentReferences });
368+
}
366369
}
367370
}
368371

0 commit comments

Comments
 (0)