| Execution Environment imported by default [message #1077540] |
Thu, 01 August 2013 17:23  |
Andres Ispani Messages: 3 Registered: August 2013 |
Junior Member |
|
|
Hi, I'm writing an Execution Environment, and want to have code completion working for some Lua libraries.
Right now, it's working correctly as long as I require the module like :
Quote: local moduleName = require('moduleName')
However, in our lua environment it's not necessary to do the require, the libraries are available by default. Is it possible to automatically enable completion (like it does for the built in modules like math, etc)?
|
|
|
|
|
| Re: Execution Environment imported by default [message #1078275 is a reply to message #1078197] |
Fri, 02 August 2013 15:49   |
Andres Ispani Messages: 3 Registered: August 2013 |
Junior Member |
|
|
Nevermind, I just read here that it's not possible... I'll just duplicate all definitions.
What I cannot find is if it's possible to access global variables defined on a module outside the Execution Environment.
Say I have a lua module (on a specific project, not a part of the Execution Environment) that does something like:
SomeClass={} --global variable
SomeClass.__index=SomeClass
function SomeClass:create()
-- etc
end
The module is then used just using 'require "SomeClass"', (instead of 'SomeClass = require "SomeClass")
How would I comment this to enable auto completion?
I tried "-- @field [parent=#global] #SomeClass SomeClass" but (as the documentation also says), this only works inside the module, and not if the module is required
[Updated on: Fri, 02 August 2013 16:59] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.02541 seconds