From 73ae5d306c16d7c372e831d3ca41067a62c8481f Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Sat, 9 Sep 2023 17:17:31 -0700 Subject: feat: :sparkles: make follow-up edits --- extension/src/diffs.ts | 2 +- extension/src/lang-server/codeLens.ts | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'extension/src') diff --git a/extension/src/diffs.ts b/extension/src/diffs.ts index 98b8753a..b7acd109 100644 --- a/extension/src/diffs.ts +++ b/extension/src/diffs.ts @@ -62,7 +62,7 @@ class DiffManager { } private escapeFilepath(filepath: string): string { - return filepath.replace(/\\/g, "_").replace(/\//g, "_"); + return encodeURIComponent(filepath); } private remoteTmpDir: string = "/tmp/continue"; diff --git a/extension/src/lang-server/codeLens.ts b/extension/src/lang-server/codeLens.ts index ba80e557..ec03f73e 100644 --- a/extension/src/lang-server/codeLens.ts +++ b/extension/src/lang-server/codeLens.ts @@ -69,6 +69,10 @@ class DiffViewerCodeLensProvider implements vscode.CodeLensProvider { title: `Reject All ❌ (${getMetaKeyLabel()}⇧⌫)`, command: "continue.rejectDiff", arguments: [document.uri.fsPath], + }), + new vscode.CodeLens(range, { + title: `Further Edit ✏️ (${getMetaKeyLabel()}⇧M)`, + command: "continue.focusContinueInputWithEdit", }) ); return codeLenses; -- cgit v1.2.3-70-g09d2