From c338fb2698ae276bc3b6edccdd3afaef92fc77bd Mon Sep 17 00:00:00 2001 From: William Boman Date: Fri, 13 Oct 2023 01:27:58 +0200 Subject: refactor(installer): move initializations to InstallContext constructor --- lua/mason-core/installer/context/spawn.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lua/mason-core/installer/context/spawn.lua') diff --git a/lua/mason-core/installer/context/spawn.lua b/lua/mason-core/installer/context/spawn.lua index 6528c4b3..0a73ff3a 100644 --- a/lua/mason-core/installer/context/spawn.lua +++ b/lua/mason-core/installer/context/spawn.lua @@ -7,10 +7,10 @@ local spawn = require "mason-core.spawn" ---@field [string] async fun(opts: SpawnArgs): Result local InstallContextSpawn = {} ----@param cwd InstallContextCwd ---@param handle InstallHandle +---@param cwd InstallContextCwd ---@param strict_mode boolean -function InstallContextSpawn.new(cwd, handle, strict_mode) +function InstallContextSpawn.new(handle, cwd, strict_mode) return setmetatable({ cwd = cwd, handle = handle, strict_mode = strict_mode }, InstallContextSpawn) end -- cgit v1.2.3-70-g09d2