-
-
Notifications
You must be signed in to change notification settings - Fork 666
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Register custom metadata to completion provider #10844
Comments
IMO this should be handled in some declarative way. We already have |
So each lib would provide their own meta.json which compiler would "merge" with its own meta.json? |
Yes, and we can do the same with defines (although I forget where these show outside of |
Maybe something similar to extraParams resolution (though it would only work for libs and not user code...), but that would probably require to translate it to some init macro call registering the file (which could be used directly for user code?) |
a user definable meta.json would be a nice solution! something like a .hxml param |
Small comment on this: keep in mind that the JSON files for metadata and defines are used during the compile time of the Haxe compiler. We can of course try to bring a similar mechanism to the Haxe compiler runtime. |
Yes this would require moving some things around, but that should be doable even in OCaml. |
I'm not sure how much of an issue this would be to implement, but I think it would be a nice quality of life improvement to be able to register custom defined metadata to the provider.
@
or@:
would be allowed, an API for this could behaxe.macro.Completion.registerMeta('property', 'description')
something "simple"The text was updated successfully, but these errors were encountered: