mirror of
https://github.com/morluto/rea.git
synced 2026-12-04 05:51:06 +00:00
refactor(vsix): share entry point summary bounds (#16577)
This commit is contained in:
1 parent
b3dc1e1eab
commit
4c8314dda6
1 file changed
+6
-14
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user