summaryrefslogtreecommitdiff
path: root/src/fs.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-10-01 06:22:44 -0300
committerGabriel Schneider <[email protected]>2026-10-01 07:16:43 -0300
commitfb330ce04c4eec4de317637d26310b74e2ee5923 (patch)
treeb1f9ce6f7c6814122ccd5a82f7f7812889472a16 /src/fs.zig
parentdf10c37122cc3e6565d13aeefb9466dc6c0dc780 (diff)
downloadpardes-fb330ce04c4eec4de317637d26310b74e2ee5923.tar.gz
pardes-fb330ce04c4eec4de317637d26310b74e2ee5923.zip
A Rename that previews other files answers its preview pane to the 9P write that asked it, and says on the message row that it previewed and applied nothing
A multi-file Rename filled a +Search preview but the waiting exec write answered the pane it was asked from, and nothing was said. lspResponse now notes the pane it filled (fs.lsp_result); the write that waited for the answer reads that pane back, as a look or an exec answers the pane it went to, and the message row says `Rename: N edit(s) across files, previewed, not applied`. 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 0c04e873..7d6b0d71 100644
--- a/src/fs.zig
+++ b/src/fs.zig
@@ -1529,6 +1529,9 @@ pub const Namespace = struct {
/// 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 pane a language answer filled (a Rename's preview): what the
+ /// waiting 9P write answers once it is in (9p_io).
+ lsp_result: ?u32 = null,
/// The most a Twrite of the request being served can carry (msize less
/// its header), 0 when unknown: a write shorter than it is the whole of
/// what its client wrote, one that fills it may be cut and go on.