From 20e7cf32ff46d9e56a98f3ed6be8f715e1da3099 Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Thu, 29 May 2025 21:24:49 +0100 Subject: [PATCH] fix(siren/ext): fill list of installed extensions cache correctly --- siren | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/siren b/siren index aad100b..1711e0c 100755 --- a/siren +++ b/siren @@ -310,7 +310,7 @@ _INSTALLED_EXTENSIONS="" installed_extensions() { local editor_cmd="$1" - # Build cache if not already built + # Populate the cache if it's not already populated. if [[ -z "${_INSTALLED_EXTENSIONS}" ]]; then _INSTALLED_EXTENSIONS="$("${editor_cmd}" --list-extensions --show-versions)" fi @@ -483,6 +483,10 @@ do_install_extensions() { exit 1 fi + # Warn the installed extensions cache before we start processing the lock + # file. + installed_extensions "${editor_cmd}" + # Process each extension while IFS= read -r line; do if [[ -n "${line}" && ! "${line}" =~ ^[[:space:]]*# ]]; then