summaryrefslogtreecommitdiff
path: root/lsp-write.c
diff options
context:
space:
mode:
Diffstat (limited to 'lsp-write.c')
-rw-r--r--lsp-write.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lsp-write.c b/lsp-write.c
index 70a9f39..9788347 100644
--- a/lsp-write.c
+++ b/lsp-write.c
@@ -117,6 +117,7 @@ static void write_arr_elem_arr_start(JSONWriter *o) {
}
static void write_number(JSONWriter *o, double number) {
+ // NOTE: it's important to have this precision here, e.g. for large InitializeParams.processId
str_builder_appendf(o->builder, "%.17g", number);
}