ternjs / tern_for_sublime

Sublime Text package adding Tern support
MIT License
803 stars 54 forks source link

How to force a plugin to retrieve a given's API textual documentation and signature from the Tern server. #48

Closed bvahdat closed 9 years ago

bvahdat commented 9 years ago

I had no luck to find this through the documentation itself, so wonder how I can set up a given plugin, let's angularjs to retrieve a given API documentation. E.g. compare the nice Array.push() textual documentation below from the demo:

screen shot 2014-10-26 at 11 33 23

with the empty $scope.$broadcast() one inside my editor. screen shot 2014-10-26 at 11 36 26

Also the same question about the libs entries inside .tern-project like ecma5 or browser.

And is it possible to see the signature as well? Something like Array.push(element1, ..., elementN)?

Thanks!

danihodovic commented 9 years ago

Are you trying to implement this in Sublime text? If so, where would you place the text?

bvahdat commented 9 years ago

No I just want to use that functionality if it's already given. Assuming the available implementation of this will take care of increasing the white rectangle size in ST3 so that there's enough space out there for the text :-)

danihodovic commented 9 years ago

Don't think that's possible. I'm not an expert but I haven't seen a plugin to date that bypasses that limitation.

marijnh commented 9 years ago

Sublime text doesn't allow us to show tooltips next to completions, so indeed, this isn't possible to sanely implement.

bvahdat commented 9 years ago

Thanks!

My current workaround is Dash plugin for ST.