From 4e59e736ed1e70cebd2df545afe6d7435ca91848 Mon Sep 17 00:00:00 2001 From: Elio Struyf Date: Sun, 8 May 2022 18:09:19 +0200 Subject: [PATCH] Parse windows path --- src/commands/Folders.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/Folders.ts b/src/commands/Folders.ts index ef26089a..58b629e7 100644 --- a/src/commands/Folders.ts +++ b/src/commands/Folders.ts @@ -358,7 +358,7 @@ export class Folders { // Find folders that contain files const wsFolder = Folders.getWorkspaceFolder(); const supportedFiles = Settings.get(SETTING_CONTENT_SUPPORTED_FILETYPES) || DEFAULT_FILE_TYPES; - const patterns = supportedFiles.map(fileType => `${join(wsFolder?.fsPath || "", "**", `*${fileType.startsWith('.') ? '' : '.'}${fileType}`)}`); + const patterns = supportedFiles.map(fileType => `${join(parseWinPath(wsFolder?.fsPath || ""), "**", `*${fileType.startsWith('.') ? '' : '.'}${fileType}`)}`); let folders: string[] = []; for (const pattern of patterns) {