Metformin in pregnancy?

For those taking metformin for PCOS, How long are you taking it into your pregnancy? Until the 1st trimester ends? The whole 9 months? 
I'll be asking my midwife about this when I have an appt in 2 weeks, but just curious about everyone else's experiences.