Fixed Edit Event

Made it pick the first code action it sees and not just check if the
very first action is a code action and prepend.