LuaLS / LuaLS/lua-language-server
FR: Option that "Ignore this line" Code Actions adds to this line instead of the one above
オープン
まだ誰も着手していません。
enhancement
- 主要言語
- Lua
- スター
- 4.4k
- フォーク
- 442
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
Right now, when using the "Ignore this line" code action, it adds this line above the respective line:
---@diagnostic disable-next-line: rulename
problemline
However, I often prefer this type of line ignoring
problemline ---@diagnostic disable-line: rulename
while it works and is correctly recognized by the lsp, there is no code action and/or no option to add such a comment, I have to change this manually.
The eslint-lsp, for example, has an option for the ignore-line-code-action which accepts sameLine or separateLine.
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、“Ignore this line”コードアクションの language server 実装と、その設定がどのように定義されているかを確認します。既存の disable-next-line の動作と、要求されている同じ行での disable-line 形式を比較します。完了条件は、ユーザーがオプションで配置を選択でき、生成された Lua コメントが正しく認識されることです。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- lua
- 領域
- devtools
- issue の種類
- 機能追加
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100