Skip to content

Commit 0ddb3ae

Browse files
authored
fix: polish windows 7 support eol notification (microsoft#159647)
1 parent 48f1ece commit 0ddb3ae

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

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

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ import { IWorkspaceFolderCreationData } from 'vs/platform/workspaces/common/work
3232
import { IIntegrityService } from 'vs/workbench/services/integrity/common/integrity';
3333
import { isWindows, isMacintosh, isCI } from 'vs/base/common/platform';
3434
import { IProductService } from 'vs/platform/product/common/productService';
35-
import { INotificationService, Severity } from 'vs/platform/notification/common/notification';
35+
import { INotificationService, NeverShowAgainScope, Severity } from 'vs/platform/notification/common/notification';
3636
import { IKeybindingService } from 'vs/platform/keybinding/common/keybinding';
3737
import { INativeWorkbenchEnvironmentService } from 'vs/workbench/services/environment/electron-sandbox/environmentService';
3838
import { IAccessibilityService, AccessibilitySupport } from 'vs/platform/accessibility/common/accessibility';
@@ -643,7 +643,19 @@ export class NativeWindow extends Disposable {
643643

644644
// Refs https://docs.microsoft.com/en-us/windows/win32/api/winnt/ns-winnt-osversioninfoa
645645
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));
646+
const message = localize('windows 7 eol', "{0} on Windows 7 will no longer receive any further updates.", this.productService.nameLong);
647+
648+
this.notificationService.prompt(
649+
Severity.Warning,
650+
message,
651+
[{
652+
label: localize('learnMore', "Learn More"),
653+
run: () => this.openerService.open(URI.parse('https://aka.ms/vscode-faq-win7'))
654+
}],
655+
{
656+
neverShowAgain: { id: 'windows7eol', isSecondary: true, scope: NeverShowAgainScope.APPLICATION }
657+
}
658+
);
647659
}
648660
});
649661
}

0 commit comments

Comments
 (0)