mortalapeman / LT-TernJS

A TernJS plugin for Light Table
Other
32 stars 4 forks source link

Allow other plugins to append to list of hints / append tern hints to any existing hints ? #15

Closed rundis closed 10 years ago

rundis commented 10 years ago

Hi !

I've failed to get my lt-snippets hints to play nicely with hints from this plugin. Basically I'm trying to append hints from my plugin to whatever else there might be of hints from other plugins. It's entirely possible its all my fault, but it does work for other plugins (clojure, the core javascript plugin to name a few).

Could the reason be that this behaviors return hints isn't actually appended to the hints input parameter ? Similar to this

mortalapeman commented 10 years ago

Ya, I did that because trying to run autocomplete on an expression like $. would return junk results along with the tern hints because of local text hints. That being said, this is an important issue that I had not considered. I should be able to fix the problem by only filtering out other hints when the current token is a .. I should have a fix for this soon.

mortalapeman commented 10 years ago

Should be fixed in 0.1.7. Let me know if it isn't working as expected.