I tried everything on the internet, and nothing worked. Finally, I uninstalled vscode, and then reinstalled it. Once reinstalled, move it to your applications folder if you are on mac.