github JohnnyMorganz/StyLua v2.3.0

4 hours ago

[2.3.0] - 2025-09-27

Added

  • The language server has an initialization option called respect_editor_formatting_options.
    If it's true, the formatting handler will override the configurations indent-width and indent-type with values from FormattingOptions

Changed

  • In language server mode, compute the difference between the unformatted and formatted document and only respond with the changes, rather than sending an edit for the whole file
  • Include serverInfo in the language server's InitializeResponse

Fixed

  • Fixed comments lost from expression after parentheses are removed when we are attempting to "hang" the expression. (#1033)
  • Fixed document_range_formatting_provider capability missing from ServerCapabilities in language server mode
  • Fixed current working directory incorrectly used as config search root in language server mode -- now, the root of the opened workspace is used instead (#1032)
  • Language server mode now correctly respects .styluaignore files (#1035)
  • Luau: Fixed parentheses incorrectly removed on a single type that is the default for a variadic generic parameter (#1038)

External Contributions

New Contributors

Full Changelog: v2.2.0...v2.3.0

Don't miss a new StyLua release

NewReleases is sending notifications on new releases.