diff --git a/src/commands/Folders.ts b/src/commands/Folders.ts index ee49fd45..56cc0421 100644 --- a/src/commands/Folders.ts +++ b/src/commands/Folders.ts @@ -457,12 +457,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); }