google / tern-closure

A Tern plugin adding Closure support.
Apache License 2.0
33 stars 18 forks source link

Support autocompletion of names in comments #27

Closed jgiles closed 10 years ago

jgiles commented 10 years ago

Given the number of times fully-qualified names are typically typed in JSDoc tags, it would be helpful if we could provide completions within comments.

This does not work currently, because Tern does not process the contents of comments. However, we can use Tern's completion hooks to provide our own completions (for names that we already know about for other reasons). See https://github.com/marijnh/tern/commit/31f92823d1680f5233f2309c3658233eee832b96, and the similar issue for completions in goog.require #3.