LuaLS / LuaLS/lua-language-server
semantic coloring for locals/globals is broken
まだ誰も着手していません。
- 主要言語
- 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?
Formatting
Expected Behaviour
Locals and Globals used to have different coloring but since the latest VSCode update, they are colored the same, semantic highlighting on or off, same result.
Actual Behaviour
Locals and Globals used to have different coloring but since the latest VSCode update, they are colored the same, semantic highlighting on or off, same result. Not sure if VSCode broke this or the extension.
I inspected the tokens and the loval is variable.other the global is variable.global. They used to be different (using the default VSCode Dark 2026 theme), now they are colored the same.
Reproduction steps
create a local and a global, look at it.
Additional Notes
No response
Log File
No response
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
Visual Studio Code拡張機能で、ローカル変数を1つとグローバル変数を1つ使って問題を再現し、semantic highlightingを有効にした場合と無効にした場合のそれぞれで、それらのsemantic tokensと色付けを調べます。報告されたvariable.otherおよびvariable.globalスコープを、期待される異なる色と比較します。ローカル変数とグローバル変数が再び見た目で区別されれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- lua, vscode
- 領域
- devtools
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 静か
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 48/100