diff options
| author | Gabriel Schneider <[email protected]> | 2026-10-01 06:22:44 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-10-01 07:16:43 -0300 |
| commit | 85b60dedb6bdb192abd11b2d58ca7c0e8c944b18 (patch) | |
| tree | 13bc6a9f1f1551088c992a29cb365f5d0a63b239 /test/snapshots/lsp-rename-files.golden | |
| parent | fb330ce04c4eec4de317637d26310b74e2ee5923 (diff) | |
| download | pardes-85b60dedb6bdb192abd11b2d58ca7c0e8c944b18.tar.gz pardes-85b60dedb6bdb192abd11b2d58ca7c0e8c944b18.zip | |
A Rename, references and the like tell the server of every open file of its language first, so a rename reaches files it had not seen and the preview lists them
zls renames only in the documents in its store, and syncDoc told it of
a file only when a query was asked from it, so renaming in progress.zig
left main.zig unchanged and broken, with no preview. For a query whose
answer can reach other files (rename, references, implementation,
workspace symbols, calls and type hierarchy), the host snapshots every
other open file and the client syncs those its server answers for
first. The mock server answers a rename in each document it was told
of; lsp-rename-files opens main.rs by a look, renames from lib.rs, and
its preview lists both.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'test/snapshots/lsp-rename-files.golden')
| -rw-r--r-- | test/snapshots/lsp-rename-files.golden | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/test/snapshots/lsp-rename-files.golden b/test/snapshots/lsp-rename-files.golden new file mode 100644 index 00000000..230246f6 --- /dev/null +++ b/test/snapshots/lsp-rename-files.golden @@ -0,0 +1,27 @@ +== snap opened grid=100x25 cursor=7,8 +|Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit +| New Tty Find Grep Joincol Delcol +| /tmp/pardes-snap/lsp-rename-files/cwd/lib.rs Save Tty Collapse Del TreeContext +| 1 // main.rs +| 2 pub fn add(a: i32, b: i32) -> i32 { +| 3 a + b +| 4 } +| /tmp/pardes-snap/lsp-rename-files/cwd/main.rs Save Tty Collapse Del TreeContext +| 1 mod lib; +| 2 +| 3 fn main() { +| 4 let x = add(1, 2); +| 5 let y = add(3, 4); +| 6 let _ = x + y; +| 7 } +| 8 +== snap previewed grid=100x25 cursor=14,4 +|3: 1 // main.rs Rename: 3 edit(s) across files, previewed, not applied +|15: /tmp/pardes-snap/lsp-rename-files/cwd/+Search Save Tty Collapse Del LocationsConfig +|16: 1 lib.rs:2:8 +|17: 2 sum +|18: 3 main.rs:4:13-15 +|19: 4 sum +|20: 5 main.rs:5:13-15 +|21: 6 sum +|22: 7 |
