Skip to content

Commit faeeb2d

Browse files
committed
Fix RescriptBuild command
1 parent d26fe6c commit faeeb2d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

autoload/rescript.vim

+3-1
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ function! rescript#Build(...)
427427
" Otherwise we are in modern mode and use rescript.exe
428428
let l:cmd = g:rescript_exe
429429
if l:with_deps ==? 1
430-
let l:cmd = g:rescript_exe . " -with-deps"
430+
let l:cmd = g:rescript_exe . " build -with-deps"
431431
endif
432432
endif
433433

@@ -511,6 +511,7 @@ function! rescript#ReasonToRescript()
511511
echo "Current buffer is not a .re / .rei file... Do nothing."
512512
return
513513
endif
514+
514515
let l:command = g:rescript_bsc_exe . " -format " . @%
515516

516517
silent let l:out = systemlist(l:command)
@@ -548,6 +549,7 @@ function! rescript#Info()
548549
echo "Detected rescript_bsb_exe: " . g:rescript_bsb_exe
549550
else
550551
echo "Detected rescript_exe: " . g:rescript_exe
552+
echo "Detected (legacy) rescript_bsc_exe: " . g:rescript_bsc_exe
551553
endif
552554

553555
echo "Bundled rescript server version: " . rescript#GetRescriptServerVersion()

0 commit comments

Comments
 (0)