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

Adjust the document paste handling provider. #3570

Merged
merged 1 commit into from
Apr 9, 2024

Conversation

rgrunber
Copy link
Member

@rgrunber rgrunber commented Apr 9, 2024

CC'ing @testforstephen for awareness. I would guess we're fine to not support the older API for those staying on previous versions.

- provideDocumentPasteEdits API was updated in VS Code 1.88.0

Signed-off-by: Roland Grunberg <[email protected]>
@rgrunber rgrunber requested a review from snjeza April 9, 2024 20:37
Copy link
Contributor

@snjeza snjeza left a comment

Choose a reason for hiding this comment

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

LGTM

@rgrunber rgrunber merged commit 3ada59c into redhat-developer:master Apr 9, 2024
2 checks passed
@rgrunber rgrunber deleted the fix-paste branch April 9, 2024 23:17
@testforstephen
Copy link
Collaborator

what happens if the user uses copy & paste in an old VS Code version (e.g.1.87) against this PR change?

@rgrunber
Copy link
Member Author

From trying out the change on an older VS Code (eg. 1.87), it simply pastes the text as usual with no modification. AFAICT the paste handling request isn't even sent to the language server.

@testforstephen
Copy link
Collaborator

I see. As long as it doesn't break the default system copy/paste behavior in an older vscode, it's fine to merge this PR.

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.

Java string paste not auto escape
3 participants