     @markers.forEach (marker) -> try marker.destroy()
     @markers = []
 
+  removeBubble: ->
+    @bubble?.destroy()
+    @bubble = null
+
   destroy: ->
     @removeMarkers()
+    @removeBubble()
     @subscriptions.dispose()
     @bottomBar.destroy()
     @panel.destroy()

    else if @state.scope is 'File'
      messages = @messages.filter (message) -> message.currentFile
    else if @state.scope is 'Line'
      messages = @lineMessages
    @panel.updateMessages messages, @state.scope is 'Project'

  renderPanelMarkers: ->

        marker, type: 'highlight', class: "linter-highlight #{message.class}"
      )

  updateLineMessages: (render = false) ->
    @messagesLine = @linter.messages.getActiveFileMessagesForActiveRow()
    @renderCount()
    @renderPanelMessages() if render

  attachBottom: (statusBar) ->
    @bottomBar = statusBar.addLeftTile
