Skip to content
This repository has been archived by the owner on Jul 27, 2024. It is now read-only.

Handle escaped file URIs in language server #382

Merged
merged 1 commit into from
Aug 9, 2021

Conversation

charlespwd
Copy link
Contributor

Fixes #360

@charlespwd charlespwd requested a review from macournoyer August 9, 2021 18:55
def path_from_uri(uri_string)
return if uri_string.nil?
uri = URI(uri_string)
CGI.unescape(uri.path)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This has the added bonus of handling windows paths for us (C%3a becomes c: as it should).

Copy link
Contributor

@macournoyer macournoyer left a comment

Choose a reason for hiding this comment

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

🔥

@charlespwd charlespwd merged commit 42d7768 into main Aug 9, 2021
@shopify-shipit shopify-shipit bot temporarily deployed to rubygems August 30, 2021 14:10 Inactive
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.

Directories with spaces or special characters doesn't seem to run
2 participants