Call Workspace::getActiveTextEditor, not ::getActiveEditor