Visual Studio code and virtualenv
<p>I am trying to use Visual Studio Code with virtual environment.  In the Launch JSON I specify the nosetests launch like this:</p>

<pre><code>{
    "name": "nosetests",
    "type": "python",
    "request": "launch",
    "stopOnEntry": true,
    "program": "${workspaceRoot}/env/dev/bin/nosetests",
    "args": [
        "--nocapture",
        "tests"
    ],
    "externalConsole": false,
    "debugOptions": [
        "WaitOnAbnormalExit",
        "WaitOnNormalExit"
    ]
},
</code></pre>

<p>However when I launch the environment variables do not get picked up.  I've tried setting up the python path in workspace settings:</p>

<pre><code>"python.pythonPath": "${workspaceRoot}/env/dev/bin/python"
</code></pre>

<p>but it doesn't seem to set the right environment.  There needs to be something that' the equivalent of source activate.  Has anyone figured it out?</p>