fix: force refresh on add_completion_done events for slow language servers

This commit is contained in:
CJ van den Berg 2025-10-02 15:00:33 +02:00
parent 778907c513
commit 81a1c88847
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9

View file

@ -879,8 +879,10 @@ const cmds = struct {
tp.extract(&col), tp.extract(&col),
})) return error.InvalidAddDiagnosticArgument; })) return error.InvalidAddDiagnosticArgument;
file_path = project_manager.normalize_file_path(file_path); file_path = project_manager.normalize_file_path(file_path);
if (self.get_active_editor()) |editor| if (std.mem.eql(u8, file_path, editor.file_path orelse "")) if (self.get_active_editor()) |editor| if (std.mem.eql(u8, file_path, editor.file_path orelse "")) {
try tui.open_overlay(@import("mode/overlay/completion_palette.zig").Type); try tui.open_overlay(@import("mode/overlay/completion_palette.zig").Type);
tui.need_render();
};
} }
pub const add_completion_done_meta: Meta = .{ pub const add_completion_done_meta: Meta = .{
.arguments = &.{ .arguments = &.{