I have two problems while using SQL Hint completion:
-
I want to automatically select the last remaining completion item so I used completeSingle: true in my hintOptions object that I pass to editor.setOption(“hintOptions”,hintOptions);
But it doesn’t seem to work. I still have to type the complete word. -
I want to always show the dropdown while typing so I used this:
editor.on('keypress', function(cm,e){ editor.showHint(editor.hintOptions); });
Strange thing is completeSingle now works but the last character I was typing is added after completion. So I have typed cou, now the last item COUNT in the dropdown remains. When I now type n this item automatically gets choosen (like I wanted/expected since I have set completeSingle option) but the n is added after COUNT like this: COUNTn.
What am I doing wrong? Or is this a bug?