From 34ced5fa6ede3890c0e10b6adf93c246ebbb5a97 Mon Sep 17 00:00:00 2001 From: Johannes Date: Wed, 11 Feb 2026 10:21:02 +0100 Subject: [PATCH] write --- build/next/nls-plugin.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/build/next/nls-plugin.ts b/build/next/nls-plugin.ts index 53f5359c3b8..caae95cb434 100644 --- a/build/next/nls-plugin.ts +++ b/build/next/nls-plugin.ts @@ -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 };