Skip to content

Commit

Permalink
Prepare for windows 8 eol
Browse files Browse the repository at this point in the history
  • Loading branch information
ChaseKnowlden committed Mar 3, 2023
1 parent 4018a2d commit f65a710
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/vs/workbench/electron-sandbox/window.ts
Original file line number Diff line number Diff line change
Expand Up @@ -717,6 +717,22 @@ export class NativeWindow extends Disposable {
}
);
}

if (parseInt(version[0]) === 6 && parseInt(version[1]) === 2 || parseInt(version[0]) === 6 && parseInt(version[1]) === 3) {
const message = localize('windows 8 eol', "{0} o Windows 8/8.1 will no longer receive any further updates.", this.productService.nameLong);

this.notificationService.prompt(
Severity.Warning,
message,
[{
label: localize('learnMore', "Learn More"),
run: () => this.openerService.open(URI.parse('https://aka.ms/vscode-faq-win8'))
}],
{
neverShowAgain: { id: 'windows8eol', isSecondary: true, scope: NeverShowAgainScope.APPLICATION }
}
);
}
}

// MacOS 10.11 and 10.12 warning
Expand Down

0 comments on commit f65a710

Please sign in to comment.