Your issue might be due to the CodeLens feature being enabled. To disable CodeLens, which provides real-time information and actions related to your code directly within the Visual Studio code editor, follow these steps: Open Visual Studio.
By following these steps, you can disable the CodeLens feature in Visual Studio. I hope this helps. Have a great day!