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

Use ICodeMapperService for 'Apply In Editor' #237509

Merged
merged 4 commits into from
Jan 9, 2025

Conversation

aeschli
Copy link
Contributor

@aeschli aeschli commented Jan 8, 2025

@aeschli aeschli self-assigned this Jan 8, 2025
@aeschli aeschli marked this pull request as ready for review January 9, 2025 14:44
@vs-code-engineering vs-code-engineering bot added this to the January 2025 milestone Jan 9, 2025
@aeschli aeschli enabled auto-merge January 9, 2025 14:50
@aeschli aeschli merged commit e85a666 into main Jan 9, 2025
8 checks passed
@aeschli aeschli deleted the aeschli/xenacious-lemming-702 branch January 9, 2025 15:07
codeMapper = provider.displayName;
progress.report({ message: localize('applyCodeBlock.progress', "Applying code block using {0}...", codeMapper) });
const mappedEdits = await provider.provideMappedEdits(
activeModel,
Copy link
Contributor

Choose a reason for hiding this comment

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

Does this mean MappedEditsProvider.provideMappedEdits is deprecated? I don't see a comment on the public (proposed) API but AFAICT, provideMappedEdits is no longer called when not using MappedEditsProvider2.

I'm trying to fix some Conversation Request bug I've come across, but now the API appears completely disconnected.

Copy link
Contributor Author

@aeschli aeschli Jan 14, 2025

Choose a reason for hiding this comment

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

Oh, sorry, I thought we were the only users and implementors.
Yes, we want to deprecate MappedEditsProvider in favor of MappedEditsProvider2 as this one is streaming the results.

I'll add the 'deprecated' comments shortly.

Let me know if you prefer me to still check for the MappedEditsProvider if MappedEditsProvider2 is unavailable.

Copy link
Contributor

Choose a reason for hiding this comment

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

No worries, we took a look at MappedEditsProvider2 and are happy to migrate to it. Thanks for the clarity on your plans + the forthcoming deprecated comments.

I believe said bug will still reproduce, but at least my to-be-filed issue and PR will target the correct feature.

@vs-code-engineering vs-code-engineering bot locked and limited conversation to collaborators Feb 23, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants