In a food processor, pulse the flour, sugar and salt to combine. Add the butter and pulse briefly until the butter pieces are the size of peas. Add the egg, water and vanilla extract. Pulse until the dough just begins to hold together, adding more water if necessary. Remove the dough from the food processor and shape it into a rectangle with your hands.