Skip to content

Commit

Permalink
Add failsafe for powershell on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
Horrih committed Jun 9, 2024
1 parent 2e51ab2 commit 706afe1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lsp-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -8350,7 +8350,9 @@ archive (e.g. when the archive has multiple files)"
"Unzip script to unzip file.")

(defcustom lsp-unzip-script (lambda ()
(cond ((executable-find "powershell") lsp-ext-pwsh-script)
(cond ((and (eq system-type 'windows-nt)
(executable-find "powershell"))
lsp-ext-pwsh-script)
((executable-find "unzip") lsp-ext-unzip-script)
(t nil)))
"The script to unzip."
Expand Down

0 comments on commit 706afe1

Please sign in to comment.