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
- 1-double click, on you're VsCode file icon
- 2-Scroll down to properties
- 3-Settings
- 4-On the bottom of the right corner you have "advanced" settings, click there and cross the lick checkbox that makes it run the application as an administrator
- 5-Press the ok case, next to the "advanced settings case" to close the properties and now it's good
From it will run as an administrator everytime you open the application