From edb8bf8ff78328aff9ac9197be88fa9058a81f01 Mon Sep 17 00:00:00 2001 From: Elio Struyf Date: Tue, 11 Jul 2023 14:20:15 +0200 Subject: [PATCH] #602: fix for Windows paths --- src/commands/Folders.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/commands/Folders.ts b/src/commands/Folders.ts index b4e86f3b..c749dc65 100644 --- a/src/commands/Folders.ts +++ b/src/commands/Folders.ts @@ -462,12 +462,13 @@ export class Folders { private static absWsFolder(folder: ContentFolder, wsFolder?: Uri) { const isWindows = process.platform === 'win32'; let absPath = folder.path.replace(WORKSPACE_PLACEHOLDER, parseWinPath(wsFolder?.fsPath || '')); - absPath = isWindows ? absPath.split('/').join('\\') : absPath; if (absPath.includes('../')) { absPath = join(absPath); } + absPath = isWindows ? absPath.split('/').join('\\') : absPath; + return parseWinPath(absPath); }