Skip to content

Releases: JohnnyMorganz/luau-lsp

1.35.0

10 Nov 13:23
Compare
Choose a tag to compare

[1.35.0] - 2024-11-10

Removed

  • Removed luau-lsp.require.mode in preparation for Luau's new require by string semantics. The default is now relative to the file the require is from.

Added

  • Added bracket pairs colorization for <> for generic types
  • Added configuration option luau-lsp.sourcemap.sourcemapFile to specify a different name to use for the sourcemap
  • A function call on a table with a __call metamethod will now show Signature Help and documentation (#724)
  • We now warn about non-alphanumeric FFlag names, and trim any leading/trailing whitespace in FFlag configuration on the VSCode extension (#648)

Changed

  • Sync to upstream Luau 0.650

Fixed

  • Fixed autocompletion, type registration, hover types/documentation, and some crashes for cases where the new solver is enabled
  • Fixed the refinement for typeof(inst) == "Instance" since Object became the root class type (#814)
  • Fixed inlay hints incorrectly showing for first parameter in static function when the function is called as a method (with :) (#766)
  • Fixed bracket pair completion breaking inside of generic type parameter list (#741)
  • Don't show aliases after a directory separator is seen in require string autocompletion (#748)
  • Fixed crashing of overload resolution in signature help when new solver is enabled (#823)

What's Changed

New Contributors

Full Changelog: 1.34.0...1.35.0

1.34.0

27 Oct 17:05
Compare
Choose a tag to compare

Note: this release includes a fix for the new Roblox type definitions. Old versions of the Language Server will crash when the types are updated.

[1.34.0] - 2024-10-27

Changed

  • Sync to upstream Luau 0.649

Fixed

  • Fixed internal handling of Roblox datatypes segfaulting due to introduction of "Object" class

1.33.1

05 Oct 10:53
Compare
Choose a tag to compare

[1.33.1] - 2024-10-05

Changed

  • Sync to upstream Luau 0.646

Fixed

  • Fixed a regression in 1.30.0 breaking type definitions files that rely on mutations like Enum.Foo
    (#658)

1.33.0

27 Sep 09:25
Compare
Choose a tag to compare

[1.33.0] - 2024-09-27

Changed

  • Sync to upstream Luau 0.644
  • The VSCode extension will now sync flags beginning with FIntLuau, DFFlagLuau and DFIntLuau (previously it would only sync FFlagLuau)

1.32.4

11 Sep 18:13
Compare
Choose a tag to compare

[1.32.4] - 2024-09-11

Changed

  • Sync to upstream Luau 0.642

1.32.3

10 Aug 14:40
Compare
Choose a tag to compare

[1.32.3] - 2024-08-10

Fixed

  • Fixed a regression in 1.32.2 breaking resolution of virtual paths from real paths, particularly around script and relative usages of it. (#734, #735)

1.32.2

10 Aug 11:59
Compare
Choose a tag to compare

[1.32.2] - 2024-08-10

Changed

  • Sync to upstream Luau 0.638

Fixed

  • Fixed a regression in 1.32.0 causing luau-lsp.ignoreGlobs and luau-lsp.completion.imports.ignoreGlobs to not work (#719)
  • Fixed auto-imports injecting a require in the middle of a multi-line require when introducing a require with lower lexicographical ordering (#725)
  • Fixed documentation not showing for properties of an intersected type table in Hover and Autocomplete (#715)

1.32.1

23 Jul 11:17
Compare
Choose a tag to compare

[1.32.1] - 2024-07-23

Changed

  • Sync to upstream Luau 0.635

Fixed

  • Fixed :FindFirstChild() returning Instance instead of Instance? when applied to DataModel types
  • Fixed :FindFirstChild() not supporting a boolean "recursive" 2nd parameter on DataModel types (#704)
  • Fixed :WaitForChild() not supporting a number "timeout" 2nd parameter on DataModel types (#704)
  • Fixed inlay hint off-by-one on a function definition with an explicit self (i.e., function Class.foo(self, param)) (#702)
  • Fixed :GetPropertyChangedSignal() still showing children in autocomplete for DataModel types (#699)
  • Fixed grandparent's children showing up in autocomplete of FindFirstChild
  • Fixed tilde expansion (~) for paths to home directory not working in VSCode (#707)

1.32.0

14 Jul 11:40
Compare
Choose a tag to compare

[1.32.0] - 2024-07-14

Added

  • Support tilde expansion (~) to home directory for definition and documentation file paths
  • Added a datamodel-aware WaitForChild function
  • We now apply a datamodel-aware FindFirstChild function to the top level datamodel and service types (#543)
  • Added autocompletion of children to :FindFirstChild("") and :WaitForChild("") (#685)
  • Attached magic function to Instance.fromExisting to allow it to operate similar to inst:Clone (#678)
  • Added separate configuration luau-lsp.completion.imports.ignoreGlobs to filter out files for auto-importing. We no longer check luau-lsp.ignoreGlobs. (#686)
  • Diagnostics will now refresh when the Studio plugin sends updated DataModel information (#637)

Changed

  • Sync to upstream Luau 0.634
  • Reverted "configuration in initializationOptions" and reintroduced messages postponing due to crashes in clients that do not send initial config

Fixed

  • Fix static linking with MSVC Runtime for release binaries
  • Fixed clients that do not support pull diagnostics erroring with "server not yet received configuration for diagnostics"
  • Don't show children in autocomplete for :GetPropertyChangedSignal("") (#684)
  • Fixed autocomplete end not working for non-local functions (#554)
  • Fixed extension failing to get types information on macOS with "'fetch' is not defined"
  • Fixed crashes under new type solver due to internal removal of different type inference for autocomplete/non-autocomplete contexts (#692)
  • Fixed crashes where internally we fail to normalise a "virtual path" from a sourcemap to a real path, causing it to mismatch with the filepath understood by VSCode, leading to desync in internal file state. (#645)

1.31.1

14 Jul 11:33
Compare
Choose a tag to compare

[1.31.1] - 2024-07-07

Fixed

  • The binary on Windows now statically links to the MSVC Runtime to make it more portable (#657)
  • Fixed Roblox types still showing when setting luau-lsp.platform.type to something other than roblox. (#668)