Skip to content

One duplicate error message for each jsdoc comment #43779

@awerlogus

Description

@awerlogus

Bug Report

🔎 Search Terms error duplicate message js

🕗 Version & Regression Information 4.3.0-dev.20210422

💻 Code


OK:

// Unfinished expression
const a = b =>

изображение


Add jsdoc comment above const a

/** @typedef {number} A */

const a = b =>

and see that the error is duplicated

изображение


Two more comments below const a

/** @typedef {number} A */

const a = b =>

/** @typedef {number} B */
/** @typedef {number} C */

and see two more error duplicates

изображение


Add some declaration between const a and jsdoc comments

/** @typedef {number} A */

const a = b =>

const c = 10

/** @typedef {number} B */
/** @typedef {number} C */

and see that each of two errors are duplicated

изображение


🙁 Actual behavior

Error duplicates

🙂 Expected behavior

No error duplicates

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptDomain: JSDocRelates to JSDoc parsing and type generation

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions