mirror of
https://github.com/microsoft/vscode.git
synced 2026-07-15 00:14:20 +01:00
fix: polish windows 7 support eol notification (#159647)
This commit is contained in:
@@ -32,7 +32,7 @@ import { IWorkspaceFolderCreationData } from 'vs/platform/workspaces/common/work
|
||||
import { IIntegrityService } from 'vs/workbench/services/integrity/common/integrity';
|
||||
import { isWindows, isMacintosh, isCI } from 'vs/base/common/platform';
|
||||
import { IProductService } from 'vs/platform/product/common/productService';
|
||||
import { INotificationService, Severity } from 'vs/platform/notification/common/notification';
|
||||
import { INotificationService, NeverShowAgainScope, Severity } from 'vs/platform/notification/common/notification';
|
||||
import { IKeybindingService } from 'vs/platform/keybinding/common/keybinding';
|
||||
import { INativeWorkbenchEnvironmentService } from 'vs/workbench/services/environment/electron-sandbox/environmentService';
|
||||
import { IAccessibilityService, AccessibilitySupport } from 'vs/platform/accessibility/common/accessibility';
|
||||
@@ -643,7 +643,19 @@ export class NativeWindow extends Disposable {
|
||||
|
||||
// Refs https://docs.microsoft.com/en-us/windows/win32/api/winnt/ns-winnt-osversioninfoa
|
||||
if (parseInt(version[0]) === 6 && parseInt(version[1]) === 1) {
|
||||
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));
|
||||
const message = localize('windows 7 eol', "{0} on Windows 7 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-win7'))
|
||||
}],
|
||||
{
|
||||
neverShowAgain: { id: 'windows7eol', isSecondary: true, scope: NeverShowAgainScope.APPLICATION }
|
||||
}
|
||||
);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user