How to add auto completion list in monaco
<p>I am using Monaco Editor in my electron application. I want to add auto completion list instead of overriding it. Before adding auto complete list:</p>

<p><a href="https://i.stack.imgur.com/8MTjq.png" rel="noreferrer"><img src="https://i.stack.imgur.com/8MTjq.png" alt="enter image description here"></a></p>

<p>After adding auto complete list only added keyword are in the list. but also want words from document:</p>

<p><a href="https://i.stack.imgur.com/jVsty.png" rel="noreferrer"><img src="https://i.stack.imgur.com/jVsty.png" alt=""></a></p>

<p><em>this image is from monaco playground but i also experiencing same behavior</em></p>

<p>I am using the following code:</p>

<pre><code>monaco.languages.registerCompletionItemProvider('mylang', {
   provideCompletionItems: () =&gt; {
      return [
        // keywords detail
      ]
   }
})
</code></pre>