Cook the gnocchi in plenty of boiling salted water for 2 minutes. Drain and let drain well.
Clean the mushrooms, wash them if necessary and, depending on size, leave them whole or halve them. Cut tomatoes into small pieces.
Heat the oil in a large frying pan. Fry the ham in it until crispy. Take it out. Fry the mushrooms in the frying fat for about 5 minutes. Fry gnocchi and tomatoes for 2 minutes while turning. Season with salt and pepper.
Add wine, 1/8 l water and cream, bring to the boil, simmer for 2-3 minutes. Add ham. Season to taste with salt and pepper.
Wash the basil, shake dry and pluck the leaves. Arrange the gnocchi with sauce and sprinkle with basil.