     for pack, index in packages
       packageRow = $$ -> @div class: 'row'
       container.append(packageRow)
-      # TODO if pack.valid?
       packView = new AvailablePackageView(pack, @packageManager, {back: 'Themes'})
       packageViews.push(packView) # used for search filterin'
       packageRow.append(packView)


      .catch (error) =>
        @loadingMessage.hide()
        # TODO errors by section
        @featuredErrors.append(new ErrorView(@packageManager, error))

  # Update the active UI and syntax themes and populate the menu

      core = @corePackages.find('.available-package-view:not(.hidden)').length
      @coreCount.text " (#{core}/#{@packages.core.length})"

  matchPackages: ->
    filterText = @filterEditor.getEditor().getText()
    @filterPackageListByText(filterText)
