bash-lsp / bash-language-server

A language server for Bash
MIT License
2.11k stars 121 forks source link

Missing url %-encoding #271

Open rwols opened 3 years ago

rwols commented 3 years ago

I have a hashtag character (#) in one of my files:

file:///home/raoul/foo/%23xxxx/bar.sh

But when requesting things like textDocument/definition, bash-language-server returns paths that are not %-encoded:

file:///home/raoul/foo/#xxxx/bar.sh
rwols commented 3 years ago

The xxxx/bar.sh is interpreted as a URL fragment (my editor ignores/discards fragments), the path is interpreted to be /home/raoul/foo/, which confuses my editor.