       switch eventName
         when 'cursor:moved'
           deprecate('Use Editor::onDidChangeCursorPosition instead')
+        when 'editor:will-be-removed'
+          deprecate('Use Editor::onDidDestroy instead')
         when 'selection:changed'
           deprecate('Use Editor::onDidChangeSelectionRange instead')
       originalEditorViewOn.apply(this, arguments)

      switch eventName
        when 'cursor:moved'
          deprecate('Use Editor::onDidChangeCursorPosition instead')
        when 'pane:active-item-changed'
          deprecate('Use Pane::onDidChangeActiveItem instead')
        when 'pane:active-item-modified-status-changed'

      switch eventName
        when 'cursor:moved'
          deprecate('Use Editor::onDidChangeCursorPosition instead')
        when 'editor:will-be-removed'
          deprecate('Use Editor::onDidDestroy instead')
        when 'pane:active-item-changed'
          deprecate('Use Pane::onDidChangeActiveItem instead')
        when 'pane:active-item-modified-status-changed'
