lua-language-server
lua-language-server copied to clipboard
Why alpha is of range 0-255?
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
Because Lua doesn't have any unified specification for what a color should be, the approach used here is to convert strings in the format #12345678 into colors in LSP.