I had this problem on my vscode and only able to overcome this when disabled the auto save option.
Is there any other way to solve this while keeping the auto Save active ?