Put the gnocchi in plenty of boiling salted water and let simmer for 2-3 minutes, then drain.
Clean, wash and halve the mushrooms. Drain the tomatoes and cut into small pieces.
Heat the oil in a pan, fry the ham in it, remove. Fry the mushrooms vigorously in the frying fat, fry the gnocchi and tomatoes briefly, season. Pour in the cream, bring to the boil and reduce for about 2 minutes.
Wash the basil, pluck the leaves off. Season the gnocchi pan to taste, sprinkle with basil and ham.