diff options
author | Sandeep Somavarapu <sasomava@microsoft.com> | 2021-09-13 11:45:00 +0300 |
---|---|---|
committer | Sandeep Somavarapu <sasomava@microsoft.com> | 2021-09-13 11:45:00 +0300 |
commit | c16cd29d1012cbb67de5e77448695d5c9f83e1e6 (patch) | |
tree | 9c4ecf9235942042db41e7e41d2d72b9dab04aaa /src/vs/platform/extensionManagement/node/extensionManagementService.ts | |
parent | 5536e20461c4f911266cbf56a0d5fd99f131af13 (diff) |
unknown if alpine is not on x64
Diffstat (limited to 'src/vs/platform/extensionManagement/node/extensionManagementService.ts')
-rw-r--r-- | src/vs/platform/extensionManagement/node/extensionManagementService.ts | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/vs/platform/extensionManagement/node/extensionManagementService.ts b/src/vs/platform/extensionManagement/node/extensionManagementService.ts index 51ee083749f..694e144361e 100644 --- a/src/vs/platform/extensionManagement/node/extensionManagementService.ts +++ b/src/vs/platform/extensionManagement/node/extensionManagementService.ts @@ -8,7 +8,7 @@ import { toErrorMessage } from 'vs/base/common/errorMessage'; import { getErrorMessage } from 'vs/base/common/errors'; import { Schemas } from 'vs/base/common/network'; import * as path from 'vs/base/common/path'; -import { isMacintosh, platform } from 'vs/base/common/platform'; +import { isLinux, isMacintosh, platform } from 'vs/base/common/platform'; import { arch } from 'vs/base/common/process'; import { joinPath } from 'vs/base/common/resources'; import * as semver from 'vs/base/common/semver/semver'; @@ -83,8 +83,12 @@ export class ExtensionManagementService extends AbstractExtensionManagementServi if (!this._targetPlatformPromise) { this._targetPlatformPromise = (async () => { let targetPlatform = getTargetPlatform(platform, arch); - if (targetPlatform === TargetPlatform.LINUX_X64 && await this.isAlpineLinux()) { - targetPlatform = TargetPlatform.ALPINE_X64; + if (isLinux && await this.isAlpineLinux()) { + if (targetPlatform === TargetPlatform.LINUX_X64) { + targetPlatform = TargetPlatform.ALPINE_X64; + } else { + targetPlatform = TargetPlatform.UNKNOWN; + } } this.logService.debug('ExtensionManagementService#TargetPlatform:', targetPlatform); return targetPlatform; |