title: typescript promise rejecting and vscode debugger behavior
body: <p>I'm trying to learn promises, with typescript, and i have some problems, understanding what causes such vscode debugging behavior.</p>
  
  <p>Here is an examples:</p>
  
  <pre><code>// example 1
  new Promise((resolve, reject) =&gt; {
      reject("test1"); // debugger stops as on uncaught exception
  })
  .catch(
      error =&gt; {
          console.log(error);
      }
  );
  // output: "test1"
  </code></pre>
  
  <p>,and:</p>
  
  <pre><code>//example 2
  new Promise((resolve, reject) =&gt; {
      setTimeout(() =&gt; {
          reject("test2"); // debugger never stops
      });
  })
  .catch(
      error =&gt; {
          console.log(error);
      }
  );
  // output: "test2"
  </code></pre>
  
  <p>As you can see in one case debugger stops at promise reject, but in other case, not. But in all cases error is catched, and no unhandled exceptions.</p>
  
  <p>Is it vscode specific behavior or maybe es6-promise binding that i use? Or i'm doing it incorrect way? Has anyone faced same problem? </p>