rescript-vscode icon indicating copy to clipboard operation
rescript-vscode copied to clipboard

Missing go to module definition in first class modules and functors

Open alarbada opened this issue 4 years ago • 1 comments

To reproduce with rescript 9.1.4:

module type Database = {
  let query: string => unit
}

module MakeHandler = (Db: Database) => { // Go to definition here fails, when it clearly compiles 
  let handle = (str1, str2) => {
    Db.query("select * from what")

    Js.log(str1)
    Js.log(str2)
  }
}

module Handler = MakeHandler({
  let query = str => Js.log(str)
})

let handler = (module(DB: Database)) => { // Also fails
  DB.query("asdfasdfads asd fadsf as")
}

alarbada avatar Sep 25 '21 17:09 alarbada

Currently there's no processing of module types, in particular no jump to definition.

cristianoc avatar Oct 01 '21 12:10 cristianoc