summaryrefslogtreecommitdiff
path: root/test/snapshots/lspdebug.snap
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-09-06 18:11:36 -0300
committerGabriel Schneider <[email protected]>2026-09-07 13:59:12 -0300
commit60367d8fe23f6af98ec28e3cf6c2094dfe332df0 (patch)
tree310fc734173cf771881f4691c71909135fadde97 /test/snapshots/lspdebug.snap
parentfa82cac885cb4738fe36d1e49b4749b5a3e31a4a (diff)
downloadpardes-60367d8fe23f6af98ec28e3cf6c2094dfe332df0.tar.gz
pardes-60367d8fe23f6af98ec28e3cf6c2094dfe332df0.zip
Refactor panes and filesystem; replace FUSE with 9P
Consolidate pane, layout, memory and host code. Serve 9P by default over Unix sockets, with runtime mounts and optional TCP/QUIC transports. Remove FUSE and obsolete proof-of-concept examples. Fix highlighting and terminal-history performance, expand differential and stress-test infrastructure, sort navigation results while preserving the next occurrence, add syntax-colored Braille minimaps, remove SPC-k, and document 9P interaction as a repository skill.
Diffstat (limited to 'test/snapshots/lspdebug.snap')
-rw-r--r--test/snapshots/lspdebug.snap64
1 files changed, 29 insertions, 35 deletions
diff --git a/test/snapshots/lspdebug.snap b/test/snapshots/lspdebug.snap
index a2160408..514b24da 100644
--- a/test/snapshots/lspdebug.snap
+++ b/test/snapshots/lspdebug.snap
@@ -1,52 +1,46 @@
-# The mouse chord and the two introspection builtins.
-#
-# Ctrl-left-click IS `gd`. It rides the ordinary left-click drag rather than
-# firing on the press, because a click does not place the modal cursor until
-# RELEASE — asking at press time would answer about wherever the cursor
-# happened to be sitting, which is the bug this test would not have caught.
-#
-# `SPC l w` and `SPC l i` exist because this backend never fails loudly: a
-# thrown analyser must not take the editor with it, but that makes a broken
-# backend and a correct one that found nothing look identical. These two tell
-# them apart, so they are worth a test that proves they say something TRUE.
file z.zig const std = @import("std");\n\nfn helper() u32 {\n return 3;\n}\n\npub fn main() void {\n const v = helper();\n _ = v;\n}\n
start 44 120 z.zig
wait 8000 fn helper
stable 700 20000
snap opened
-# Ctrl-click on the `helper` of the CALL (row 10 = file line 8, col 22 = the
-# `h`). One definition, so it jumps rather than listing: the cursor lands on
-# line 3, the `helper` of `fn helper()`, in this same pane.
+
+# Ctrl-click jumps to the definition; plain click only moves the cursor.
press ctrl-left 22 10
release ctrl-left 22 10
stable 700 15000
snap ctrlclick
-# A PLAIN left click in the same place must NOT jump — the modifier is the
-# whole difference, and without this the test above would pass on a bug that
-# made every click a goto.
press left 22 10
release left 22 10
stable 700 15000
snap plainclick
-# `SPC l w` on a keyword: `gd` finds nothing there, and the point of Lspwhy is
-# that it says WHY rather than leaving you with a no-op key. It narrates the
-# real resolution path — the position context is the analyser's own answer,
-# not a guess reconstructed beside it.
+
text 3gg1g|
stable 400 10000
-key space
-key l
-key w
-wait 10000 position context
+key space l w
+wait 10000 parsed 122 bytes, 0 syntax error(s)
+wait 10000 position context: .empty
+wait 10000 STOP: nothing to resolve
+wait 10000 0 row(s)
+key space w j
+key space d
stable 700 15000
-snap why
-# `SPC l i`: which ZLS, which stdlib, what it answers, and the query log —
-# which by now holds the two gotos and the explain above, with their timings.
-# It answers from any pane, including one with no file, because it is about
-# the BACKEND.
-key space
-key l
-key i
-wait 10000 zls-inproc
+snap why-closed
+
+# Check the report's answers, not installed compiler paths or dependency counts.
+key space l i
+wait 10000 backend: zls-inproc+lsp-client
+wait 10000 compiled in
+wait 10000 [OK]
+wait 10000 offsets: utf-8
+key space w j
+key /
+text last queries
+key enter
+wait 10000 last queries
+wait 10000 definition z.zig
+wait 10000 explain z.zig
+key space d
+key space w j
+key space d
stable 700 15000
-snap info
+snap report-closed