I am seeing this weird behaviour by vscode (Cursor actually) where it reformats the file as soon as I press enter. Showcased it in this video: https://youtu.be/kACXeZoYZoQ
I have not been able to figure out what setting is causing this. I have disabled format-on-save just to be sure. Can someone point me towards right setting or atleast some way to monitor vscode event logs so I know what is causing this behaviour.
I found the cause after about an hour of posting this question. It was pylance. Sharing how I figured it out since someone might stumble upon this question while googling their issues.
VSCode's `Start Extension Bisect` command basically does a binary search to help figure out what extension/plugin is causing the unwanted behaviour. Disabling pylance for now while I understand its configuration params.