tststs / atom-ternjs

JavaScript code intelligence for atom with tern.js and autocomplete-plus
MIT License
628 stars 76 forks source link

Incomplete display of documentation #381

Open JakobJingleheimer opened 4 years ago

JakobJingleheimer commented 4 years ago

Quite possibly user-error here, but it seems like this should JustWork™️. I'm trying to get Atom to display a tooltip with the jsDoc for my code, but tern seems to be ignoring much of the documentation:

atom-ternjs-tooltip-incomplete

Its declaration is:

/**
 * Track a particular attribute.
 */
class Counter {

    /**
     * Create a Counter
     * @param      {Object}         [arg1={}]      The argument 1
     * @param      {integer}        arg1.base      The max (for "up" type) or starting (for "down"
     * type) for the Counter.
     * @param      {string}         arg1.label     Human-friendly label for the Counter.
     * @param      {eRestTypes}     arg1.restType  The type of rest for which the Counter should
     * reset itself; if no value is supplied, the Counter will not reset itself on any rest (manual
     * reset only).
     * @param      {Counter.TYPES}  arg1.type      The type of counter (count down, up, etc)
     */
    constructor({ base, label, restType, type } = {}) {