Skip to content

No autocompletion in parameter object destructuring in JavaScript files #48743

Closed
@jespertheend

Description

@jespertheend

Not sure if this is a bug or a feature request, but it's not an issue in .ts files so I filed it as a bug for now.

Bug Report

🔎 Search Terms

jsdoc autocomplete function parameter

🕗 Version & Regression Information

  • This is the behavior in every version I tried, and I reviewed the FAQ for entries about autocomplete

⏯ Playground Link

Playground link with relevant code

💻 Code

/**
 * @typedef OptionsObject
 * @property {number} opt1
 * @property {string} opt2
 */

/**
 * @param {OptionsObject} options
 */
function takeOptions({ }) {
//                    ^
// Place your caret here and press ctrl + space
}

🙁 Actual behavior

No autocompletion

🙂 Expected behavior

A list of autocompletions showing opt1 and opt2, with TypeScript syntax this works fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions