From b5a3c14a9fc3da73910b46cf572ebc6172feecf2 Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Sun, 22 Oct 2023 13:42:46 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20use=20platform-specific=20keyboa?= =?UTF-8?q?rd=20shortcut=20icons?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- extensions/vscode/src/activation/inlineTips.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/extensions/vscode/src/activation/inlineTips.ts b/extensions/vscode/src/activation/inlineTips.ts index f1d91f995..b56ef557d 100644 --- a/extensions/vscode/src/activation/inlineTips.ts +++ b/extensions/vscode/src/activation/inlineTips.ts @@ -1,8 +1,9 @@ import * as vscode from "vscode"; +import { getMetaKeyLabel } from "../util/util"; const inlineTipDecoration = vscode.window.createTextEditorDecorationType({ after: { - contentText: "⌘ M to select code, ⌘ ⇧ M to edit", + contentText: `${getMetaKeyLabel()} M to select code, ${getMetaKeyLabel()} ⇧ M to edit`, color: "#d3d3d340", margin: "0 0 0 6em", }, @@ -26,7 +27,7 @@ function handleSelectionChange(e: vscode.TextEditorSelectionChangeEvent) { let lineToShow = startLine > 0 ? startLine - 1 : startLine + 1; const hoverMarkdown = new vscode.MarkdownString( - "Use ⌘ M to select code, or ⌘ ⇧ M to select code and use the /edit slash command. Click [here](command:continue.hideInlineTip) if you don't want to see these inline suggestions." + `Use ${getMetaKeyLabel()} M to select code, or ${getMetaKeyLabel()} ⇧ M to select code and use the /edit slash command. Click [here](command:continue.hideInlineTip) if you don't want to see these inline suggestions.` ); hoverMarkdown.isTrusted = true; hoverMarkdown.supportHtml = true;