Skip to content

Commit

Permalink
Fix RescriptBuild command
Browse files Browse the repository at this point in the history
  • Loading branch information
ryyppy committed May 6, 2021
1 parent d26fe6c commit faeeb2d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion autoload/rescript.vim
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ function! rescript#Build(...)
" Otherwise we are in modern mode and use rescript.exe
let l:cmd = g:rescript_exe
if l:with_deps ==? 1
let l:cmd = g:rescript_exe . " -with-deps"
let l:cmd = g:rescript_exe . " build -with-deps"
endif
endif

Expand Down Expand Up @@ -511,6 +511,7 @@ function! rescript#ReasonToRescript()
echo "Current buffer is not a .re / .rei file... Do nothing."
return
endif

let l:command = g:rescript_bsc_exe . " -format " . @%

silent let l:out = systemlist(l:command)
Expand Down Expand Up @@ -548,6 +549,7 @@ function! rescript#Info()
echo "Detected rescript_bsb_exe: " . g:rescript_bsb_exe
else
echo "Detected rescript_exe: " . g:rescript_exe
echo "Detected (legacy) rescript_bsc_exe: " . g:rescript_bsc_exe
endif

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

0 comments on commit faeeb2d

Please sign in to comment.