summaryrefslogtreecommitdiff
path: root/src/fs.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-09-29 12:19:39 -0300
committerGabriel Schneider <[email protected]>2026-10-01 00:12:16 -0300
commit4f57043e39396bc958a103f87466870cf8dafe00 (patch)
tree89ec869d2e3b3eb231f14f9298bb56afa9e0f6ae /src/fs.zig
parentab220b89afcfda848cf84c18cc135a2e5c392b79 (diff)
downloadpardes-4f57043e39396bc958a103f87466870cf8dafe00.tar.gz
pardes-4f57043e39396bc958a103f87466870cf8dafe00.zip
A language server question that finds nothing, cannot be answered or has no room fails, and so does a write to an image's or PDF's body
Callers or Callees with nothing found, Hover or Lspwhy with no room for its pane, and a question asked of no file's pane said nothing, the 9P write succeeding; a body write to an image or PDF pane went nowhere. A write that asks a language server now waits for its answer (turn.lsp_answers), and what fails there -- nothing found, no answer, a backend's @none why, a placement with no room (ENOSPC) -- fails the write and logs its err. No diagnostics is said, not failed. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'src/fs.zig')
-rw-r--r--src/fs.zig3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/fs.zig b/src/fs.zig
index 5d7d68e8..5fd1fd4e 100644
--- a/src/fs.zig
+++ b/src/fs.zig
@@ -1308,6 +1308,9 @@ pub const Namespace = struct {
header_held: bool = false,
late_failure: [256]u8 = undefined,
late_failure_len: u16 = 0,
+ /// A 9P write asked a language server something: the answer count it
+ /// waits to change (`turn.lsp_answers`), so its failure is the write's.
+ lsp_answer_at: ?u64 = null,
/// The serial of the pane the root's exec or look last ran a line at
/// (the keyboard's), 0 before one: its err record names that pane.
ran_at: u32 = 0,