summaryrefslogtreecommitdiff
path: root/test/snapshots/lspdebug.snap
blob: ab330a76c716a82aa9e5c64a7d26b020443b9328 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
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
snap opened

# Ctrl-click jumps to the definition; plain click only moves the cursor.
press ctrl-left 22 11
release ctrl-left 22 11
stable 700 15000
snap ctrlclick
press left 22 11
release left 22 11
stable 700 15000
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
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
key /
text last queries
key enter
wait 10000 last queries
wait 10000 definition             z.zig
# The results pane the search opened takes the bottom half, which leaves the
# report one row short of its second query: step the cursor past it.
key j j j
wait 10000 explain                z.zig
# the report sits between the source and the results, so Del asks where its
# rows go: k, back to the source above
key space d
key k
key space w j
key space d
stable 700 15000
snap report-closed