Skip to content

Commit 49a785a

Browse files
fix: empty system list in xml catalog
1 parent 475c7d1 commit 49a785a

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/command/GenerateXmlCatalogCommand.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,12 @@ export default class GenerateXmlCatalogCommand extends Command {
2626
return;
2727
}
2828

29+
console.log('workspaceFolder', workspaceFolder.uri.fsPath);
30+
2931
const catalogLocation = Uri.joinPath(workspaceFolder.uri, '.vscode/magento-catalog.xml');
3032

33+
console.log('catalogLocation', catalogLocation.fsPath);
34+
3135
if (!(await FileSystem.fileExists(catalogLocation))) {
3236
const success = await this.generateCatalog();
3337

@@ -80,7 +84,9 @@ export default class GenerateXmlCatalogCommand extends Command {
8084
}
8185

8286
const xmlGenerator = new XmlGenerator(xmlCatalog);
83-
const formattedCatalog = xmlGenerator.toString();
87+
const formattedCatalog = xmlGenerator.toString({
88+
oneListGroup: false,
89+
});
8490

8591
await FileSystem.writeFile(catalogLocation, formattedCatalog);
8692
}

0 commit comments

Comments
 (0)