File tree 1 file changed +5
-4
lines changed 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -220,13 +220,14 @@ let rename ~path ~line ~col ~newName =
220
220
221
221
let format ~path =
222
222
if Filename. check_suffix path " .res" then
223
- let {Res_driver. parsetree = structure; comments} =
223
+ let {Res_driver. parsetree = structure; comments; diagnostics } =
224
224
Res_driver. parsingEngine.parseImplementation ~for Printer:true
225
225
~filename: path
226
226
in
227
- (* if List.length diagnostics > 0 then ""
228
- else *)
229
- Res_printer. printImplementation ! Res_cli.ResClflags. width structure comments
227
+ if List. length diagnostics > 0 then " "
228
+ else
229
+ Res_printer. printImplementation ! Res_cli.ResClflags. width structure
230
+ comments
230
231
else if Filename. check_suffix path " .resi" then
231
232
let {Res_driver. parsetree = signature; comments; diagnostics} =
232
233
Res_driver. parsingEngine.parseInterface ~for Printer:true ~filename: path
You can’t perform that action at this time.
0 commit comments