refactor(vsix): share entry point summary bounds (#16577)

This commit is contained in:
Vincent Koc authored and GitHub committed 2026-12-04 12:19:31 +08:00
1 parent b3dc1e1eab
commit 4c8314dda6
1 file changed
+6 -14
+6 -14
View File
@@ -108,21 +108,13 @@ export const projectVsixPackageView = (
disagreement: report.engine.disagreement,
};
const summaryTargetPlatform = boundNullable(report.target_platform);
const boundEntryPoint = (entry: typeof report.entry_points.main) =>
entry === null
? null
: { path: boundText(entry.path), present: entry.present };
const summaryEntryPoints = {
main:
report.entry_points.main === null
? null
: {
path: boundText(report.entry_points.main.path),
present: report.entry_points.main.present,
},
browser:
report.entry_points.browser === null
? null
: {
path: boundText(report.entry_points.browser.path),
present: report.entry_points.browser.present,
},
main: boundEntryPoint(report.entry_points.main),
browser: boundEntryPoint(report.entry_points.browser),
};
let eagerActivationEventCount = 0;
for (const event of report.activation_events) {