[0.11.0] - 2021-09-16
Changed
- In Luau type tables, a newline after the opening brace will now force the type table multiline. This is the same procedure as standard tables. (#226)
- In Luau, type specifiers for function parameters will now force the parameters to be formatted multiline if a specifier is multiline (and there is more than one parameter).
- Improved error messages to make them easier to understand.
Fixed
- Fixed range formatting no longer working when setting the range to statements inside nested blocks. (#239)
- Fixed ignore file present in cwd not taken into account if cwd not included in file paths to format. (#249)
- Fixed config locations (
$XDG_CONFIG_HOME
and$HOME/.config
) not being looked into correctly on macOS when--search-parent-directories
is used. (#260) - Fixed incorrect indentation of multiline type specifiers for function parameters under the
luau
feature flag. (#256) - Fixed unstable formatting caused by a singleline table which just reaches the column width. (#261)
- Fixed misformatting of a binop expression as precedence of the RHS expression was not taken into account. (#257, #261)