Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Turn acceptAgentEdits into async #241180

Closed
wants to merge 2 commits into from
Closed

Conversation

DonJayamanne
Copy link
Contributor

No description provided.

@DonJayamanne DonJayamanne self-assigned this Feb 19, 2025
@DonJayamanne DonJayamanne changed the title Intellectual-piranha Turn acceptAgentEdits into async Feb 19, 2025
@@ -271,7 +271,7 @@ export class ChatEditingModifiedDocumentEntry extends AbstractChatEditingModifie
}
}

acceptAgentEdits(textEdits: TextEdit[], isLastEdits: boolean, responseModel: IChatResponseModel): void {
async acceptAgentEdits(_resource: URI, textEdits: TextEdit[], isLastEdits: boolean, responseModel: IChatResponseModel): Promise<void> {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move to base class, as notebooks need to apply the edits to the cells.
Also the text Model associated with the cell may not be available and might have to be created using the ITextModelService which in turn is async.

@DonJayamanne DonJayamanne marked this pull request as ready for review February 19, 2025 10:29
@DonJayamanne DonJayamanne requested a review from jrieken February 19, 2025 10:29
@DonJayamanne DonJayamanne enabled auto-merge (squash) February 19, 2025 10:29
@vs-code-engineering vs-code-engineering bot added this to the February 2025 milestone Feb 19, 2025
auto-merge was automatically disabled February 20, 2025 02:38

Pull request was closed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant