After cursor made changes to the code it make 1000 lines RED

Dear members,

For some reason after the update my cursor is making changes and turn everything RED. After pressing accept all it’s deleting all the code.

It only keeps the code that has been changed.

What is the sollution for this?