diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-05 10:48:36 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-05 10:57:08 -0300 |
| commit | fc02325789b5a6622f9e577c9a45e65806c516b6 (patch) | |
| tree | 65fdeed6959aef6afe0db5d18df3649aef0d2a34 /src/host_io.zig | |
| parent | 856bf4a8ed36cc6ec38dc9001f753a8838106da2 (diff) | |
| download | pardes-fc02325789b5a6622f9e577c9a45e65806c516b6.tar.gz pardes-fc02325789b5a6622f9e577c9a45e65806c516b6.zip | |
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 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
Diffstat (limited to 'src/host_io.zig')
| -rw-r--r-- | src/host_io.zig | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/host_io.zig b/src/host_io.zig index ad7c77dd..a04bf7ce 100644 --- a/src/host_io.zig +++ b/src/host_io.zig @@ -617,7 +617,6 @@ pub const Lsp = struct { /// One language query, owned by the worker that runs it. pub const Job = struct { callstack_depth: u8 = pardes.lsp.callstack_default_depth, - callstack_corners: pardes.lsp.CallstackCorners = .rounded, id: u32, kind: pardes.lsp.Kind, offset: u32, @@ -661,7 +660,6 @@ pub const Lsp = struct { errdefer gpa.free(root); job.* = .{ .callstack_depth = core.settings.callstack_depth, - .callstack_corners = core.settings.callstack_corners, .id = req.id, .kind = req.kind, .offset = req.offset, @@ -748,7 +746,6 @@ pub const Lsp = struct { .root = job.root, .others = job.others, .callstack_depth = job.callstack_depth, - .callstack_corners = job.callstack_corners, .budget = &arena, }, &out.writer) catch { deliver(ctx, job.id, null); @@ -767,7 +764,6 @@ pub const Lsp = struct { defer core.deinit(); core.settings.callstack_depth = 16; - core.settings.callstack_corners = .square; var needle: [6]u8 = "needle".*; const job = try snapshot(gpa, core, .{ .id = 7, @@ -779,8 +775,6 @@ pub const Lsp = struct { defer job.free(gpa); core.settings.callstack_depth = 2; - core.settings.callstack_corners = .rounded; - try std.testing.expectEqual(pardes.lsp.CallstackCorners.square, job.callstack_corners); try std.testing.expectEqual(@as(u8, 16), job.callstack_depth); try std.testing.expectEqual(@as(u32, 7), job.id); try std.testing.expectEqual(pardes.lsp.Kind.status, job.kind); |
