noseglid / autocomplete-java-minus

:coffee: Autocomplete for Java that only autocomplete.
https://atom.io/packages/autocomplete-java-minus
MIT License
9 stars 3 forks source link

Fixes #5: Checking for application focus before tokenizing editor #6

Closed jfs closed 8 years ago

jfs commented 8 years ago

This should address issue #5. There is a 300ms delay before onDidStopChanging is called. In this time it is possible for the application to lose focus. This causes the package to throw an Uncaught TypeError. Worse it puts the package into a state where awaitingTokens get's stuck at true and the editor will not be tokenized until restart.

jfs commented 8 years ago

@noseglid Is there an issue with this fix or have you just not had a chance to check it yet?

noseglid commented 8 years ago

I have not had time yet. I will look at this as soon as possible.

noseglid commented 8 years ago

Thank you for your patience. I have been quite busy lately. I have merged this and made a new release. Thank you for the contribution!

jfs commented 8 years ago

No problem. Glad to help.