Cook the pasta according to the instructions of the pack.
Meanwhile, heat the oil in a frying pan and sauté the onion and garlic for 3 minutes. Add the tomatoes and cook for another 5 minutes until the tomatoes start becoming soft. Add the peas and cook for another ⅔ minutes.
By now the pasta should be ready. Using some serving tongs, move the pasta to the vegetables, allowing some cooking water to go with it. Toss, season with salt and pepper. Add some more cooking water for the pasta to be moist.
Serve warm with some herbs scattered on top.