Skip to content

Commit

Permalink
Switch tool detection for lsp-unzip (#3022)
Browse files Browse the repository at this point in the history
It caused issues on windows if unzip was found on the PATH
  • Loading branch information
Horrih committed Jun 9, 2024
1 parent acad044 commit 2e51ab2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.org
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* Add SQL support
* Add support for Meson build system. (~meson-mode~).
* Add support for go to definition for external files (.dll) in CSharp projects for OmniSharp server.
* 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.
Expand Down
4 changes: 2 additions & 2 deletions lsp-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -8350,8 +8350,8 @@ 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)
((executable-find "powershell") lsp-ext-pwsh-script)
(cond ((executable-find "powershell") lsp-ext-pwsh-script)
((executable-find "unzip") lsp-ext-unzip-script)
(t nil)))
"The script to unzip."
:group 'lsp-mode
Expand Down

0 comments on commit 2e51ab2

Please sign in to comment.