fix: force refresh on add_completion_done events for slow language servers
This commit is contained in:
parent
778907c513
commit
81a1c88847
1 changed files with 3 additions and 1 deletions
|
@ -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 = &.{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue