LuaLS / LuaLS/lua-language-server
inconsistent text edits from completion
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- Lua
- Star
- 4.4k
- Fork
- 442
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
### 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_
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Hướng nghiên cứu
Tái hiện hai trường hợp hoàn tất trong NeoVim bằng các ví dụ `require"neo|` và `require"neo|"`, sau đó kiểm tra các mục hoàn tất và các phạm vi chỉnh sửa văn bản LSP của chúng. Bản sửa lỗi hoàn tất khi việc chọn `neocomplete` thay thế `neo` chính xác trong cả hai dạng mà không để lại ký tự thừa.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- lua
- Lĩnh vực
- tooling
- Loại issue
- Lỗi
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 35/100