summaryrefslogtreecommitdiff
path: root/test/snapshots/lspdebug.snap
diff options
context:
space:
mode:
Diffstat (limited to 'test/snapshots/lspdebug.snap')
-rw-r--r--test/snapshots/lspdebug.snap32
1 files changed, 16 insertions, 16 deletions
diff --git a/test/snapshots/lspdebug.snap b/test/snapshots/lspdebug.snap
index 4021bc17..22fa097b 100644
--- a/test/snapshots/lspdebug.snap
+++ b/test/snapshots/lspdebug.snap
@@ -1,4 +1,8 @@
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
+# Builtins announce themselves by default, and an announcement is a band at
+# the top of the body -- which moves every row this script clicks. What the
+# verbs do is what is under test, not the announcement.
+config Verbose off
start 45 120 z.zig
wait 8000 fn helper
stable 700 20000
@@ -17,30 +21,26 @@ snap plainclick
text 3gg1g|
stable 400 10000
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
+wait 10000 lsp explain — the definition query
+wait 10000 row(s)
+key space w j enter
key space d
stable 700 15000
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
+wait 10000 backend: lsp-client
+wait 10000 protocol servers (lsp-client):
+wait 10000 zls
+key space w j enter
key /
-text last queries
+text client queries
key enter
-wait 10000 last queries
-wait 10000 definition z.zig
-wait 10000 explain z.zig
-key space d
-key space w j
+wait 10000 client queries
+wait 10000 definition
+# Enter left the keyboard in the report, on the match; its query pane is
+# attached to it, so one Del closes both, their rows back to the source
key space d
stable 700 15000
snap report-closed