[1.26.0] - 2023-11-19
Added
- Added support for documentation comments on table type properties:
type Foo = {
--- A documentation comment
map: () -> ()
}
- We now show the file path in the completion description when auto-requiring files
Changed
- Sync to upstream Luau 0.604
- Overhauled command line argument parsing system to be more consistent and flexible
- Deprioritized
loadstring
in autocomplete
luau-lsp.diagnostics.strictDatamodelTypes
now defaults to false
on the language server side (note, it was already default false
in VSCode).
Defaulting to true
was unintentional. This will affect external language client users (e.g. neovim)
- Analyze CLI tool now respects
luau-lsp.diagnostics.strictDatamodelTypes
if set in the provided configuration.
The flag --no-strict-dm-types
still remains for backwards compatibility reasons, but is now deprecated.
Fixed
- Attempting to rename a generic type parameter now correctly renames it in all locations
- Fixed renaming a local variable not appropriately renaming any imported types
- Auto-import requires will now show the full codeblock that will be inserted, rather than just the first line if also inserting a service