Erroneous repeated lines being added at the end of files on save

Description:
Whenever I save in the cursor IDE, a bunch of repeated statements are added to the bottom of the file. Please see the recording for a better description of what’s happening.

Reproduce: Open cursor IDE, make a change in a file, save.

OS: macOS Sequoia 15.2

This stops me from using cursor as I can’t actually make meaningful changes!

Hey, does this happen if you restart Cursor?

If so, can you try running Cursor with all the extensions disabled, using cursor --disable-extensions from your terminal, and see if that helps?

If that does fix it, this likely means an extension you have installed is causing this, not Cursor itself!