@@ -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