From abe7ae5449c8cab202f4cc8cd8a8f05936cf06b8 Mon Sep 17 00:00:00 2001 From: Josh Spicer <23246594+joshspicer@users.noreply.github.com> Date: Fri, 6 Mar 2026 12:02:44 -0800 Subject: [PATCH] fix: include sessions built-in prompts in esbuild resource patterns (#299848) The new esbuild-based CI pipeline (core-ci) uses curated resource patterns in build/next/index.ts to copy non-JS assets into the bundle output. When built-in .prompt.md files were added for the sessions window, they were included in the legacy pipeline's vscodeResourceIncludes (build/gulpfile.vscode.ts) but not in the desktopResourcePatterns used by the esbuild pipeline. This caused the prompt files to be missing from release builds (out-vscode-min), even though they worked correctly when running from sources (where copyAllNonTsFiles copies everything). Add 'vs/sessions/prompts/*.prompt.md' to desktopResourcePatterns to match the existing entry in vscodeResourceIncludes. --- build/next/index.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/build/next/index.ts b/build/next/index.ts index f3043f0fa1f..a77b98b5c63 100644 --- a/build/next/index.ts +++ b/build/next/index.ts @@ -273,6 +273,9 @@ const desktopResourcePatterns = [ 'vs/workbench/services/extensionManagement/common/media/*.png', 'vs/workbench/browser/parts/editor/media/*.png', 'vs/workbench/contrib/debug/browser/media/*.png', + + // Sessions - built-in prompts + 'vs/sessions/prompts/*.prompt.md', ]; // Resources for server target (minimal - no UI)