Skip to content

Commit f492317

Browse files
committed
1 parent aa58716 commit f492317

1 file changed

Lines changed: 10 additions & 8 deletions

File tree

src/vs/workbench/parts/extensions/electron-browser/extensionEditor.ts

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -340,14 +340,16 @@ export class ExtensionEditor extends BaseEditor {
340340
const removeLayoutParticipant = arrays.insert(this.layoutParticipants, { layout });
341341
this.contentDisposables.push(toDisposable(removeLayoutParticipant));
342342

343-
let isEmpty = true;
344-
isEmpty = isEmpty && !ExtensionEditor.renderSettings(content, manifest, layout);
345-
isEmpty = isEmpty && !this.renderCommands(content, manifest, layout);
346-
isEmpty = isEmpty && !ExtensionEditor.renderLanguages(content, manifest, layout);
347-
isEmpty = isEmpty && !ExtensionEditor.renderThemes(content, manifest, layout);
348-
isEmpty = isEmpty && !ExtensionEditor.renderJSONValidation(content, manifest, layout);
349-
isEmpty = isEmpty && !ExtensionEditor.renderDebuggers(content, manifest, layout);
350-
343+
const renders = [
344+
ExtensionEditor.renderSettings(content, manifest, layout),
345+
this.renderCommands(content, manifest, layout),
346+
ExtensionEditor.renderLanguages(content, manifest, layout),
347+
ExtensionEditor.renderThemes(content, manifest, layout),
348+
ExtensionEditor.renderJSONValidation(content, manifest, layout),
349+
ExtensionEditor.renderDebuggers(content, manifest, layout)
350+
];
351+
352+
const isEmpty = !renders.reduce((v, r) => r || v, false);
351353
scrollableContent.scanDomNode();
352354

353355
if (isEmpty) {

0 commit comments

Comments
 (0)