aboutsummaryrefslogtreecommitdiffstats
path: root/lua/mason-core/installer/handle.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/mason-core/installer/handle.lua')
-rw-r--r--lua/mason-core/installer/handle.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/lua/mason-core/installer/handle.lua b/lua/mason-core/installer/handle.lua
index f9b03557..96acbdd1 100644
--- a/lua/mason-core/installer/handle.lua
+++ b/lua/mason-core/installer/handle.lua
@@ -120,6 +120,10 @@ function InstallHandle:is_closed()
return self.state == "CLOSED"
end
+function InstallHandle:is_closing()
+ return self:is_closed() or self.is_terminated
+end
+
---@param new_state InstallHandleState
function InstallHandle:set_state(new_state)
local old_state = self.state