Hi, great extensions, thanks.
I use nvm to manage a multi-version node environment.
The problem is like below:
//to enable running bash as a login shell (which runs `.bash_profile`)
"terminal.integrated.shellArgs.osx": [
"-l"
],
console.log(process.version), the output is v4.7.0node test.js, the output is v6.9.2nvm will add the following lines to the .bash_profile:export NVM_DIR="/Users/albertgao/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm
"code-runner.executorMap": {}It would be super nice if the code-runner could use the interpreter which comes from the integrated terminal or at least we can configure it :) Thanks.
There would be two options:
"code-runner.runInTerminal": true in the user settings, so that the js file will run in integrated terminal"code-runner.executorMap": {
"javascript": "nvm use 6 && node"
}
the first one works like a charm while the second not, thanks!
Most helpful comment
There would be two options:
"code-runner.runInTerminal": truein the user settings, so that the js file will run in integrated terminal