Utility funciton for getting active editor in workspace.