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

fix: uri encoding #3795

Merged
merged 2 commits into from
Apr 11, 2022
Merged

Conversation

kpodsiad
Copy link
Member

@kpodsiad kpodsiad commented Apr 5, 2022

closes #3794

@kpodsiad kpodsiad force-pushed the fix/uri-percent-encoding branch from 7be48da to a792218 Compare April 5, 2022 20:31
Comment on lines +136 to +137
else if (value.toUpperCase.startsWith("JAR"))
URI.create(value).toAbsolutePath(followSymlink)
Copy link
Member Author

Choose a reason for hiding this comment

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

We do not want to overcode JARs, right @Arthurm1?

Copy link
Contributor

Choose a reason for hiding this comment

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

Good question - I don't think so.
I'm trying to move away from jar URIs in #3750 so that only Metals will deal with jar URIs and only in a few specific classes and the client won't encounter them at all so won't mess with the encoded value.

@kpodsiad kpodsiad force-pushed the fix/uri-percent-encoding branch from 6ab8d76 to ac4b748 Compare April 6, 2022 05:59
@kpodsiad kpodsiad marked this pull request as ready for review April 6, 2022 08:39
Copy link
Contributor

@tgodzik tgodzik left a comment

Choose a reason for hiding this comment

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

LGTM!

@kpodsiad kpodsiad merged commit ae28000 into scalameta:main Apr 11, 2022
@kpodsiad kpodsiad deleted the fix/uri-percent-encoding branch April 11, 2022 14:55
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.

Requests fail when editing file with path that includes spaces
3 participants