diff options
author | sestinj <sestinj@gmail.com> | 2023-07-15 15:11:47 -0700 |
---|---|---|
committer | sestinj <sestinj@gmail.com> | 2023-07-15 15:11:47 -0700 |
commit | 2d65ab9e6a6e0009a070ca2c11749126a3bad175 (patch) | |
tree | d22a3795528ec37d2f9c528f929fad6c82be444b /extension/src/lang-server | |
parent | 5921c70228ea74fe2ed687c6bfda8a876d5455c5 (diff) | |
parent | 45ee33f7fd84c0bc49d35d9d1a7a3a8e9f6addd7 (diff) | |
download | sncontinue-2d65ab9e6a6e0009a070ca2c11749126a3bad175.tar.gz sncontinue-2d65ab9e6a6e0009a070ca2c11749126a3bad175.tar.bz2 sncontinue-2d65ab9e6a6e0009a070ca2c11749126a3bad175.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.ts | 7 |
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], }) |