code: def clear(self):
          
          self._decorations[:] = []
          try:
              self.editor.setExtraSelections(self._decorations)
          except RuntimeError:
              pass
docs: Removes all text decoration from the editor.