JohnnyMorganz / luau-lsp

Language Server Implementation for Luau
MIT License
198 stars 47 forks source link

Type definition file stopped working after 1.30.0 #658

Open sweetboss12512 opened 6 days ago

sweetboss12512 commented 6 days ago

I updated the extension and my definitions file fails to read it works again when i revert to 1.29.1 settings.json:

{
    "luau-lsp.sourcemap.enabled": false,
    "luau-lsp.platform.type": "roblox",
    "luau-lsp.types.definitionFiles": [
        "./build/pilot.d.lua"
    ],
}

definitions file: pilot.d.lua

JohnnyMorganz commented 6 days ago

pilot.d.lua files reference Enum.Foo, which is a mutated type definition. We started deferring our "definitions mutations" to post initialisation, meaning the pilot.d.luau files don't have access to the mutations, causing them to error. This is a bug, thanks for the report!