From 38e9919a9ea9055538409b388d580c4e4c838434 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Mon, 10 Aug 2026 09:14:05 -0300 Subject: fixed lsp rename --- src/output_pane.zig | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/output_pane.zig') diff --git a/src/output_pane.zig b/src/output_pane.zig index 7b2d12d9..8c93709c 100644 --- a/src/output_pane.zig +++ b/src/output_pane.zig @@ -81,7 +81,7 @@ pub const Traits = struct { name: []const u8, /// n/N walk the rows: each is a `path:LINE:COL text` location the ordinary /// look path resolves, so the buffer IS helix's picker. Prose (a hover - /// blurb, a rename diff) has nowhere to step to. + /// blurb, a formatting diff) has nowhere to step to. steps: bool = false, /// ...and what a step DOES with the row it lands on. Off, the row is a /// LOCATION and its leading word is LOOKED. On, the row is a COMMAND LINE @@ -135,7 +135,10 @@ pub fn traits(o: Origin) Traits { .query => |k| switch (k) { .hover => .{ .name = config.hover_buffer }, // prose: an action list, a diff, a report about the backend - .code_action, .format, .rename, .status, .explain => .{ .name = config.lsp_buffer }, + .code_action, .format, .status, .explain => .{ .name = config.lsp_buffer }, + // Rename responses are edits consumed before an output can open; + // the exhaustive table still records the otherwise-unused trait. + .rename => .{ .name = config.lsp_buffer }, .definition, .declaration, .type_definition, .implementation, .references => .{ .name = config.search_buffer, .steps = true, -- cgit v1.3