From 2e6d44220fdfde393f672fb430b5b6ba855134b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Davor=20Raci=C4=87?= Date: Tue, 27 Jan 2026 23:56:15 +0100 Subject: [PATCH] fix(ide): Added normalization for config.extension, added .yml to the extension array --- tools/cli/installers/lib/ide/_config-driven.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tools/cli/installers/lib/ide/_config-driven.js b/tools/cli/installers/lib/ide/_config-driven.js index 538bd753..4ebd173e 100644 --- a/tools/cli/installers/lib/ide/_config-driven.js +++ b/tools/cli/installers/lib/ide/_config-driven.js @@ -195,14 +195,16 @@ class ConfigDrivenIdeSetup extends BaseIdeSetup { if (header_template || body_template) { const content = await this.loadSplitTemplates(templateType, artifactType, header_template, body_template); // Allow config to override extension, default to .md - return { content, extension: config.extension || '.md' }; + const ext = config.extension || '.md'; + const normalizedExt = ext.startsWith('.') ? ext : `.${ext}`; + return { content, extension: normalizedExt }; } // Load combined template - try multiple extensions // If artifactType is empty, templateType already contains full name (e.g., 'gemini-workflow-yaml') const templateBaseName = artifactType ? `${templateType}-${artifactType}` : templateType; const templateDir = path.join(__dirname, 'templates', 'combined'); - const extensions = ['.md', '.toml', '.yaml']; + const extensions = ['.md', '.toml', '.yaml', '.yml']; for (const ext of extensions) { const templatePath = path.join(templateDir, templateBaseName + ext);