aboutsummaryrefslogtreecommitdiffstats
path: root/lua/mason-core/installer/registry
diff options
context:
space:
mode:
authorWilliam Boman <william@redwill.se>2023-06-28 19:26:23 +0200
committerGitHub <noreply@github.com>2023-06-28 19:26:23 +0200
commit758ac5b35e823eee74a90f855b2a66afc51ec92d (patch)
tree100dc05b4b2e337960167cf5f8c9a94b79420f59 /lua/mason-core/installer/registry
parentchore(ci): add nvim v0.9.1 to test matrix (#1378) (diff)
downloadmason-758ac5b35e823eee74a90f855b2a66afc51ec92d.tar
mason-758ac5b35e823eee74a90f855b2a66afc51ec92d.tar.gz
mason-758ac5b35e823eee74a90f855b2a66afc51ec92d.tar.bz2
mason-758ac5b35e823eee74a90f855b2a66afc51ec92d.tar.lz
mason-758ac5b35e823eee74a90f855b2a66afc51ec92d.tar.xz
mason-758ac5b35e823eee74a90f855b2a66afc51ec92d.tar.zst
mason-758ac5b35e823eee74a90f855b2a66afc51ec92d.zip
feat(installer): write more installation output to stdout (#1376)
This should give better insights into the installation progress.
Diffstat (limited to 'lua/mason-core/installer/registry')
-rw-r--r--lua/mason-core/installer/registry/schemas.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/lua/mason-core/installer/registry/schemas.lua b/lua/mason-core/installer/registry/schemas.lua
index 376b7bc8..f9d044af 100644
--- a/lua/mason-core/installer/registry/schemas.lua
+++ b/lua/mason-core/installer/registry/schemas.lua
@@ -20,6 +20,7 @@ local function download_lsp_schema(ctx, url)
if is_vscode_schema then
local url = unpack(_.match("^vscode:(.+)$", url))
+ ctx.stdio_sink.stdout(("Downloading LSP configuration schema from %q…\n"):format(url))
local json = try(fetch(url))
---@type { contributes?: { configuration?: table } }
@@ -33,6 +34,7 @@ local function download_lsp_schema(ctx, url)
return Result.failure "Unable to find LSP entry in VSCode schema."
end
else
+ ctx.stdio_sink.stdout(("Downloading LSP configuration schema from %q…\n"):format(url))
try(std.download_file(url, out_file))
ctx.links.share[share_file] = out_file
end