Killing an (integrated) terminal doesn't terminate the processes started therein (OSX)

Environment data

  • VS Code version: 1.25.1
  • Extension version (available under the Extensions sidebar): 2018.7.0
  • OS and version: OSX 10.13.6
  • Python version (& distribution if applicable, e.g. Anaconda): 3.7.0
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): N/A
  • Relevant/affected Python packages and their versions: N/A

Actual behavior

Killing a terminal from the VSCODE ui lets scripts executed therein running in the background

Expected behavior

Processes created within the (terminated) integrated terminal should be terminated.

Steps to reproduce

  1. write a python script with an infinite loop
  2. execute the script with "Run Python File in Terminal"
  3. In the vscode UI, press "Kill Terminal" to close the terminal window
  4. the python script keeps running in the background
  5. (laptop fan starts spinning mercilessly)
  6. (access OSX activity monitor to terminate python process manually)