erlang-ls / erlang_ls

The Erlang Language Server
https://erlang-ls.github.io/
Apache License 2.0
620 stars 136 forks source link

Replace ':' with '%3A' in 'Uri = els_uri:uri(Fullname)' #1458

Closed shuying2244 closed 6 months ago

shuying2244 commented 8 months ago

My client vscode makes a request like '<<"textDocument/definition">>', which carries a params of uri like '<<"file:///d%3A/SvnFiles/yf5_dragalia/server/game/player/player_prop.erl">>',But when the plugin executes 'shallow_index/4', the 'Uri' calculated by 'Uri = els_uri:uri(Fullname)' is '<<"file:///d:/SvnFiles/yf5_dragalia/server/game/player/player_prop.erl">>'. They don't match, causing the plugin to work abnormally, and my submission is designed to fix that.