vscode-lua
vscode-lua copied to clipboard
Module 'self' autocompletion
It would be nice to have autocompletion for modules using the 'self' parameter.
module = {
enabled = false,
toggle = function(self)
-- autocompletion for 'enabled' here
self.enabled = not self.enabled
end
}
This might be a little tricky as self isn't explicitly tied to the table, so it could become ambiguous on more complex scenarios. The same issue appears on methods where self is transparently passed into the scope, as meta-methods can affect how fields are accessed and throw off the analysis pass.
This will make vscode-lua a REAL lua ide 👍