I have uploaded my code at https://github.com/Hfutsora/monaco-kaco.
Steps to reproduce:
- Open github page https://hfutsora.github.io/monaco-kaco/
- Enter char 'O' at the endline then you can get suggestion

- Enter char 'O' before the endline there are no suggestions appeared

I think the problem is that VS Code filters out your candidates because it gets the wrong
already typedcharacters. In my completion providers I use a different method:which finds the word before the current caret position.