diff options
Diffstat (limited to 'src/ninep/ctl.zig')
| -rw-r--r-- | src/ninep/ctl.zig | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/ninep/ctl.zig b/src/ninep/ctl.zig index 1a2dbdbc..c564da6e 100644 --- a/src/ninep/ctl.zig +++ b/src/ninep/ctl.zig @@ -4253,3 +4253,11 @@ test "a Restore reads a clean file from disk; an unsaved one whose file changed pardes.exec.saveFile(restored, 0); try testing.expect(th.logHas(restored, "modified on disk since read (Save again to overwrite)")); } + +test "a Rename the server answered for this file alone, with other open files saying the name, is previewed and says so" { + const p = try withFile(testing.allocator, "x\n"); + defer p.deinit(); + p.lspRequest(p.active, .rename, "sum"); + p.lspResponse(p.lsp_wait.?.id, "util.zig:1:8 sum\nmain.zig: also says add, which the server did not rename\n"); + try testing.expect(th.logHas(p, "Rename: previewed, not applied: the server renamed in this file only, and 1 other open file(s) say the name")); +} |
