LuaLS / LuaLS/lua-language-server
Support enums within tables
まだ誰も着手していません。
- 主要言語
- Lua
- スター
- 4.4k
- フォーク
- 442
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
This may have to be a follow-up of https://github.com/sumneko/lua-language-server/issues/1411 but I have created this as a separate issue for separate feedback & tracking purposes
It would be nice if we could have enum function argument suggestions based on where the enumerator is defined. Currently, if you have an enum nested within some tables, it will only suggest the enum values as such:

This is fine if using the values defined directly is not an issue. However, if the enum values are runtime values (as mentioned in issue https://github.com/sumneko/lua-language-server/issues/1411) then we'd like to have some sort of initial auto-complete as such:

I am not sure how expensive computationally it may be to do this, if that is an issue then perhaps there exists a cheap workaround that could be used for documenting purposes.
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
runtime-value の制限と、要求されている follow-up の文脈を理解するために、Issue #1411 とこの Issue を併せて読んでください。nested-table enum の例とスクリーンショットを動作の参考にしてください。完了条件は、関数引数の補完で、enumerator が定義されている場所に基づいて enum 値を候補として提示できることです。テーブル内にネストされた enum も含みます。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- lua
- 領域
- devtools
- issue の種類
- 機能追加
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100