summaryrefslogtreecommitdiff
path: root/test/snapshots/lspdebug.snap
blob: 3aca07cc6a4a09cef9c36ae25021cd5bc81b217d (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
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 lsp explain — the definition query
wait 10000 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: lsp-client
wait 10000 protocol servers (lsp-client):
wait 10000 zls
key space w j
key /
text client queries
key enter
wait 10000 client queries
wait 10000 definition
# 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