In a bowl, combine the flour, baking powder, and salt; stir well to mix.
In the bowl of a standing electric mixer fitted with the paddle attachment, beat the butter and sugar together on medium speed until well mixed, about a minute.
Beat in the egg until it is well incorporated and the mixture is smooth, then beat in the chocolate and vanilla. Scrape