summaryrefslogtreecommitdiff
path: root/test/snapshots/lspdebug.snap
blob: 4021bc172ec0e65b2818be6a74f1fb75599ed9f6 (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
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 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
wait 10000 explain                z.zig
key space d
key space w j
key space d
stable 700 15000
snap report-closed