@G,
There is an update that fixes the autocomplete issues. There are a few things you should be aware of:
When you invoke autocomplete on a table based function you will get additional entries like this:
http://view.xscreenshot.com/86837e349264865d0ebf99a1b5f7b8a3
It is based on our lua analysis engine so it should infer the keys properly based on your function. However, this currently only works for functions that have just one parameter, multiple parameters wont be expanded, But…
if you invoke autocomplete inside a table
http://view.xscreenshot.com/1ebdc5ca160a5c822624e37cee049d0d
You will get a list of table keys.
One more caveat. The corona autocomplete stubs we have right now are not up to date so you might not get this behavior for all functions. For instance, widget.newButton(table) should have all the args expanded out but will not because the stubs do not yet have this detail.
If you ctrl-click on it it will take you to the stub and it looks like this:
--- -- @param options @class table -- @return @class ButtonWidget -- function widget.newButton( options ) end
to support the table parameters, it ends up looking something like:
--- -- @param options @class table -- @return @class ButtonWidget -- function widget.newButton( options ) options.id = "" options.left = 1 options.right = 1 options.label = "" options.labelAlign = "" options.labelColor = {} options.labelXOffset = 1 options.labelYOffset = 1 end
There is nothing special about the stubs, the IDE treats them the same as your lua code.
Regards,
M.Y. Developers