mirror of
https://github.com/jimeh/.vscode.d.git
synced 2026-02-19 11:26:39 +00:00
fix(siren/ext): fill list of installed extensions cache correctly
This commit is contained in:
6
siren
6
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
|
||||
|
||||
Reference in New Issue
Block a user