🐛 use platform-specific keyboard shortcut icons
This commit is contained in:
parent
42c00959ce
commit
b5a3c14a9f
1 changed files with 3 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue