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

Add completion for throw keyword

Open nojaf opened this issue 3 months ago • 2 comments

image

nojaf avatar Sep 19 '25 08:09 nojaf

Open in StackBlitz

rescript

npm i https://pkg.pr.new/rescript-lang/rescript@7905
@rescript/darwin-arm64

npm i https://pkg.pr.new/rescript-lang/rescript/@rescript/darwin-arm64@7905
@rescript/darwin-x64

npm i https://pkg.pr.new/rescript-lang/rescript/@rescript/darwin-x64@7905
@rescript/linux-arm64

npm i https://pkg.pr.new/rescript-lang/rescript/@rescript/linux-arm64@7905
@rescript/linux-x64

npm i https://pkg.pr.new/rescript-lang/rescript/@rescript/linux-x64@7905
@rescript/runtime

npm i https://pkg.pr.new/rescript-lang/rescript/@rescript/runtime@7905
@rescript/win32-x64

npm i https://pkg.pr.new/rescript-lang/rescript/@rescript/win32-x64@7905

commit: 7dc6ff1

pkg-pr-new[bot] avatar Sep 19 '25 08:09 pkg-pr-new[bot]

Maybe this should more autocomplete JsError.throwWithMessage("Hello!") and JsExn.throw("some non-error value!") instead. (docs)

I cannot ever remember those things and I basically want to have something show up when I type the throw keyword. (Or I'm typing toward that keyword, should trigger on thr as well).

I'm okay with leaving the camels behind.

nojaf avatar Sep 24 '25 13:09 nojaf