LuaLS / LuaLS/lua-language-server

Why alpha is of range 0-255?

Open
#3,216 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Lua
Stars
4.4k
Forks
442
PR merge metrics
No merged PRs in 30d

Description

Hi, out of all lsps I've tried they all provide the alpha of range 0-1 but this lsp does 0-255

https://github.com/LuaLS/lua-language-server/blob/32fec3cc99af8b9a1e45c2455a8c3bd0d3e38f66/script/core/color.lua#L27

Contributor guide

Open the contributing guide

Research direction

Start by reading script/core/color.lua at line 27 and compare the alpha range used there with the LSP color representation. Trace the related color handling to determine whether the current 0-255 value is intentional; done means documenting the reason or identifying the specific behavior that should change.

Written by the indexing model from the issue text.

Assessment

Tech stack
lua
Domain
tooling
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.