rescript-lang / rescript-vscode

Official VSCode plugin for ReScript
MIT License
327 stars 55 forks source link

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

Open woeps opened 3 months ago

woeps commented 3 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.