-
Notifications
You must be signed in to change notification settings - Fork 78
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
LSC does not encode/decode characters which are not allowed in File URIs #43
Comments
Curiously in your last example the I think I can go with a relatively straightforward encode strategy since we expect the entire file path to be treated as the
My first approach for decoding will probably only handle |
Can you try updating to the latest and see if it works for you? |
Hello @natebosch , Thank you for the update, looks good.
I think this line: \ 'rootUri': 'file://'.getcwd(),
should look something like like this: \ 'rootUri': lsc#uri#documentUri(getcwd()),
that's my bad. Thank you for highlighting this. |
Good catch on the rootUri. Should be fixed now. |
That's great, thank you. |
Hello @natebosch ,
Thank you for your plugin!
It would appear that current version of LSC does not encode characters which are not allowed in File URIs.
According to FILE URI requirements:
For instance, here is a Go To Definition message from VS Code (which does appropriate encoding):
and here is the same message from
vim LSC
:In the opposite direction - if server does appropriate URI encoding and returns URI same way as in above VS Code example -
vim LSC
does not understand returned path.e.g. example below is understood by VS Code but not understood by
vim LSC
The text was updated successfully, but these errors were encountered: