Similar issue to: #1108
My understanding from reading forums is that currently the excellent reanalyze tool is not integrated into the lsp, but is a separate tool that can either be invoked directly by the vscode plugin or from the rescript-tools cli.
If this could be integrated into the LSP, users like myself who don't use vscode could directly benefit from these tools without having to use vscode. I personally use Emacs, but lsp seems to be the best way to ensure cross-editor compatibility.
I could also work on parsing the output of the cli tool in the emacs mode but this could be a little cumbersome/error prone.
Happy to look into this myself is someone points me in the right direction.