Return empty array on empty project

This commit is contained in:
Elio Struyf
2023-09-05 10:58:20 +02:00
parent 1b88ff9932
commit 40f7ca5a2f
+4
View File
@@ -495,6 +495,10 @@ export class Folders {
public static async getContentFolders() {
// Find folders that contain files
const wsFolder = Folders.getWorkspaceFolder();
if (!wsFolder) {
return [];
}
const supportedFiles =
Settings.get<string[]>(SETTING_CONTENT_SUPPORTED_FILETYPES) || DEFAULT_FILE_TYPES;
const patterns = supportedFiles.map(