Thanks for reporting a bug you have found in Cursor!
Please add the following info to help us diagnose your issue:
After uncommenting the code, the original code color becomes gray (similar to the form of completion), and turning off the file reforward can sometimes solve the problem