ternjs / tern_for_sublime

Sublime Text package adding Tern support
MIT License
801 stars 52 forks source link

how to set preview parameters directly not (fn/1,2,3,...) #148

Closed easyfrog closed 8 years ago

easyfrog commented 8 years ago

If this can directly preview parameters will more friendly then (fn/1,2,3,...).

like this one: 557ea7de-c8e6-11e5-8019-aebe937aad18

marijnh commented 8 years ago

Where does it say fn/1,2,3, and what do you mean by directly previewing parameters?

easyfrog commented 8 years ago

ternjs Well, I have to modify the 'tern.py' file by myself, if it is a Function, it can directly preview some of its parameters now, rather than (fn/1) (fn/2)... And align the type to the right will looks more comfortable.

here is the tern.py I modified: tern.py.zip

easyfrog commented 8 years ago

Now I append the function's return type directly to sublime completion list. ternjs2

ternjs4

here is the tern.py I modified: tern.py.zip

marijnh commented 8 years ago

If you want to submit code, please use a github pull request, not zip files.

marijnh commented 8 years ago

See #152