-
Notifications
You must be signed in to change notification settings - Fork 58
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
handling of module types (in doc extraction) #902
Comments
Any advice on how/where I should start trying to fix this myself? I'd be willing to try to find a solution, but I'm not sure where to start. |
It indeed seems like there's not real distinction made between modules and module types. @cristianoc any insight? |
I would start with hover on a module using the vscode extension, eg a file or a locally defined sub module. |
@cristianoc 🙏 that did it: #902 |
@zth afaiu #925 successfully addresses 2 (out of 4) of my points in the description:
After merging #925 a module annotated with a module type will still be missing in the generated docs and LSP auto completion still won't take inline modules in the same line (above) into account. |
Currently, it seems to me there is no distinction made between a
module
and amodule type
in doc extraction (I believe, this is true for the LSP as well?). The extracted docs (json) gives no hint, that it's a module type and not an actual implementation.Furthermore, any implementing module explicitly annotated with the module type is being ignored in doc extraction:
The following rescript code:
produces this json:
I'm honestly not sure how I'd expect it to be represented in the extracted json. (
kind
currently being one ofValue
,Type
,Module
)*.resi
file) should be present in the docs.module
andmodule type
as well:Typing
let x = ModuleType.Example.
, LSP offers completion forModuleType.Example.f
. - Which is just defined in the module type. Therefore this will yield a compilation error. [addressed in distinguish regular modules from module types #925]The text was updated successfully, but these errors were encountered: