Looks like there are 2 aspects:
1 discovery: that seems like the job of autocomplete, and should already work right now
2 documentation: that seems like the job for a lense (to be optionally turned on via configuration)
Dies that look right?
If so, 2 is a good candidate for an issue to be opened on the rescript-vscode repository.
It depends on the use case.
If the use case is: where is this coming from? Then hovering should handle it.
If the use case is: tell me everything that this file uses, then it’s more like a lense.
Either way, it would be good to spell out what the use case is and what utility is derived from it.
It is definitely the latter. Autocomplete works great if I know the top level module, but falls short when there it nothing “to complete”. It might even be better to have a command that prints a list of open Modules in the terminal as a POC.