ternjs / tern

A JavaScript code analyzer for deep, cross-editor language support
https://ternjs.net/
MIT License
4.25k stars 378 forks source link

Tern fails to retrieve the type of Array.prototype.[function] #1006

Closed resolritter closed 5 years ago

resolritter commented 5 years ago

I'm sending the event from within a custom node application, but tern_for_vim behaves the same way. For instance

Array.prototype.reduce()
                      ^ - cursor

tern_for_vim would ask for types at column 0 here. My pattern would send a request for position 16 (.reduce). Both do not work and return a single ?.

Am I missing some parameter into the request? I've tried