     @_bottomTabFile.active = true
     @_panel.id = 'linter-panel'
 
+  getMessages: ->
+    @_messages
+
   # Called in config observer of linter-plus.coffee
   setShowPanel: (showPanel) ->
     atom.config.set('linter.showErrorPanel', showPanel)

    @_panel.innerHTML = ''
    @_removeMarkers()
    @_removeBubble()
    if not @_messages.length
      return @setPanelVisibility(false)
    @setPanelVisibility(true)
    activeEditor = atom.workspace.getActiveTextEditor()

  # This message is called in editor-linter.coffee
  render: ->
    counts = {project: 0, file: 0}
    @_messages.clear()
    @linter.eachEditorLinter (editorLinter) =>
      @_extractMessages(editorLinter.getMessages(), counts)
    @._extractMessages(@linter.getProjectMessages(), counts)

    @_renderPanel()
    @_bottomTabFile.count = counts.file
