Failed to save 'file.js': Unable to write file (NoPermissions (FileSystemError): Error: EACCES: permission denied, open '/opt/path/to/folder/file.js')
Steps to Reproduce:
Does this issue occur when you try this locally?: Yes
Does this issue occur when you try this locally and all extensions are disabled?: Yes
Worth noting I am working behind an enterprise proxy/firewall, however the ssh tunnel is successfully established as seen in the output console, port 38473 is successfully forwarded.
I can successfully change the file form the temrinal via nano or vim, saving from VS code however throws the above mentioned error.
I was logged in with a user that didn't have access to change folder. Had to change user as below and then it worked.
sudo chown -R myuser /path/to/folder
Most helpful comment
I was logged in with a user that didn't have access to change folder. Had to change user as below and then it worked.
sudo chown -R myuser /path/to/folder