From da3970e00061b7a223d23f51bd53012666d324dc Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Thu, 14 Sep 2023 17:17:50 -0700 Subject: fix: :bug: custom escaping instead of URI for diff paths --- extension/src/diffs.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'extension/src') diff --git a/extension/src/diffs.ts b/extension/src/diffs.ts index b7acd109..4c077a25 100644 --- a/extension/src/diffs.ts +++ b/extension/src/diffs.ts @@ -62,7 +62,9 @@ class DiffManager { } private escapeFilepath(filepath: string): string { - return encodeURIComponent(filepath); + return filepath + .replace(/\//g, "$forwardslash$") + .replace(/\\/g, "$backslash$"); } private remoteTmpDir: string = "/tmp/continue"; -- cgit v1.2.3-70-g09d2