Skip to content

Commit 81caab8

Browse files
committed
Minor fix to conditional logic.
- Also add Alpine Linux download URL from GH Signed-off-by: Roland Grunberg <[email protected]>
1 parent 3bf7070 commit 81caab8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: package.json

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
},
2727
"binaryServerDownloadUrl": {
2828
"linux": "https://github.com/redhat-developer/vscode-xml/releases/download/latest/lemminx-linux.zip",
29+
"alpine": "https://github.com/redhat-developer/vscode-xml/releases/download/latest/lemminx-alpine.zip",
2930
"osx-x86_64": "https://github.com/redhat-developer/vscode-xml/releases/download/latest/lemminx-osx-x86_64.zip",
3031
"osx-aarch_64": "https://github.com/redhat-developer/vscode-xml/releases/download/latest/lemminx-osx-aarch_64.zip",
3132
"win32": "https://github.com/redhat-developer/vscode-xml/releases/download/latest/lemminx-win32.zip"

Diff for: src/server/binary/binaryServerStarter.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -214,8 +214,7 @@ function getBinaryEnvironment(): any {
214214
* @returns The platform of the current operating system.
215215
*/
216216
function getPlatform (): NodeJS.Platform | 'alpine' {
217-
if (fs.existsSync('/etc/alpine-release')) return 'alpine'
218-
return os.platform()
217+
return fs.existsSync('/etc/alpine-release') ? 'alpine' : os.platform();
219218
}
220219

221220
/**

0 commit comments

Comments
 (0)