Skip to content

Commit 0a681ef

Browse files
committed
fix stringify
1 parent 3d1e5c1 commit 0a681ef

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

analysis/src/Commands.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ let format ~path =
260260
let diagnosticSyntax ~path =
261261
print_endline
262262
(match Diagnostics.document_syntax ~path with
263-
| [] -> Protocol.null
263+
| [] -> "[]"
264264
| d -> Protocol.array d)
265265

266266
let test ~path =

analysis/src/Protocol.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ let stringifyCodeAction ca =
132132

133133
let stringifyDiagnostic d =
134134
Printf.sprintf {|{
135-
"range: %s,
135+
"range": %s,
136136
"message": "%s",
137137
"severity": %d,
138138
}|}

0 commit comments

Comments
 (0)