The War Magic feature of the Eldritch Knight states (PHB p. 75):
when you use your action to cast a cantrip [or at level 18+ a spell], you can make one weapon attack as a bonus action.
I'm quite confused: if I take that bonus action will the extra attack apply to it?