summaryrefslogtreecommitdiff
path: root/dev
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-19 23:47:50 -0300
committerGabriel Schneider <[email protected]>2026-11-19 23:47:50 -0300
commitd236dff22567c2f563756695598678afb84fbef4 (patch)
tree11c5ed3c0d696587e49bf8ec5a8b2a696d5be718 /dev
parent9d4c94f03c5e34933e80e1069c16df74c2631965 (diff)
parent165f1f61a20dd95a9018177d66e6f4f40a4cb320 (diff)
downloadpardes-d236dff22567c2f563756695598678afb84fbef4.tar.gz
pardes-d236dff22567c2f563756695598678afb84fbef4.zip
integration: the documents as the tree is, with tests that do not depend on the load or the clock's second: pardes-docs (six changes of documents and the changelog) and pardes-test-robust (the corpus's click in one write, the two clock-second core tests, winch, headersweep and grep waiting on what they need, and the language server's false "still loading" message), merged without a conflict on pardes-merge22; tui core-test 848/991 (143 skipped), shell-test 1027/1030
Co-Authored-By: Claude Fable 5.2 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'dev')
-rw-r--r--dev/lsp/lsp_client.zig9
1 files changed, 7 insertions, 2 deletions
diff --git a/dev/lsp/lsp_client.zig b/dev/lsp/lsp_client.zig
index 83aea44f..4ad8dace 100644
--- a/dev/lsp/lsp_client.zig
+++ b/dev/lsp/lsp_client.zig
@@ -783,8 +783,13 @@ fn answer(io: std.Io, arena: std.mem.Allocator, si: usize, req: lsp.Req, out: *s
if (!try timedWait(c, io, startup_deadline)) break;
}
if (starting or c.loading or c.progress > 0) {
- tr.note("{s} is still loading: waiting for it, then asking again", .{specs[si].name});
- post(si, .always, "{s} is still loading the workspace; the answer comes when it is done\u{2026}", .{specs[si].name});
+ // Said only when the server says it: a startup window that ran
+ // out with no word of loading is asked again quietly, and the
+ // message row keeps what it had (an empty answer is an answer).
+ if (c.loading or c.progress > 0) {
+ tr.note("{s} is still loading: waiting for it, then asking again", .{specs[si].name});
+ post(si, .always, "{s} is still loading the workspace; the answer comes when it is done\u{2026}", .{specs[si].name});
+ }
while ((c.loading or c.progress > 0) and c.gen == g and c.alive()) _ = try timedWait(c, io, nowMs() + 500);
out.end = before;
try attempt(c, io, si, arena, req, out, tr, g);