-
-
Notifications
You must be signed in to change notification settings - Fork 5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Show-hint.js generates completion on each key typed #1852
Comments
What do you mean by "generates completion too often"? The fact that the completion popup is now hidden during typing, and only re-shown when the user stops typing for a moment, is intentional. |
I mean that when popup is shown, completion generated once, and each time it shows it call generation again. Maybe there is a way to change that delay? Because when I type it blinks all time. |
I don't really see the problem. It has to refresh as you type. Why is it bad that it blinks? |
I don't like it, and I need to get completion list from Haxe completion(Just list of completion in XML format) only once. Even if I use some completion like anyword-completion - it will generate completion list every time I type something - that is the waste of CPU resources - I could use it in another way. But maybe for such things CPU impact is very small, I haven't tested performance. About blinking - I just don't like it, you know any blinks kinda distracts me, I want to see it smooth. Most IDEs show it without blinking. I don't know why, but this thing annoys me pretty well. Anyway - I included show-hint.js from old version of CodeMirror to index.html page, instead of using latest show-hint.js. |
@marijnh I tried latest CodeMirror on it's website, it seems like completion is not blinking anymore, right? It's great! It's great so I can finally use latest show-hint. |
I tried to make demo, based on this:
http://ternjs.net/doc/demo.html
But with latest CodeMirror(3.18) show-hint.js generates completion too often, it does it on each key typed(it hides completion dialog and shows on each key typed, which causes blinkage). Seems like you have old CodeMirror on Tern website. Which works fine.
Diffs:
old show-hint.js
new show-hint.js(CodeMirror 3.18):
Old version works fine.
The text was updated successfully, but these errors were encountered: