From 905fb4633120e74fce75ec49b3eb4e4df6389a13 Mon Sep 17 00:00:00 2001 From: Alex Dima Date: Mon, 3 Apr 2017 15:20:34 +0200 Subject: [PATCH] Fixes #23739: Add a Learn More button --- .../keybinding/electron-browser/keybindingService.ts | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/vs/workbench/services/keybinding/electron-browser/keybindingService.ts b/src/vs/workbench/services/keybinding/electron-browser/keybindingService.ts index c9105f20f64..7b1edd55412 100644 --- a/src/vs/workbench/services/keybinding/electron-browser/keybindingService.ts +++ b/src/vs/workbench/services/keybinding/electron-browser/keybindingService.ts @@ -384,6 +384,16 @@ export class WorkbenchKeybindingService extends AbstractKeybindingService { } private _prompt(): void { + const openDocumentation = new Action( + 'keybindingMigration.openDocumentation', + nls.localize('openDocumentation', 'Learn More'), + '', + true, + () => { + window.open('https://go.microsoft.com/fwlink/?linkid=846147'); // Don't change link. + return TPromise.as(true); + } + ); const okAction = new Action( 'keybindingMigration.ok', nls.localize('keybindingMigration.ok', "OK"), @@ -393,7 +403,7 @@ export class WorkbenchKeybindingService extends AbstractKeybindingService { ); this.messageService.show(Severity.Info, { message: nls.localize('keybindingMigration.prompt', "Some keyboard shortcuts have changed for your keyboard layout."), - actions: [okAction] + actions: [openDocumentation, okAction] }); } -- GitLab