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.
This commit is contained in:
Josh Spicer
2026-03-06 12:02:44 -08:00
committed by GitHub
parent 2f67478444
commit abe7ae5449

View File

@@ -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)