Hi @Edge30,
It seems like VSCode is not able to get root privileges to the workspace you are working on. This would be the equivalent to administrator access on windows. You could try changing permissions to ensure that the workspace is not "read only", from a google search I found two links on how to potentially fix this issue:
https://www.wikihow.com/Open-Applications-With-Root-Privileges-on-a-Mac
I hope this helps,
Edwin.