Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement not supported message for arm platform and alpine containers #4027

Merged
merged 8 commits into from
Aug 8, 2019
11 changes: 11 additions & 0 deletions Extension/src/LanguageServer/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,17 @@ export function activate(activationEventOccurred: boolean): void {
return;
}

let errMsg: string;
bobbrow marked this conversation as resolved.
Show resolved Hide resolved
if (process.arch !== 'x32' && process.arch !== 'x64') {
errMsg = "Architecture " + String(process.arch) + " is not supported. ";
} else if (process.platform === 'linux' && fs.existsSync('/etc/alpine-release')) {
errMsg = "Alpine containers are not supported. ";
}
if (errMsg) {
vscode.window.showErrorMessage(errMsg);
return;
}

taskProvider = vscode.tasks.registerTaskProvider(taskSourceStr, {
provideTasks: () => {
return getBuildTasks(false);
Expand Down