#602: fix for Windows paths

This commit is contained in:
Elio Struyf
2023-07-11 14:20:15 +02:00
parent 8d72f0845a
commit edb8bf8ff7
+2 -1
View File
@@ -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);
}