From 1b8f96f383ef9c9b4c652b5d25b16860d25bc5bf Mon Sep 17 00:00:00 2001 From: amalik12 Date: Thu, 1 Mar 2018 22:37:17 -0500 Subject: [PATCH] Added Mac specific text for link follow tooltip --- src/vs/editor/contrib/links/links.ts | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/vs/editor/contrib/links/links.ts b/src/vs/editor/contrib/links/links.ts index 61e679cb177a..d62f77d70a41 100644 --- a/src/vs/editor/contrib/links/links.ts +++ b/src/vs/editor/contrib/links/links.ts @@ -38,8 +38,17 @@ const HOVER_MESSAGE_COMMAND_META = new MarkdownString().appendText( : nls.localize('links.command', "Ctrl + click to execute command") ); -const HOVER_MESSAGE_GENERAL_ALT = new MarkdownString().appendText(nls.localize('links.navigate.al', "Alt + click to follow link")); -const HOVER_MESSAGE_COMMAND_ALT = new MarkdownString().appendText(nls.localize('links.command.al', "Alt + click to execute command")); +const HOVER_MESSAGE_GENERAL_ALT = new MarkdownString().appendText( + platform.isMacintosh + ? nls.localize('links.navigate.al.mac', "Option + click to follow link") + : nls.localize('links.navigate.al', "Alt + click to follow link") +); + +const HOVER_MESSAGE_COMMAND_ALT = new MarkdownString().appendText( + platform.isMacintosh + ? nls.localize('links.command.al.mac', "Option + click to execute command") + : nls.localize('links.command.al', "Alt + click to execute command") +); const decoration = { meta: ModelDecorationOptions.register({