aboutsummaryrefslogtreecommitdiffstats
path: root/lua/mason-core/async
diff options
context:
space:
mode:
authorWilliam Boman <william@redwill.se>2022-07-11 20:01:09 +0200
committerGitHub <noreply@github.com>2022-07-11 18:01:09 +0000
commitb2b40dbbde21cf86bb92b7c2d40d31c167f5e848 (patch)
tree4b7247c89d88b154ae4b680bcb2eb7e401cabb03 /lua/mason-core/async
parentfeat(api): run :MasonInstall in blocking fashion if no UIs are attached (#52) (diff)
downloadmason-b2b40dbbde21cf86bb92b7c2d40d31c167f5e848.tar
mason-b2b40dbbde21cf86bb92b7c2d40d31c167f5e848.tar.gz
mason-b2b40dbbde21cf86bb92b7c2d40d31c167f5e848.tar.bz2
mason-b2b40dbbde21cf86bb92b7c2d40d31c167f5e848.tar.lz
mason-b2b40dbbde21cf86bb92b7c2d40d31c167f5e848.tar.xz
mason-b2b40dbbde21cf86bb92b7c2d40d31c167f5e848.tar.zst
mason-b2b40dbbde21cf86bb92b7c2d40d31c167f5e848.zip
fix(async): increase vim.wait time (#55)
This number is completely arbitrary - the previous value was chosen at random. Increasing it now to support long-running, blocking, installations.
Diffstat (limited to 'lua/mason-core/async')
-rw-r--r--lua/mason-core/async/init.lua8
1 files changed, 5 insertions, 3 deletions
diff --git a/lua/mason-core/async/init.lua b/lua/mason-core/async/init.lua
index c79c6e42..cf1580a8 100644
--- a/lua/mason-core/async/init.lua
+++ b/lua/mason-core/async/init.lua
@@ -122,9 +122,11 @@ exports.run_blocking = function(suspend_fn, ...)
result = b
end, ...)
- if vim.wait(60000, function()
- return resolved == true
- end, 50) then
+ if
+ vim.wait(60 * 60 * 1000, function() -- the wait time is completely arbitrary
+ return resolved == true
+ end, 50)
+ then
if not ok then
error(result, 2)
end