rescript-vscode
rescript-vscode copied to clipboard
Missing go to module definition in first class modules and functors
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")
}
Currently there's no processing of module types, in particular no jump to definition.