<ul dir="auto">
<li>VSCode Version: 1.1.0-alpha</li>
<li>OS Version: Windows10</li>
</ul>
<p dir="auto">Steps to Reproduce:</p>
<ol dir="auto">
<li>Launch an app.</li>
<li>Follow the instructions to create and debug extension.<br>
<a href="https://code.visualstudio.com/docs/extensions/example-word-count" rel="nofollow">https://code.visualstudio.com/docs/extensions/example-word-count</a>
<ol dir="auto">
<li>Start debugging with F5 and verify new instance of VSCode launched or not.</li>
<li>From the main window (where debug options are available) perform search from action-bar and click on close debug button from debug-actions widget.</li>
</ol>
</li>
</ol>
<p dir="auto"><strong>Actual</strong>: When user terminate the debug session after search operation then child window (Extension-development-host) is not closing.</p>
<p dir="auto"><strong>Expected</strong>: Whenever user close the debug session then all the child processes and threads associated with that should be terminated.<br>
I tried to perform below operations without search action and Child process is terminating properly.</p>
<ol dir="auto">
<li>Close debug session from main process and verify app behavior (new instance of VSCode closed when ending debug session).</li>
<li>Try to perform in either way, Close newly launched VSCode instance and verify app behavior (Debug session terminated)</li>
</ol>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/17735796/15341272/8d28186e-1c42-11e6-8d96-1620819d4fc1.gif"><img src="https://cloud.githubusercontent.com/assets/17735796/15341272/8d28186e-1c42-11e6-8d96-1620819d4fc1.gif" alt="extensiondev-hostclosingissue" data-animated-image="" style="max-width: 100%;"></a></p>
<ul dir="auto">
<li>VSCode Version: 1.3.0 insiders</li>
<li>OS Version: Windows 10</li>
</ul>
<p dir="auto">Steps to Reproduce:</p>
<ol dir="auto">
<li>run mock-debug as an extension</li>
<li>terminate debug session</li>
</ol>
<p dir="auto">Observe: extension host window doesn't always disappear</p>