vshaxe / vshaxe

Haxe Support for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=nadako.vshaxe
MIT License
326 stars 61 forks source link

IDE integration for custom define/metadata documentation #580

Open tobil4sk opened 1 year ago

tobil4sk commented 1 year ago

With Haxe 4.3.0, projects and libraries can document custom defines/metadata: https://github.com/HaxeFoundation/haxe/pull/10858

Would be nice to get IDE integration for these features.

Currently, the custom metadata appears in the completion list, but the documentation is showing up as empty:

image

For defines, it looks like this would probably require adding some extra functionality, since the define list for completion is currently hardcoded: https://github.com/vshaxe/haxe-language-server/blob/5d0e083e374b4881d232349920c320a42845db5f/src/haxeLanguageServer/features/hxml/data/Defines.hx

Simn commented 1 year ago

I somehow thought this was already working and probably said so in my talk too. Oh well!

player-03 commented 1 month ago

Now that the metadata/defines list is exposed, what steps are necessary to get this done? I assume changes need to be made to haxe-language-server, but there's too much there for me to locate the relevant code in any reasonable time.