I've managed to fix this by going to settings.json and adding the following line:
settings.json
"terminal.integrated.inheritEnv": true
Restart vscode and you will be good to go.