feat(completion): forward completion entries to current editor

This commit is contained in:
CJ van den Berg 2025-05-26 22:42:39 +02:00
parent f59125f74a
commit 8934bf5cd0
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
4 changed files with 77 additions and 22 deletions

View file

@ -5476,6 +5476,14 @@ pub const Editor = struct {
self.need_render();
}
pub fn add_completion(self: *Self, row: usize, col: usize, is_incomplete: bool, msg: tp.message) Result {
_ = self;
_ = row;
_ = col;
_ = is_incomplete;
_ = msg;
}
pub fn select(self: *Self, ctx: Context) Result {
var sel: Selection = .{};
if (!try ctx.args.match(.{ tp.extract(&sel.begin.row), tp.extract(&sel.begin.col), tp.extract(&sel.end.row), tp.extract(&sel.end.col) }))