 class Tags
   constructor: ->
     @tags = new Map
+    @watcher = {}
     atom.project.getPaths().forEach (dir) =>
       @update dir
-      @watcher = chokidar.watch dir,
+      @watcher[dir] = chokidar.watch dir,
         useFsEvents: true
         ignoreInitial: true
         ignored: (f, s) ->

          return false if s.mode & 0o0040000
          # console.log f, s
          not (f.endsWith('.hs') or f.endsWith('.lhs') )
      @watcher
      .on 'add', (path) =>
        @update path
      .on 'change', (path) =>

        @tags.delete path

  destroy: ->
    for k, dir of @watcher
      dir.close()
    @watcher = null
    @tags = null

