'error creating registry key: HKEY_CURRENT_USER\Software\Classes\.ts\OpenWithProgids. RegCreateKeyEx faild: code 5 Access denied

When I open VSCode on Windows 10, I get the following pop-up window message and it requires an action:

error creating registry key: 
HKEY_CURRENT_USER\Software\Classes\.ts\OpenWithProgids 
RegCreateKeyEx faild: code 5 
Access denied

Why this happens? What does it mean and how can I get ride of it?

I also checked the "run vscode as administrator" on compatibility tab and it asks for "run as administrator" each time I open it, and I grant the access, but still after few seconds the pop-up window appears again.

enter image description here



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source