       leafs.classed("list-item", true)
       addEntryIcon(leafs)
 
-      nonLeafs.each((d)->
+
+      nonLeafs.each((d) ->
         childList = d3.select(this).append("ol")
         childList.attr({class:'list-tree'})
-        childList.selectAll("li").data((d.children), (d)->d.name).enter().call(createChildren)
+        childList.selectAll("li").data(filterChildren(d.children), (d)->d.name).enter().call(createChildren)
       )
 
       updateExpand = ->

    editor.onDidDestroy -> editorSubscriptions.dispose()

  toggle: ->
    console.log "toggling", @isVisible
    console.log "my style", this[0].style
    if @isVisible()
      @detach()
    else
      @show()
      console.log "It's visible now", @isVisible()

    LocalStorage.setItem 'outline:outline-visible', @isVisible()

  show: ->
    # append input filter
    #if !@filterInput?
  #    @filterInput = $(@outlineToolbar).append("<atom-text-editor mini>hello world</atom-text-editor>")
    @attach()
    @focus()


    if !pkg?
      console.log "Provided null as package to display. This should not happen"
      return

    outView = @

    jumpToSymbol = (item) ->
      return unless item.fileName?
