Hey there, I use the language server VS Code extension for my Playdate project and it's been super helpful — thanks for your great work. 🙌
Since the latest release, I noticed that all the self calls I make are now flagged as Lua Diagnostics (need-check-nil). I'm not familiar with the internals of this diagnostic so I'm not sure if this is intended or not. Here's a sample:
class("Adventurer", { troops = {} }).extends()
function Adventurer:addTroop(troop)
table.insert(self.troops, troop)
end
Here the self.troops call in the addTroop function now gets flagged as Lua Diagnostics (need-check-nil). (Playdate's class implementation can be found in their SDK.)
Hey there, I use the language server VS Code extension for my Playdate project and it's been super helpful — thanks for your great work. 🙌
Since the latest release, I noticed that all the
self
calls I make are now flagged asLua Diagnostics (need-check-nil)
. I'm not familiar with the internals of this diagnostic so I'm not sure if this is intended or not. Here's a sample:Here the
self.troops
call in theaddTroop
function now gets flagged asLua Diagnostics (need-check-nil)
. (Playdate'sclass
implementation can be found in their SDK.)Screenshots
Environment