mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-23 01:58:53 +01:00
fix a potential stale inline chat window cause (#269999)
re https://github.com/microsoft/vscode/issues/265579
This commit is contained in:
@@ -1042,7 +1042,7 @@ export class InlineChatController1 implements IEditorContribution {
|
||||
assertType(this._session);
|
||||
assertType(this._strategy);
|
||||
|
||||
const moreMinimalEdits = await this._editorWorkerService.computeMoreMinimalEdits(this._session.textModelN.uri, edits);
|
||||
const moreMinimalEdits = await raceCancellation(this._editorWorkerService.computeMoreMinimalEdits(this._session.textModelN.uri, edits), opts?.token || CancellationToken.None);
|
||||
this._log('edits from PROVIDER and after making them MORE MINIMAL', this._session.agent.extensionId, edits, moreMinimalEdits);
|
||||
|
||||
if (moreMinimalEdits?.length === 0) {
|
||||
|
||||
Reference in New Issue
Block a user