LuaLS / LuaLS/lua-language-server
Comment block adds code oddly when new line is added
まだ誰も着手していません。
- 主要言語
- 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 にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
報告されたブロックコメントを含む新しい X.lua ファイルを使用して Visual Studio Code での補完動作を再現し、その後、コメントブロック内で Enter によってトリガーされる編集について Lua language-server の補完パスを調査します。HERE の後で Enter を押したときに、後続のコメントテキストと --]] ターミネータが重複しなくなれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- lua
- 領域
- devtools
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 38/100