🚸 update inline tips language

This commit is contained in:
Nate Sesti 2024-04-24 17:00:25 -07:00
parent 5a956fc35c
commit b5b81b66dd
2 changed files with 3 additions and 3 deletions

View file

@ -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;
}

View file

@ -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;