Eclipse LDT autocompletion
I finally have my autocompletion for Eclipse LDT at a point where I feel I can share it with everyone. You can find it here.
|
I did some hack work on LDT and made it to support some more features.
Inline comment function definition: Type reference through pairs and ipairs: Dots support: |
That looks interesting. Any plans for releasing it?
And one tiny suggestion. LDT already has a documentation language. Maybe you could use that instead of inventing a new one? |
Yes, I have been using LDT's lua doc all along, but it has many limitations. For example, there is no way to define a parameter also as a function and auto-complete it in body block, like a lamda parameter. In the following example, I can use the parameter named stringProvider to create a string.
or define the result as a function too: |
Well. As far as I have tried it, the current auto completion doesn't really work anyways, aside from the EE I put together, so anything is better than what LDT currently offers. :D
But what I meant is couldn't you reuse the syntax like this: Lua Code:
|
By default luadoc convention, function definitions can not be used as type directly, you need to link them by callof annotation.
Lua Code:
|
I have shared my improved version of LDT.
https://dl.bintray.com/cloudor/eclipse/ldt/ |
I wanted to go with eclipse and autocompletion. I wasn't able to get auto-completion with the zip from "Eclipse LDT Autocomplete" as execution environment. I tried to regen the zip with the tool on github within a container, but I got a zip size of ~40ko instead 290ko for the addon.
Additionally, I was able to get autocompletion with adding lib as external source folder, pointing a dir with uncompressed api.zip. |
I've actually updated the script earlier and uploaded a new version of the autocompletion. There's also a tiny inconsistency in the latest ESOUIDocumentation.txt file which makes the script fail. You'll need to add underscores (_) around the argument and return names for the InsecureNext function in the txt.
|
Nice, for what I tested, seems working fine.
I ll check next patch about the script you commited on github. x) And thanks. ;) |
All times are GMT -6. The time now is 06:05 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI