Skip to content

Commit 8d10ed4

Browse files
mjbvzCopilot
andcommitted
Don't emit extensionsApiProposals if it has not changed
This triggers our watcher scripts, causing an extra recompile Co-authored-by: Copilot <copilot@github.com>
1 parent 1c0b3b8 commit 8d10ed4

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

build/lib/compilation.ts

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,8 +339,18 @@ function generateApiProposalNames() {
339339
'',
340340
].join(eol);
341341

342+
const filePath = 'vs/platform/extensions/common/extensionsApiProposals.ts';
343+
try {
344+
const existing = fs.readFileSync(path.join('src', filePath), 'utf-8');
345+
if (existing === contents) {
346+
this.emit('end');
347+
return;
348+
}
349+
} catch {
350+
// File doesn't exist yet, emit it
351+
}
342352
this.emit('data', new File({
343-
path: 'vs/platform/extensions/common/extensionsApiProposals.ts',
353+
path: filePath,
344354
contents: Buffer.from(contents)
345355
}));
346356
this.emit('end');

0 commit comments

Comments
 (0)