Skip to content

Commit 65b53f2

Browse files
authored
fix: notify windows 7 support eol (microsoft#159546)
1 parent 635e728 commit 65b53f2

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/vs/workbench/electron-sandbox/window.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -636,6 +636,18 @@ export class NativeWindow extends Disposable {
636636
}
637637
});
638638

639+
// Windows 7 warning
640+
if (isWindows) {
641+
this.lifecycleService.when(LifecyclePhase.Restored).then(async () => {
642+
const version = this.environmentService.os.release.split('.');
643+
644+
// Refs https://docs.microsoft.com/en-us/windows/win32/api/winnt/ns-winnt-osversioninfoa
645+
if (parseInt(version[0]) === 6 && parseInt(version[1]) === 1) {
646+
this.notificationService.warn(localize('windows 7 eol', "{0} on Windows 7 will not receive any updates, please check our [FAQ](https://aka.ms/vscode-faq-win7) for additional info.", this.productService.nameLong));
647+
}
648+
});
649+
}
650+
639651
// Touchbar menu (if enabled)
640652
this.updateTouchbarMenu();
641653

0 commit comments

Comments
 (0)