fix: open competion palette after all completions are received

This commit is contained in:
CJ van den Berg 2025-10-01 21:29:05 +02:00
parent 03c82999b8
commit 42b7ae46a0
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
2 changed files with 25 additions and 5 deletions

View file

@ -1012,6 +1012,7 @@ fn send_completion_items(to: tp.pid_ref, file_path: []const u8, row: usize, col:
if (!(try cbor.matchValue(&iter, cbor.extract_cbor(&item)))) return error.InvalidMessageField;
try send_completion_item(to, file_path, row, col, item, if (len > 1) true else is_incomplete);
}
return to.send(.{ "cmd", "add_completion_done", .{ file_path, row, col } }) catch error.ClientFailed;
}
fn invalid_field(field: []const u8) error{InvalidMessage} {