             @decorateDiffMarkers(details)
 
     clearMarkers: ->
-        markers = @editor.findMarkers({name: "line-diff"})
-        marker.destroy() for marker in markers
+        for id, marker of @markers
+            marker.destroy()
+            delete @markers[id]
 
     decorateDiffMarkers: (details) ->
         startPoint = [details.newStart - 1, 0]

                @editor.setTextInBufferRange([startPoint, endPoint], details.originalContent.slice(0, -1))
            )
        @editor.decorateMarker(marker, {type: "overlay", item: messageBubble, position: "tail"})

    findFileDiffs: ->
        activePath = @editor.getPath()

{$, View} = require "atom-space-pen-views"

class LineDiffWorker
    markers: {}
    
    registerEditor: (@editor) ->
        @editor.editorElement.onDidChangeScrollTop @update
        @editor.onDidStopChanging @update
