File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -118,7 +118,16 @@ COMMANDS *rescript-commands*
118118 after writing your new .res file, otherwise the compiler will not compile.
119119
120120*:RescriptBuild*
121- Builds your current project with g:rescript_build_exe
121+ Builds your current project with g:rescript_build_exe (without -make-world
122+ flag)
123+
124+ *:RescriptBuildWorld*
125+ Builds your current project with g:rescript_build_exe (with -make-world).
126+ This is useful for building your ReScript dependencies as well.
127+
128+ *:RescriptCleanWorld*
129+ Cleans all project files + all ReScript dependencies. This is useful for
130+ fixing stale caches (e.g. when upgrading ReScript versions).
122131
123132*:RescriptTypeHint*
124133 Uses the g:rescript_editor_support_exe executable to extract
Original file line number Diff line number Diff line change @@ -5,6 +5,8 @@ let g:loaded_vim_rescript = 1
55
66command ! RescriptFormat call rescript#Format ()
77command ! RescriptBuild call rescript#BuildProject ()
8+ command ! RescriptBuildWorld call rescript#BuildProject (" -make-world" )
9+ command ! RescriptCleanWorld call rescript#BuildProject (" -clean-world" )
810command ! RescriptTypeHint call rescript#TypeHint ()
911command ! RescriptInfo call rescript#Info ()
1012command ! RescriptJumpToDefinition call rescript#JumpToDefinition ()
You can’t perform that action at this time.
0 commit comments