     filterKey = @provider.getFilterKey()
 
     @getItems().then (items) =>
-      # @markerLayer?.destroy()
-      # @decorationLayer?.destroy()
-      # @markerLayer = @editor.addMarkerLayer()
-      # @decorationLayer = @editor.decorateMarkerLayer(@markerLayer, {type: 'highlight', class: 'narrow-match'})
-
       patterns = []
       for word in words
         pattern = _.escapeRegExp(word)

  buildEditor: (params={}) ->
    @editor = atom.workspace.buildTextEditor(lineNumberGutterVisible: false)
    @editor.onDidDestroy =>
      # @markerLayer?.destroy()
      @provider?.destroy?()

    @editorElement = atom.views.getView(@editor)


      @updateGrammar(@editor, patterns.join('|'))
      @setItems(items)

  observeInputChange: (editor) ->
    buffer = editor.getBuffer()
