Skip to content

fix: uri encoding - #3795

Merged
kpodsiad merged 2 commits into
scalameta:mainfrom
kpodsiad:fix/uri-percent-encoding
Apr 11, 2022
Merged

fix: uri encoding#3795
kpodsiad merged 2 commits into
scalameta:mainfrom
kpodsiad:fix/uri-percent-encoding

Conversation

@kpodsiad

@kpodsiad kpodsiad commented Apr 5, 2022

Copy link
Copy Markdown
Member

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
Copy Markdown
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
Copy Markdown
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

@tgodzik tgodzik left a comment

Copy link
Copy Markdown
Contributor

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