LuaLS / LuaLS/lua-language-server
Unable to ignore applying only one library
まだ誰も着手していません。
- 主要言語
- 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?
Libraries
Expected Behaviour
When multiple libraries are detected, the user should be able to tell the server to stop asking to apply a specific library, and continue receiving suggestions for other libraries.
Actual Behaviour
Once the user selects “Don't show again”, workspace.checkThirdParty is set to false, preventing any suggestions from appearing.
Reproduction steps
- Enter the following in a file to trigger library detection:
local assert = require("luassert") resty.a love.a - When the “Apply library” popup appears, press “Don't show again”
- Try to automatically apply one of the other libraries automatically.
Additional Notes
A similar issue was resolved in v3.6.0 which allowed the server to continue recommending libraries when one was applied, but this issue is about when a user does not apply the suggested library.
Maybe it would make sense to create a new setting called workspace.libraryIgnore that is an array of ignored libraries. Then workspace.checkThirdParty can remain for backwards compatibility and so all suggestions can be disabled.
Log File
No response
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、issue に記載されている workspace.checkThirdParty 設定と「Don't show again」のパスを追跡します。Windows 上で luassert、resty、love の例を再現し、1 つのライブラリを拒否してもそのライブラリだけが抑制され、他のライブラリの候補は引き続き利用できることを確認します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- lua
- 領域
- devtools
- issue の種類
- 機能追加
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100