Skip to content

Commit 28d6b28

Browse files
author
Charles Gonnaud
committed
Provide a default value for intel macs
1 parent 785e00b commit 28d6b28

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

lsp-sonarlint.el

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,14 @@
4545
:package-version '(lsp-mode . "6.4"))
4646

4747
(defcustom lsp-sonarlint-download-url
48-
(format "https://github.com/SonarSource/sonarlint-vscode/releases/download/4.6.0%%2B76435/sonarlint-vscode%s-4.6.0.vsix"
48+
(format "https://github.com/SonarSource/sonarlint-vscode/releases/download/4.6.0%%2B76435/sonarlint-vscode-%s-4.6.0.vsix"
4949
(pcase system-type
50-
('gnu/linux "-linux-x64")
51-
('darwin "-darwin-arm64")
52-
('windows-nt "-win32-x64")))
50+
('gnu/linux "linux-x64")
51+
('darwin
52+
(pcase (lsp-resolve-value lsp--system-arch)
53+
('x64 "darwin-x64")
54+
('arm64 "darwin-arm64")))
55+
('windows-nt "win32-x64")))
5356
"Official SonarLint VSCode extension (vsix).
5457
It contains the necessary language server and analyzers."
5558
:type 'string)

0 commit comments

Comments
 (0)