Intellisense / Autocomplete - LUA programming on Visual Studio Code

Hello there,
first sorry for my bad english.

I start to develop with SDK, and notice the intellisense on Visual Studio Code for Windows not work properly.
Many functions are not recognized from intellisense, like the screen above:
PD autocomplete

EG: the function 'playdate.getCrankPosition()' not showing properly.
i set correctly 'system variable', because other function shows.

Any suggestion?
Thank you.

That's because vscode doesn't know the playdate sdk. There is a file in the sdk folder called stubs.lua or something like that. I'm sure it can be used somehow for this purpose, but I don't know how

This will be fixed in a future release, thanks.

1 Like