ternjs / tern_for_sublime

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

JSDoc: hide @param and @return tags in description #76

Closed denis-sokolov closed 9 years ago

denis-sokolov commented 9 years ago

When showing a description for the function, Tern shows unexpectedly much. I can see the @param and @return tags in the types of the appropriate arguments, and the resulting popup is quite messy due to their inclusion. Would it be possible to simplify it?

Observed behavior: 1

Expected behavior: 2

Thank you! (Also see the discussion in tern.js server issue, yes, I realize the main author is the same :)).

marijnh commented 9 years ago

Attached patch should move the default behavior back to (something very close to) the old behavior. Does this solve your problem?

denis-sokolov commented 9 years ago

Yes, this works great. Thank you!

max-mykhailenko commented 9 years ago

@denis-sokolov please show your .tern-project, I have unexpected freezing with my config https://github.com/marijnh/tern_for_sublime/issues/37

denis-sokolov commented 9 years ago

I'm sorry, what does that have to do with the issue?

max-mykhailenko commented 9 years ago

@denis-sokolov problem appear only when I add loadEagerly section to my config.

"loadEagerly" : [
    "**/*.js",
    "**/*.jsx"
  ],

Seems it's jsx fault.

But without jsx I also didn't have so detailed tooltip.