lime
lime copied to clipboard
`lime display` with include.xml files
It would be nice to have code completion support for libraries. I think this more or less just comes down to having lime display
work with include.xml
files?
It's a good thought, but I don't think we can do that. The problem is Haxe's code completion requires a main class, which libraries lack.
The obvious workaround is to give the library a simple/placeholder main class. But at that point, you might as well create a basic project (Main.hx
plus project.xml
are enough to get off the ground). Then Lime will attempt to generate code completion for every library imported by project.xml
.
Basically, this should all just work as-is. If not, there may be something in the library's code that breaks code completion.
The problem is Haxe's code completion requires a main class, [...].
That's not true.
Really? Ok, then in theory this is possible. Not high priority since you can work around it, but we'll keep it in the list.