summaryrefslogtreecommitdiff
path: root/extension/src/lang-server
diff options
context:
space:
mode:
authorNate Sesti <sestinj@gmail.com>2023-07-15 15:06:32 -0700
committerNate Sesti <sestinj@gmail.com>2023-07-15 15:06:32 -0700
commit46883738a287a5eb1cfae71ab1f6127450f7554f (patch)
tree057ade81f0c5b218c36bd19c0932bd0ff8dbb1e6 /extension/src/lang-server
parent925c3e0ef45d9eb01a8f6c1efd239fa011492bd2 (diff)
downloadsncontinue-46883738a287a5eb1cfae71ab1f6127450f7554f.tar.gz
sncontinue-46883738a287a5eb1cfae71ab1f6127450f7554f.tar.bz2
sncontinue-46883738a287a5eb1cfae71ab1f6127450f7554f.zip
use correct label for meta key
Diffstat (limited to 'extension/src/lang-server')
-rw-r--r--extension/src/lang-server/codeLens.ts7
1 files changed, 4 insertions, 3 deletions
diff --git a/extension/src/lang-server/codeLens.ts b/extension/src/lang-server/codeLens.ts
index 1cfef5d5..ba80e557 100644
--- a/extension/src/lang-server/codeLens.ts
+++ b/extension/src/lang-server/codeLens.ts
@@ -3,6 +3,7 @@ import { editorToSuggestions, editorSuggestionsLocked } from "../suggestions";
import * as path from "path";
import * as os from "os";
import { DIFF_DIRECTORY, diffManager } from "../diffs";
+import { getMetaKeyLabel } from "../util/util";
class SuggestionsCodeLensProvider implements vscode.CodeLensProvider {
public provideCodeLenses(
document: vscode.TextDocument,
@@ -35,7 +36,7 @@ class SuggestionsCodeLensProvider implements vscode.CodeLensProvider {
if (codeLenses.length === 2) {
codeLenses.push(
new vscode.CodeLens(range, {
- title: "(⌘⇧↩/⌘⇧⌫ to accept/reject all)",
+ title: `(${getMetaKeyLabel()}⇧↩/${getMetaKeyLabel()}⇧⌫ to accept/reject all)`,
command: "",
})
);
@@ -60,12 +61,12 @@ class DiffViewerCodeLensProvider implements vscode.CodeLensProvider {
}
codeLenses.push(
new vscode.CodeLens(range, {
- title: "Accept All ✅ (⌘⇧↩)",
+ title: `Accept All ✅ (${getMetaKeyLabel()}⇧↩)`,
command: "continue.acceptDiff",
arguments: [document.uri.fsPath],
}),
new vscode.CodeLens(range, {
- title: "Reject All ❌ (⌘⇧⌫)",
+ title: `Reject All ❌ (${getMetaKeyLabel()}⇧⌫)`,
command: "continue.rejectDiff",
arguments: [document.uri.fsPath],
})