From f65a7107280da4328014d4964ba432f3d7462de0 Mon Sep 17 00:00:00 2001 From: ChaseKnowlden Date: Fri, 3 Mar 2023 16:31:56 -0500 Subject: [PATCH] Prepare for windows 8 eol --- src/vs/workbench/electron-sandbox/window.ts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/vs/workbench/electron-sandbox/window.ts b/src/vs/workbench/electron-sandbox/window.ts index a32654bdac66b..d2ec8ca76f92c 100644 --- a/src/vs/workbench/electron-sandbox/window.ts +++ b/src/vs/workbench/electron-sandbox/window.ts @@ -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