Don’t test for editor-created events when editor is copied

We can handle this through ::onDidAddTextEditor when the copy is added
back to the pane.
Replace ‘editor-created’ event with ::onDidAddTextEditor
Avoid deprecation by calling ::getActivePaneItem