Skip to content

Autocomplete not working for @property typesΒ #46606

@jespertheend

Description

@jespertheend

Bug Report

πŸ”Ž Search Terms

autocomplete typedef

πŸ•— 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 {Object} MyObject
 * @property {} <-- place your cursor in between the brackets and press ctrl + space, it doesn't work
 */

/** @type {} */ // <-- it works fine here
const x = null;

πŸ™ Actual behavior

Autocomplete only list words from the file, no types.

This is also doesn't work when importing something, i.e.:

/**
 * @typedef {Object} MyObject
 * @property {import("./someFile.js"). <-- no autocomplete
 */

πŸ™‚ Expected behavior

Autocomplete shows a list of useful types just like what happens for @type

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptDomain: Completion ListsThe issue relates to showing completion lists in an editorEffort: CasualGood issue if you're already used to contributing to the codebase. Harder than "good first issue".Help WantedYou can do this

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions