rescript-lang / rescript-vscode

Official VSCode plugin for ReScript
MIT License
329 stars 57 forks source link

LSP autocompletion not offering module type in the same file #1011

Open woeps opened 5 months ago

woeps commented 5 months ago

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.