rescript-vscode
rescript-vscode copied to clipboard
LSP autocompletion not offering module type in the same file
There is no autocompletion help by the LSP to help with annotating the module type with a module type being a submodule in the same file. (The LSP helps annotating the module type, when the module type from another file is used.)
module type MT = {
let x: int
}
module M: //<-- Cursor is here, but LSP will not suggest MT
This may not be the most common case, but could add some convenience.
Note: This behavior was first stated in https://github.com/rescript-lang/rescript-vscode/issues/902, but was added as a separate issue for transparency.