summaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
Diffstat (limited to 'runtime')
-rw-r--r--runtime/macos.zig6
1 files changed, 6 insertions, 0 deletions
diff --git a/runtime/macos.zig b/runtime/macos.zig
index 7e0f50e7..6a6d39a2 100644
--- a/runtime/macos.zig
+++ b/runtime/macos.zig
@@ -1628,6 +1628,7 @@ const vtable: pardes.Host.VTable = .{
.open_link = openLink,
.start = host_io.startDetached,
.lsp = lspRequest,
+ .lsp_open = lspOpen,
.pipe = pipeRequest,
};
@@ -1640,6 +1641,11 @@ fn lspRequest(ctx: ?*anyopaque, req: host_io.Lsp.Request) void {
st.inbox.startLsp(st.core, req);
}
+fn lspOpen(ctx: ?*anyopaque, pane: pardes.Pane.Id) void {
+ const st = hostState(ctx);
+ st.inbox.openLsp(st.core, pane);
+}
+
fn pipeRequest(ctx: ?*anyopaque, id: u32) void {
const st = hostState(ctx);
selection_pipe.start(st.io, st.gpa, st.core, &st.pipe_tasks, id, &st.inbox, Inbox.pushPipe);