LuaLS / LuaLS/lua-language-server
Comment block adds code oddly when new line is added
未關閉
還沒有人認領這個 Issue。
- 主要語言
- Lua
- 星號
- 4.4k
- 分支
- 442
- PR 合併指標
- 30 天內沒有已合併 PR
描述
How are you using the lua-language-server?
Visual Studio Code Extension (sumneko.lua)
Which OS are you using?
Windows
What is the issue affecting?
Completion
Expected Behaviour
Nothing special happens when adding a new line to the end of a comment block.
Actual Behaviour
The end of the comment block is duplicated.
Reproduction steps
In a new X.lua file add the below as the only content.
--[[
Can teleport a player to near a target. Handles vehicles, finding valid placements and checking walkable paths based on settings.
HERE
end of comment
--]]
At the end of the word HERE add a new line by pressing enter and see the end of the comment block below it duplicated.
It produces the below.
--[[
Can teleport a player to near a target. Handles vehicles, finding valid placements and checking walkable paths based on settings.
HERE
end of comment
--]]
end of comment
--]]
Additional Notes
https://github.com/LuaLS/lua-language-server/assets/40836017/3b1e6ddc-7ac0-4184-9e25-c644b462d92e
Log File
No response
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
使用包含所回報區塊註解的新 X.lua 檔案重現 Visual Studio Code 中的補全行為,然後檢查 Lua language-server 的補全路徑,找出在註解區塊內由 Enter 觸發的編輯。完成的標準是:在 HERE 後按下 Enter 不再重複結尾的註解文字和 --]] 終止符。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- lua
- 領域
- devtools
- Issue 類型
- 缺陷
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 38/100