LuaLS / LuaLS/lua-language-server
inconsistent text edits from completion
還沒有人認領這個 Issue。
- 主要語言
- Lua
- 星號
- 4.4k
- 分支
- 442
- PR 合併指標
- 30 天內沒有已合併 PR
描述
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
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
使用 require"neo| 和 require"neo|" 範例在 NeoVim 中重現這兩種補全情況,然後檢查補全項目及其 LSP 文字編輯範圍。當選取 neocomplete 在兩種形式中都能正確取代 neo 且不留下額外字元時,修正即完成。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- lua
- 領域
- tooling
- Issue 類型
- 缺陷
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100