diff options
| author | Gabriel Schneider <[email protected]> | 2026-08-09 09:43:51 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-08-10 09:17:07 -0300 |
| commit | 218d8577cbffb45a6ee80cea52418864a044e452 (patch) | |
| tree | b0b31c1e8091d6dea6fb767883e8c78e48cc385e /test/lspbench.zig | |
| parent | 599dd82f96b9d091aae78300aa6c3fbc81f9eb69 (diff) | |
| download | pardes-218d8577cbffb45a6ee80cea52418864a044e452.tar.gz pardes-218d8577cbffb45a6ee80cea52418864a044e452.zip | |
lsp rows: paths relative to the asking file, and the completion text
Diffstat (limited to 'test/lspbench.zig')
| -rw-r--r-- | test/lspbench.zig | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/lspbench.zig b/test/lspbench.zig index b294e60c..329e5743 100644 --- a/test/lspbench.zig +++ b/test/lspbench.zig @@ -108,8 +108,10 @@ const anchors = [_]Anchor{ // keypress looks like: the file does not parse and the switch is not in // the tree at all. `verdigris` appears only on the enum member's own // line, so a row carrying it came from the DEFINITION and not from the - // line the cursor sits on. - .{ .file = "test/lspfixture/dotcomplete.zig", .needle = "return switch (s) {\n .", .at = 29, .kind = .completion, .expect = "verdigris" }, + // line the cursor sits on — and it has to appear TWICE, because a + // completion row carries the candidate's own name (the word that would go + // after the dot) before the declaration line it was read off. + .{ .file = "test/lspfixture/dotcomplete.zig", .needle = "return switch (s) {\n .", .at = 29, .kind = .completion, .expect = "verdigris verdigris," }, // ...and the same dot on a line that is ALSO missing its terminator, // which is one parse error repaired or not. This is the probe that // catches a repair chosen by error count rather than by whether the dot |
