aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
authorWilliam Boman <william@redwill.se>2022-08-22 15:54:24 +0200
committerGitHub <noreply@github.com>2022-08-22 15:54:24 +0200
commit03a326ad32eaa227f290cad3eb562d33467af4e6 (patch)
tree404919c3b0c5dcb57de735fd4b8840c5654d7662 /lua
parentchore: update generated code (#330) (diff)
downloadmason-03a326ad32eaa227f290cad3eb562d33467af4e6.tar
mason-03a326ad32eaa227f290cad3eb562d33467af4e6.tar.gz
mason-03a326ad32eaa227f290cad3eb562d33467af4e6.tar.bz2
mason-03a326ad32eaa227f290cad3eb562d33467af4e6.tar.lz
mason-03a326ad32eaa227f290cad3eb562d33467af4e6.tar.xz
mason-03a326ad32eaa227f290cad3eb562d33467af4e6.tar.zst
mason-03a326ad32eaa227f290cad3eb562d33467af4e6.zip
fix(ui): only update visible packages (#331)
Diffstat (limited to 'lua')
-rw-r--r--lua/mason/ui/instance.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/mason/ui/instance.lua b/lua/mason/ui/instance.lua
index 73b465c0..1415a4e5 100644
--- a/lua/mason/ui/instance.lua
+++ b/lua/mason/ui/instance.lua
@@ -533,7 +533,7 @@ local function update_all_packages()
pkg:install(pkg)
end,
_.filter(function(pkg)
- return state.packages.states[pkg.name].new_version
+ return state.packages.visible[pkg.name] and state.packages.states[pkg.name].new_version
end, state.packages.installed)
)
end