Excavator with telescopic arm