Preheat oven to 350 degrees. In a large bowl, cream butter and both sugars until well blended. Add the egg and vanilla and mix to combine. In a separate bowl, sift the flour, baking soda and salt together. Slowly add these ingredients into the butter mixture and stir until combined. Fold in M&M candies.