diff --git a/CHANGELOG.org b/CHANGELOG.org index cac2cabeb2..d3a464bdd0 100644 --- a/CHANGELOG.org +++ b/CHANGELOG.org @@ -18,6 +18,7 @@ unified ~(lsp-interface INTERFACE ...)~ form. The per-interface forms are no longer generated. *This is a breaking change.* (See #4430.) * If asm-lsp is installed, lsp-asm won't try to download it to cache store + * Fix lsp-unzip on windows when unzip was found on the PATH ** 9.0.0 * Add language server config for QML (Qt Modeling Language) using qmlls. diff --git a/lsp-mode.el b/lsp-mode.el index 581739438a..2266d9b240 100644 --- a/lsp-mode.el +++ b/lsp-mode.el @@ -8458,7 +8458,10 @@ archive (e.g. when the archive has multiple files)" "Unzip script to unzip file.") (defcustom lsp-unzip-script (lambda () - (cond ((executable-find "unzip") lsp-ext-unzip-script) + (cond ((and (eq system-type 'windows-nt) + (executable-find "powershell")) + lsp-ext-pwsh-script) + ((executable-find "unzip") lsp-ext-unzip-script) ((executable-find "powershell") lsp-ext-pwsh-script) (t nil))) "The script to unzip."