If the file was recently deleted, go to the folder where the file was located—not in Visual Studio Code, but directly on your desktop. From there, try to recover it.