try set your script in /etc/profile (or/and) /etc/environment, all new sessions will be read theses properties, i'm considering that vscode will do the same.