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

functions in current module dont autocomplete if after ->

Open kswope opened this issue 2 years ago • 1 comments

this autocompletes "mylog"

let mylog = (s: string) => Console.log(s)

mylog("hello")

this just prematurely offers a bunch of String module functions even before I begin typing mylong but never completes mylog as Im typing it

let mylog = (s: string) => Console.log(s)

"hello"->mylog

Seems to be the same for "opened" modules and even ones opened with bsc-flags from rescript.json

kswope avatar Jan 28 '24 04:01 kswope

Yeah this is a matter of pipe completions being specialized and not including regular results. Should be a fairly simple fix.

zth avatar Jan 30 '24 20:01 zth