Preheat your oven to 350°F (175°C). Grease a 9-inch pie pan or a deep dish pie plate.
In a medium bowl, whisk together the flour, baking soda, and salt. Set aside.
In a large mixing bowl, cream together the softened butter, granulated sugar, brown sugar, and vanilla extract until light and fluffy.
Add the eggs one at a time, mixing well after each addition.
Gradually add the dry ingredients to the wet mixture, mixing until just combined.
Fold in the chocolate chips and M&M's until evenly distributed.
Spread the cookie dough evenly in the prepared pie pan.
Bake for 25-30 minutes, or until the edges are golden brown and a toothpick inserted in the center comes out clean.
Allow the pie to cool in the pan for at least 15 minutes before slicing and serving.