LuaLS / LuaLS/lua-language-server
[Feature Request]: Way to add custom diagnostics in plugin.lua
未關閉
還沒有人認領這個 Issue。
enhancement
- 主要語言
- Lua
- 星號
- 4.4k
- 分支
- 442
- PR 合併指標
- 30 天內沒有已合併 PR
描述
It would be useful to be able to add custom diagnostics that can be propagated from plugin.lua in a custom plugin.
For a plugin my team is developing, we need a way to check that values the user is setting a variable to fall within a certain range (among other possible diagnostics). I can understand why this wouldn't be desirable to add to the core diagnostics.
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
首先閱讀 plugin.lua,並追蹤如何將 plugin 提供的資訊傳遞至 language server 的 diagnostics。確認範圍檢查的預期行為,並定義測試以證明來自 plugin 的自訂 diagnostics 能夠傳達給使用者。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- lua
- 領域
- devtools
- Issue 類型
- 功能
- 難度
- 5/5
- 預估耗時
- 一週以上
- 活躍度
- 停滯
- 描述清晰度
- 需要釐清
- 新手友好度
- 25/100