For the tomatoes: add all the ingredients to a small bowl and toss to combine. Set aside for 10 minutes to allow the tomatoes to release their juices.
For the dressing: combine all the ingredients in a small bowl and whisk until combined.
For the corn: if you have a grill, cook the ears wrapped in their husks for about 15-20 minutes or 10 minutes with husks removed. If you don’t have a grill, oil a pan and cook the corn on medium heat, flipping occasionally until all sides are nicely charred. Once cool, cut the sides off each side.
Add everything to a bowl with the dressing, toss together and top with dollops of pesto and crushed pistachios.
