mirror of
https://github.com/estruyf/vscode-front-matter.git
synced 2026-11-06 10:32:22 +01:00
Parse windows path
This commit is contained in:
1 parent
9f91ebf289
commit
4e59e736ed
1 file changed
+1
-1
@@ -358,7 +358,7 @@ export class Folders {
|
||||
// Find folders that contain files
|
||||
const wsFolder = Folders.getWorkspaceFolder();
|
||||
const supportedFiles = Settings.get<string[]>(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) {
|
||||
|
||||
Reference in new issue
Block a user