From 655456c06eabb50d2f4d6762a0dd9ca48d8ff762 Mon Sep 17 00:00:00 2001 From: "matteo.lqarcher@unitn.it" Date: Sun, 8 Feb 2026 19:59:39 +0100 Subject: [PATCH] fix: pass correct directory to copyExtensions in template installation\n\nWhen installing template extensions, copyExtensions() was called with\nstagedDir as the source directory instead of extDir (_extensions folder).\nThis caused readExtensions() to fail finding any extensions on the second\ncall, resulting in an empty _extensions folder being created.\n\nFixes: #14008 --- src/command/use/commands/template.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/command/use/commands/template.ts b/src/command/use/commands/template.ts index 3bd1c40b6b8..9ee7ab185d6 100644 --- a/src/command/use/commands/template.ts +++ b/src/command/use/commands/template.ts @@ -157,7 +157,7 @@ async function useTemplate( // Copy the extensions into a substaging directory // this will ensure that they are namespaced properly const subStagedDir = tempContext.createDir(); - await copyExtensions(source, stagedDir, subStagedDir); + await copyExtensions(source, extDir, subStagedDir); // Now complete installation from this sub-staged directory await completeInstallation(subStagedDir, outputDirectory);