       switch eventName
         when 'cursor:moved'
           deprecate('Use Editor::onDidChangeCursorPosition instead')
+        when 'editor:attached'
+          deprecate('Use Editor::onDidAddTextEditor instead')
         when 'editor:will-be-removed'
           deprecate('Use Editor::onDidDestroy instead')
         when 'pane:active-item-changed'

      switch eventName
        when 'cursor:moved'
          deprecate('Use Editor::onDidChangeCursorPosition instead')
        when 'editor:will-be-removed'
          deprecate('Use Editor::onDidDestroy instead')
        when 'selection:changed'

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