01 - Bring a large pot of salted water to a rolling boil.
02 - Heat olive oil in a large skillet over medium heat. Add chopped onion and cook for 3 to 4 minutes until softened and translucent.
03 - Add minced garlic and sauté for 30 seconds until aromatic.
04 - Stir in crushed tomatoes, vegetable broth or water, dried oregano, salt, black pepper, and sugar if using. Simmer for 7 to 8 minutes, stirring occasionally, until gently thickened.
05 - Reduce heat to low and pour in the heavy cream. Simmer gently for 2 to 3 minutes, ensuring the sauce becomes smooth and cohesive.
06 - While sauce simmers, cook gnocchi in boiling water according to package instructions until they float to the surface, about 2 to 3 minutes. Drain thoroughly using a colander.
07 - Add the drained gnocchi to the tomato cream sauce, tossing gently to coat. Stir in grated parmesan cheese until melted and the sauce achieves a creamy texture.
08 - Serve immediately, garnished with torn fresh basil, additional grated parmesan cheese, and a pinch of red pepper flakes if desired.