VS код WSL не может записать файл
# it might have happened because you used the root user to create the directory.
# don't use sudo next time!
sudo chown -R username /path/to/working/directory
silvio2402