 
     @panel.id = 'linter-panel'
     @updateTabs()
-    @linter.subscriptions.add @linter.onDidChangeMessages =>
+    @linter.subscriptions.add @linter.onDidClassifyMessages =>
       @render()
 
   # consumed in views/panel


  # This message is called in editor-linter.coffee
  render: ->
    @classifyMessages(@linter.getMessages())
    @updateLineMessages()
    @updateBubble()
    @renderPanelMarkers()

    @markers = []

  # This method is called in render, and classifies the messages according to scope
  updateMessages: ->
    counts = {File: 0, Project: 0}
    @messages.clear()
    @linter.getMessages().forEach (Entry) =>
      Entry.forEach (message) =>
        # If there's no file prop on message and the panel scope is file then count is as current
        if message.currentFile
          counts.File++
          counts.Project++
        else
          counts.Project++
        @messages.add message
    @tabs.File.count = counts.File
    @tabs.Project.count = counts.Project
