1.18.0
[1.18.0] - 2023-03-20
Added
- Added support for changing
Color3
colors using the color picker - Added support for automatic require imports (currently only for Roblox mode). If you start typing the name of a module in your code, you can autocomplete the require statement automatically. This feature is enabled by setting
luau-lsp.completion.suggestImports
. (Thanks @HawDevelopment!)
Code_v0GdNGjzUX.mp4
Changed
- Sync to upstream Luau 0.568.
In particular, this provide improvements to control flow analysis refinements. This allows the type checker to recognise type
options that are unreachable after a conditional/unconditional code block. e.g.:
local function x(x: string?)
if not x then return end
-- x is 'string' here
end
To enable this feature, the FFlag LuauTinyControlFlowAnalysis
must currently be enabled.
- The language server will only be enabled on "file" and "untitled" schemes. This means it will be disabled in diff mode
and live share. This is because we cannot yet provide sufficient information in these contexts.