   initialize: ->
     super
     @reloadTags = true
-    @tagsFiles = []
     @setMaxItems(10)
 
   destroy: ->

{File} = require 'pathwatcher'
humanize = require 'humanize-plus'
SymbolsView = require './symbols-view'

  watchTagsFiles: ->
    @unwatchTagsFiles()

    @tagsFileSubscriptions = new CompositeDisposable()
    reloadTags = =>
      @reloadTags = true
      @watchTagsFiles()

    for projectPath in atom.project.getPaths()
      if tagsFilePath = getTagsFile(projectPath)
        tagsFile = new File(tagsFilePath)
        @tagsFileSubscriptions.add(tagsFile.onDidChange(reloadTags))
        @tagsFileSubscriptions.add(tagsFile.onDidDelete(reloadTags))
        @tagsFileSubscriptions.add(tagsFile.onDidRename(reloadTags))

    return

  unwatchTagsFiles: ->
    @tagFileSubscriptions?.dispose()
    @tagFileSubscriptions = null
