Skip to content

JSDoc Comment Template not provided when unrelated JSDoc with tag exists #52517

Closed
@DanielRosenwasser

Description

@DanielRosenwasser

JSDoc comment templates don't work if you have a preceding JSDoc comment declared using a @typedef or an @overload tag.

/** @typedef {string} Id */

/**$ */
function foo(x, y, z) {
}

Request docCommentTemplate.

The following is expected:

/** @typedef {string} Id */

/**
 * 
 * @param x 
 * @param y 
 * @param z 
 */
function foo(x, y, z) {
}

But instead we get:

/** @typedef {string} Id */

/**
 * 
 */
function foo(x, y, z) {
}

Originally posted by @DanielRosenwasser in #52370 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions