summaryrefslogtreecommitdiff
path: root/lsp-write.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2024-10-29 21:02:38 -0400
committerpommicket <pommicket@gmail.com>2024-10-29 21:04:13 -0400
commitd070e6c8be957db89ef15f912925dd605be500a1 (patch)
treef9fa7f88a568f614018a8ac498d6799294895b0a /lsp-write.c
parent388709d6bd89c119d35e2cccbb43f9337e91b7d8 (diff)
Fix find+replace when replacement matches pattern
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);
}