From a270beeabf7628c84f083bac6566674a6157dadd Mon Sep 17 00:00:00 2001 From: KristofersOzolinsMagebit Date: Wed, 22 Oct 2025 12:54:53 +0300 Subject: [PATCH 1/2] fix: empty system list in xml catalog --- src/command/GenerateXmlCatalogCommand.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/command/GenerateXmlCatalogCommand.ts b/src/command/GenerateXmlCatalogCommand.ts index 0ff72ed..c61b486 100644 --- a/src/command/GenerateXmlCatalogCommand.ts +++ b/src/command/GenerateXmlCatalogCommand.ts @@ -26,8 +26,12 @@ export default class GenerateXmlCatalogCommand extends Command { return; } + console.log('workspaceFolder', workspaceFolder.uri.fsPath); + const catalogLocation = Uri.joinPath(workspaceFolder.uri, '.vscode/magento-catalog.xml'); + console.log('catalogLocation', catalogLocation.fsPath); + if (!(await FileSystem.fileExists(catalogLocation))) { const success = await this.generateCatalog(); @@ -80,7 +84,9 @@ export default class GenerateXmlCatalogCommand extends Command { } const xmlGenerator = new XmlGenerator(xmlCatalog); - const formattedCatalog = xmlGenerator.toString(); + const formattedCatalog = xmlGenerator.toString({ + oneListGroup: false, + }); await FileSystem.writeFile(catalogLocation, formattedCatalog); } From e14a91a74e76107efbcf721f00594272392e760f Mon Sep 17 00:00:00 2001 From: KristofersOzolinsMagebit Date: Wed, 22 Oct 2025 12:55:32 +0300 Subject: [PATCH 2/2] chore: removed logs --- src/command/GenerateXmlCatalogCommand.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/command/GenerateXmlCatalogCommand.ts b/src/command/GenerateXmlCatalogCommand.ts index c61b486..e1e528e 100644 --- a/src/command/GenerateXmlCatalogCommand.ts +++ b/src/command/GenerateXmlCatalogCommand.ts @@ -26,12 +26,8 @@ export default class GenerateXmlCatalogCommand extends Command { return; } - console.log('workspaceFolder', workspaceFolder.uri.fsPath); - const catalogLocation = Uri.joinPath(workspaceFolder.uri, '.vscode/magento-catalog.xml'); - console.log('catalogLocation', catalogLocation.fsPath); - if (!(await FileSystem.fileExists(catalogLocation))) { const success = await this.generateCatalog();