         problem = m.getProperties().problem
         _.any(problems, (p) => _.isEqual(p, problem))
       ).value()
+    # console.log "destroying #{ms.length} markers for #{problems.length} problems"
     _.invoke ms, 'destroy'
 
   decorateEditor: (editor, problems) =>
-    # @clearMarkers(editor, problems)
     for problem in problems
       location = problem.location
 

_ = require 'lodash'

class AnalysisDecorator
  constructor: (@errors) ->
    @listen()

  listen: =>
    atom.workspace.observeTextEditors @handleEditors
    @errors.onChange @handleErrors

  clearMarkers: (editor, problems) =>
    markers = editor.findMarkers

    return unless problems?.length > 0
    @decorateEditor(editor, problems)

  dispose: =>
    @subscriptions.dispose()


module.exports = AnalysisDecorator
