From fc02325789b5a6622f9e577c9a45e65806c516b6 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Thu, 5 Nov 2026 10:48:36 -0300 Subject: Callstack a plain tree with a depth: CallstackLayout and CallstackCorners go with the inline layout and the square corners (each snippet below its location, the corners rounded, as both defaulted to), and the 100,000-row paging goes: a tree bigger than one answer holds stops there, its last row saying so as at the memory limit, and Callstack run in +Callstack asks nothing (only a file's pane asks a language server) where it showed the next page (lsp.callstack_more, the core's callstack_more, callstackMore and lspRequestAt, the walk's start and cut paths); CallstackDepth stays, as the reference documents it and the user's init sets it; treePrefix reads only the glyphs the tree draws, and the tests that fed it others take the drawn ones; callstack-inline.snap goes with its layout and callstack.snap snaps its style in its stead (its golden gains that section, the text byte-identical); the reference, the guide, the changelog's entry and both builtins lists say so Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge --- test/behaviour/callstack.zig | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'test/behaviour/callstack.zig') diff --git a/test/behaviour/callstack.zig b/test/behaviour/callstack.zig index 42448031..7c8b5d50 100644 --- a/test/behaviour/callstack.zig +++ b/test/behaviour/callstack.zig @@ -59,3 +59,17 @@ test "callstack: CallstackDepth bounds the walk, its last row inviting a Callsta \\ ); } + +test "callstack: Callstack run in +Callstack asks nothing, as only a file's pane asks a language server" { + var tmp = std.testing.tmpDir(.{}); + defer tmp.cleanup(); + var s = try Session.initLanguage(std.testing.allocator); + defer s.deinit(); + const main = try openMain(&s, &tmp); + try s.write(s.at("/pane/{d}/ctl", .{main}), "Callstack\n"); + const tree = try s.focused(); + const shown = try s.read(s.at("/pane/{d}/body", .{tree})); + try std.testing.expect(try s.refused(s.at("/pane/{d}/ctl", .{tree}), "Callstack\n") != 0); + try std.testing.expectEqualStrings("Callstack: only a file's pane asks a language server", s.said); + try s.expect(s.at("/pane/{d}/body", .{tree}), shown); +} -- cgit v1.3