summaryrefslogtreecommitdiff
path: root/extension/src/lang-server
diff options
context:
space:
mode:
authorsestinj <sestinj@gmail.com>2023-07-15 15:11:47 -0700
committersestinj <sestinj@gmail.com>2023-07-15 15:11:47 -0700
commitfd6e0c592037d94453dfea6cd6aa73f7d0cb80b2 (patch)
tree0475858b665f314fa648f96ec9468b716a2a2f86 /extension/src/lang-server
parent15aed0fa0392cf1c33c68fca7413593525e3fc65 (diff)
parent46883738a287a5eb1cfae71ab1f6127450f7554f (diff)
downloadsncontinue-fd6e0c592037d94453dfea6cd6aa73f7d0cb80b2.tar.gz
sncontinue-fd6e0c592037d94453dfea6cd6aa73f7d0cb80b2.tar.bz2
sncontinue-fd6e0c592037d94453dfea6cd6aa73f7d0cb80b2.zip
Merge branch 'main' of github.com:continuedev/continue into main
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],
})