In a heavy saucepan, mix together sugar, cornstarch, cocoa, and a pinch of salt. Gradually pour in milk and cream. Bring to a boil over medium high heat stirring constantly. Let boil for 2 minutes while you stir. Remove from heat and whisk in chopped chocolate and vanilla. Whisk until smooth. Transfer to bowls and let cool; then refrigerate.