Skip to content

Commit

Permalink
fix: remove emulation check and notification on windows (#186008)
Browse files Browse the repository at this point in the history
  • Loading branch information
deepak1556 authored Jun 26, 2023
1 parent 352e7da commit b4952d1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/vs/code/electron-main/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1279,7 +1279,7 @@ export class CodeApplication extends Disposable {
// Crash reporter
this.updateCrashReporterEnablement();

if (app.runningUnderARM64Translation) {
if (isMacintosh && app.runningUnderARM64Translation) {
this.windowsMainService?.sendToFocused('vscode:showTranslatedBuildWarning');
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ export class NativeHostMainService extends Disposable implements INativeHostMain
}

async isRunningUnderARM64Translation(): Promise<boolean> {
if (isLinux) {
if (isLinux || isWindows) {
return false;
}
return app.runningUnderARM64Translation;
Expand Down
11 changes: 2 additions & 9 deletions src/vs/workbench/electron-sandbox/window.ts
Original file line number Diff line number Diff line change
Expand Up @@ -236,15 +236,8 @@ export class NativeWindow extends Disposable {
label: localize('downloadArmBuild', "Download"),
run: () => {
const quality = this.productService.quality;
let stableURL = '';
let insidersURL = '';
if (isMacintosh) {
stableURL = 'https://code.visualstudio.com/docs/?dv=osx';
insidersURL = 'https://code.visualstudio.com/docs/?dv=osx&build=insiders';
} else if (isWindows) {
stableURL = 'https://code.visualstudio.com/docs/?dv=win32arm64user';
insidersURL = 'https://code.visualstudio.com/docs/?dv=win32arm64user&build=insiders';
}
const stableURL = 'https://code.visualstudio.com/docs/?dv=osx';
const insidersURL = 'https://code.visualstudio.com/docs/?dv=osx&build=insiders';
this.openerService.open(quality === 'stable' ? stableURL : insidersURL);
}
}]
Expand Down

0 comments on commit b4952d1

Please sign in to comment.