title: monaco-editor typescript not providing suggestions
body: <p>In monaco-editor if you try to use a union type as a parameter of a function it does not provide you any suggestions. Doing the same in vscode provides you with the suggestions. Is there something I need to enable in monaco to get the same functionality?</p>
  <p>It does provide the correct checking and errors, however the suggestions seem to be missing.</p>
  <p>Does anyone have any suggestions? Or is this not supported in monaco-editor?</p>
  <p>Examples below:</p>
  <pre class="lang-js prettyprint-override"><code>type Test = {
      choice1: &quot;A&quot; | &quot;B&quot; | &quot;C&quot;;
      choice2: &quot;X&quot; | &quot;Y&quot; | &quot;Z&quot;;
  }
  
  function test&lt;T extends keyof Test&gt;(t: T, s: Test[T]) {
  
  }
  
  test(&quot;choice1&quot;, &quot;&quot;)
  </code></pre>
  <p>vscode:</p>
  <p><img src="https://i.stack.imgur.com/3xnWL.png" alt="In VSCode" /></p>
  <p>monaco-editor:</p>
  <p><img src="https://i.stack.imgur.com/aye3T.png" alt="In Monaco" /></p>
  <p>I've also tried with a simple union type and the same
  <a href="https://i.stack.imgur.com/JQWFl.png" rel="nofollow noreferrer">Simple in Monaco</a></p>
  <pre class="lang-js prettyprint-override"><code>type Test2 = &quot;something&quot; | &quot;somethingelse&quot;
  
  function test2(t: Test2) {
  
  }
  
  test2(&quot;&quot;)
  </code></pre>