From 8a5cda89378640cef375689d6be48f9ab21cab7e Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Wed, 5 Jul 2023 16:28:58 -0700 Subject: setting to show codelens in diff editor --- extension/src/diffs.ts | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'extension/src/diffs.ts') diff --git a/extension/src/diffs.ts b/extension/src/diffs.ts index b70c3b59..178b1a9d 100644 --- a/extension/src/diffs.ts +++ b/extension/src/diffs.ts @@ -47,6 +47,12 @@ class DiffManager { if (!editor) { throw new Error("No active text editor found for Continue Diff"); } + + // Change the vscode setting to allow codeLens in diff editor + vscode.workspace + .getConfiguration("diffEditor", editor.document.uri) + .update("codeLens", true, vscode.ConfigurationTarget.Global); + return editor; } -- cgit v1.2.3-70-g09d2