Wasn’t this the same issue you had previously - VSC find and change triggered endless PG saved in external editor - #4 by kat
Did turning-off Auto-save in VS code help last time?
If you have turned it off in VS code and it got turned-on automatically again, I suspect it could be due to some VS code extension you are using… I think the issue is at your VS code end.