aboutsummaryrefslogtreecommitdiffstats
path: root/lua/mason-core/async
diff options
context:
space:
mode:
authorWilliam Boman <william@redwill.se>2023-03-14 04:48:03 +0100
committerGitHub <noreply@github.com>2023-03-14 04:48:03 +0100
commitbf087883b05082a07ec2abe22e904b227b21f0d3 (patch)
tree2a024f842fb0be4ce91f325af08ecc0028299a6f /lua/mason-core/async
parentfix(sources): also set .desc property when updating spec (#1095) (diff)
downloadmason-bf087883b05082a07ec2abe22e904b227b21f0d3.tar
mason-bf087883b05082a07ec2abe22e904b227b21f0d3.tar.gz
mason-bf087883b05082a07ec2abe22e904b227b21f0d3.tar.bz2
mason-bf087883b05082a07ec2abe22e904b227b21f0d3.tar.lz
mason-bf087883b05082a07ec2abe22e904b227b21f0d3.tar.xz
mason-bf087883b05082a07ec2abe22e904b227b21f0d3.tar.zst
mason-bf087883b05082a07ec2abe22e904b227b21f0d3.zip
feat: add registry.refresh() method (#1096)
Diffstat (limited to 'lua/mason-core/async')
-rw-r--r--lua/mason-core/async/init.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/lua/mason-core/async/init.lua b/lua/mason-core/async/init.lua
index 3c88eef0..0b327218 100644
--- a/lua/mason-core/async/init.lua
+++ b/lua/mason-core/async/init.lua
@@ -125,7 +125,8 @@ exports.run_blocking = function(suspend_fn, ...)
end, ...)
if
- vim.wait(60 * 60 * 1000, function() -- the wait time is completely arbitrary
+ resolved
+ or vim.wait(60 * 60 * 1000, function() -- the wait time is completely arbitrary
return resolved == true
end, 50)
then