I’m using EmmyLua with VSCode which shows the number of times functions are used, very useful, but it only works with .lua file extension. For some reason defold names my scripts (lua) .script.
Will renaming it to .lua work or break anything or require anything special?
Why is .script used if lua is the only defold programming language?
Setting up defold kit for vscode magically fixed the problem, and emmylua works
1 Like
Because the Defold tools need a way to differentiate between a Lua module and a Defold script file with lifecycle functions. A Defold script file can also have script properties (using go.property) and these should be shown in a certain way in the editor.
3 Likes