In a food processor, combine the flour, sugar, and salt. Add the butter and pulse for a few seconds at a time, until the butter is the size of peas. Add the egg, water, and vanilla. Pulse again until the dough just begins to form. Add water, if needed. Remove the dough from the food processor and form a rectangle with your hands.