Put the chopped onion and extra virgin olive oil in a big pan and sauté it for a minute.
Add the ham and peas (if you are using frozen peas, there is no need to defrost them – if you are using fresh peas you will need to add a couple of tablespoons of water for them to cook). Stir and cook for 5 minutes or until the peas are soft.
Add the cream and salt to taste and cook for a minute, then put the fire off.
Cook the gnocchi as per the instructions that you find here.
When cooked, add the gnocchi to the pan with the ham and pea sauce. Put the fire on and mix well for about 1 minute.
Serve immediately with some grated Parmigiano Reggiano on the top.