@@ -129,14 +129,14 @@ let main () =
129
129
| _ -> print_endline " \" ERR: Did not find root \" " )
130
130
| [_; " completion" ; path; line; col; currentFile] ->
131
131
printHeaderInfo path line col;
132
- Commands. completion ~debug ~path
133
- ~pos: (int_of_string line, int_of_string col)
134
- ~current File
135
- | [_; " completion-revamped " ; path; line; col; currentFile] ->
136
- printHeaderInfo path line col;
137
- Commands. completionRevamped ~debug ~path
138
- ~pos: (int_of_string line, int_of_string col)
139
- ~current File
132
+ if ! Cfg. useRevampedCompletion then
133
+ Commands. completionRevamped ~debug ~path
134
+ ~pos: (int_of_string line, int_of_string col)
135
+ ~ current File
136
+ else
137
+ Commands. completion ~debug ~path
138
+ ~pos: (int_of_string line, int_of_string col)
139
+ ~current File
140
140
| [_; " completionResolve" ; path; modulePath] ->
141
141
Commands. completionResolve ~path ~module Path
142
142
| [_; " definition" ; path; line; col] ->
@@ -216,6 +216,7 @@ let main () =
216
216
| [_; " test" ; path] -> Commands. test ~path
217
217
| [_; " test_revamped" ; path; config_file_path] ->
218
218
Packages. overrideConfigFilePath := Some config_file_path;
219
+ Cfg. useRevampedCompletion := true ;
219
220
Commands. test ~path
220
221
| args when List. mem " -h" args || List. mem " --help" args -> prerr_endline help
221
222
| _ ->
0 commit comments