This commit is contained in:
Johannes
2026-02-11 10:21:02 +01:00
parent 2cb8fc3b9d
commit 34ced5fa6e

View File

@@ -136,6 +136,17 @@ export async function finalizeNLS(
),
]));
// Write nls.messages.js only to additional dirs (e.g., out-build) for CI NLS upload,
// not to the primary bundle output dir where it would be an extra file vs the old build
if (alsoWriteTo) {
await Promise.all(alsoWriteTo.map(dir =>
fs.promises.writeFile(
path.join(dir, 'nls.messages.js'),
`/*---------------------------------------------------------\n * Copyright (C) Microsoft Corporation. All rights reserved.\n *--------------------------------------------------------*/\nglobalThis._VSCODE_NLS_MESSAGES=${JSON.stringify(allMessages)};`
)
));
}
console.log(`[nls] Extracted ${allMessages.length} messages from ${moduleToKeys.size} modules`);
return { indexMap, messageCount: allMessages.length };