lua-language-server
lua-language-server copied to clipboard
inconsistent text edits from completion
How are you using the lua-language-server?
NeoVim
Which OS are you using?
MacOS
What is the issue affecting?
Completion
Expected Behaviour
I'm writing a completion engine for neovim which uses lsp to get completions among other things
I'm in the root directory of my plugin "neocomplete"
now I get completions for require"neo|, want to be able to select "neocomplete" and correctly get this completed to require"neocomplete
Actual Behaviour
require"neo| -> selecting "neocomplete" -> require"neocompleteo
require"neo|" -> selecting "neocomplete" -> require"neocomplete"
I checked out the completion items returned by the server and it seems it provides a different end range for the text edit in these cases even though in both cases it should simply replace neo with neocomplete
Reproduction steps
See above
Additional Notes
Tell me if I can give you any additional information from the completion results
Log File
No response