diff options
| author | William Boman <william@redwill.se> | 2022-07-13 16:21:16 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-07-13 16:21:16 +0200 |
| commit | fa78d7cf0445083243cdd8feee4923f99d984e30 (patch) | |
| tree | 79d684df539b3a39dc14742335c38d5b19a0e072 /lua/mason-core/installer/context.lua | |
| parent | fix(api): fix the :MasonUninstall command (#66) (diff) | |
| download | mason-fa78d7cf0445083243cdd8feee4923f99d984e30.tar mason-fa78d7cf0445083243cdd8feee4923f99d984e30.tar.gz mason-fa78d7cf0445083243cdd8feee4923f99d984e30.tar.bz2 mason-fa78d7cf0445083243cdd8feee4923f99d984e30.tar.lz mason-fa78d7cf0445083243cdd8feee4923f99d984e30.tar.xz mason-fa78d7cf0445083243cdd8feee4923f99d984e30.tar.zst mason-fa78d7cf0445083243cdd8feee4923f99d984e30.zip | |
tests: add some InstallHandle tests (#67)
Diffstat (limited to 'lua/mason-core/installer/context.lua')
| -rw-r--r-- | lua/mason-core/installer/context.lua | 4 |
1 files changed, 2 insertions, 2 deletions
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. |
