LuaLS / LuaLS/lua-language-server
Disable snippets via `capabilities`?
まだ誰も着手していません。
- 主要言語
- 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
According to the LSP spec, clients should be able to disable support for snippets by setting capabilities.textDocument.completion.completionItem.snippetSupport = false. However, lua-language-server seems to ignore this setting in favor of its own (non-standard?) settings (completion.callSnippet = "Disable" and completion.keywordSnippet = "Disable".
Actual Behaviour
Even if a user sets capabilities.textDocument.completion.completionItem.snippetSupport = false, snippets continue to be sent by the language server.
Reproduction steps
- Set
capabilities.textDocument.completion.completionItem.snippetSupport = false - Start typing
i...orfo.. - Snippets will be shown for
ifandfor.
Additional Notes
Since it seems standard to disable snippets using the capabilities setting, I'm hoping that lua-language-server can support that.
Log File
No response
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、capabilities.textDocument.completion.completionItem.snippetSupport = false の状態で NeoVim の if と for の補完を再現し、次に language server の補完処理を追跡します。完了の条件は、server がその capability を尊重し、無効化されている場合に snippet の送信を停止することです。その際、個別の設定 completion.callSnippet や completion.keywordSnippet に依存してはいけません。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- lua, macos, neovim
- 領域
- devtools
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 45/100