As @PaulMcKenzie said, this error is easily avoided by running VsCode as an administrator
To run it as an administrator, you can double click VsCode and scroll down on the options until you find Run as administrator
Or to run it as an administrator all the time you can
From it will run as an administrator everytime you open the application