LuaLS / lua-language-server

A language server that offers Lua language support - programmed in Lua
https://luals.github.io
MIT License
3.26k stars 306 forks source link

Love2D newImage with 1 parameter - false warning #1173

Closed LePadawan closed 2 years ago

LePadawan commented 2 years ago

Hi,

I love your extension in VSCode but I use the Love2D framework and when you create a new Image with only 1 parameter (the filepath), the warning is not necessary. It is perfectly fine to just use 1 parameter as the second one is optional - and defaulted to nil - ( see the love2d doc )

Can you maybe remove this warning ? Thanks :)

Screenshots bad_warning

Environment:

C3pa commented 2 years ago

To fix the issue you are encountering love-api builder needs to be re-run.