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


      )

    createChildren = (selection) ->
      #console.log "creating new children", selection
      item = selection.append('li')

    editor.onDidDestroy -> editorSubscriptions.dispose()

  toggle: ->
    if @isVisible()
      @detach()
    else
      @show()

    LocalStorage.setItem 'outline:outline-visible', @isVisible()
    LocalStorage.setItem 'outline:show-tests', @showTests
    LocalStorage.setItem 'outline:show-private', @showPrivate


  show: ->
    @attach()
    @focus()

