From b5b81b66ddea3ccb39edd7c604f4a6b886e20592 Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Wed, 24 Apr 2024 17:00:25 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=B8=20update=20inline=20tips=20languag?= =?UTF-8?q?e?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/commands/slash/edit.ts | 2 +- extensions/vscode/src/activation/inlineTips.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core/commands/slash/edit.ts b/core/commands/slash/edit.ts index bb90086b1..38291f4c2 100644 --- a/core/commands/slash/edit.ts +++ b/core/commands/slash/edit.ts @@ -226,7 +226,7 @@ const EditSlashCommand: SlashCommand = { } if (!contextItemToEdit) { - yield "Select (highlight and press `cmd+shift+L` (MacOS) / `ctrl+shift+L` (Windows)) the code that you want to edit first"; + yield "Please highlight the code you want to edit, then press `cmd/ctrl+shift+L` to add it to chat"; return; } diff --git a/extensions/vscode/src/activation/inlineTips.ts b/extensions/vscode/src/activation/inlineTips.ts index 11d3b385b..6f6efc320 100644 --- a/extensions/vscode/src/activation/inlineTips.ts +++ b/extensions/vscode/src/activation/inlineTips.ts @@ -3,7 +3,7 @@ import { getMetaKeyLabel } from "../util/util"; const inlineTipDecoration = vscode.window.createTextEditorDecorationType({ after: { - contentText: `${getMetaKeyLabel()} L to select code, ${getMetaKeyLabel()} I to edit`, + contentText: `Add to chat (${getMetaKeyLabel()} L) | Edit highlighted code (${getMetaKeyLabel()} I).`, color: "#888", margin: "0 0 0 6em", fontWeight: "bold", @@ -32,7 +32,7 @@ function handleSelectionChange(e: vscode.TextEditorSelectionChangeEvent) { const line = Math.max(0, selection.start.line - 1); const hoverMarkdown = new vscode.MarkdownString( - `Use ${getMetaKeyLabel()} L to select code, or ${getMetaKeyLabel()} I to edit highlighted code. Click [here](command:continue.hideInlineTip) if you don't want to see these inline suggestions.`, + `Click [here](command:continue.hideInlineTip) to hide these suggestions`, ); hoverMarkdown.isTrusted = true; hoverMarkdown.supportHtml = true;