[2.4.0] - 2026-03-07
Added
- Added flag
--no-ignore-vcsto continue formatting files listed in a.gitignorefile, instead of skipping over them (#895) - Support
call_parentheses = Inputin editorconfig (#1057) - Luau: Support formatting explicit type instantiations (
f<<T>>(),obj:method<<T>>()) - Support
stylua_syntaxandstylua_block_newline_gapsproperties in editorconfig (#1054)
Fixed
- Fixed syntax error in output when a single-line comment appears between an index suffix and a table call argument, e.g.
foo.bar -- comment { }(#873) - Fixed malformed formatting when a binary expression inside of a function call with comments around the operators is incorrectly collapsed onto one line (#996)
- Fixed repeated unary minus on long lines being collapsed into a comment, e.g.
- - - - -5becoming-----5(#1075) - Fixed
--preserve-block-newline-gapsCLI flag not being applied as a config override - Fixed LSP not respecting
.stylua.tomlon Windows due to incorrect file URI to path conversion (#1051)
External Contributions
- Remove WASM build workaround by @magic-akari in #1060
- Fix
call_parentheses = Inputdon't work in editorconfig by @phanen in #1057 - Fix path conversion on Windows by @8LWXpg in #1068
New Contributors
Full Changelog: v2.3.1...v2.4.0