From fa78d7cf0445083243cdd8feee4923f99d984e30 Mon Sep 17 00:00:00 2001 From: William Boman Date: Wed, 13 Jul 2022 16:21:16 +0200 Subject: tests: add some InstallHandle tests (#67) --- lua/mason-core/installer/context.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lua/mason-core/installer/context.lua') diff --git a/lua/mason-core/installer/context.lua b/lua/mason-core/installer/context.lua index 9dfbb7f1..3e701d8e 100644 --- a/lua/mason-core/installer/context.lua +++ b/lua/mason-core/installer/context.lua @@ -26,14 +26,14 @@ function ContextualSpawn.__index(self, cmd) local captured_handle args.on_spawn = function(handle, stdio, pid, ...) captured_handle = handle - self.handle:push_spawninfo(handle, pid, cmd, spawn._flatten_cmd_args(args)) + self.handle:register_spawn_handle(handle, pid, cmd, spawn._flatten_cmd_args(args)) if on_spawn then on_spawn(handle, stdio, pid, ...) end end local function pop_spawn_stack() if captured_handle then - self.handle:pop_spawninfo(captured_handle) + self.handle:deregister_spawn_handle(captured_handle) end end -- We get_or_throw() here for convenience reasons. -- cgit v1.2.3-70-g09d2