Skip to content

VSCode ignores JSDoc's @property when specify @typedef type in 1.43.2 and 1.44.0-insider #37714

@jeffryang24

Description

@jeffryang24

Seems like VSCode ignores @property when specify type inside @typedef in 1.43.2 and 1.44.0-insider. It cause type hint to show not so correct type information and also not detected inside autocomplete/intellisense.

  • VSCode Version: 1.43.2 and 1.44.0-insider
  • OS Version: Ubuntu 18.04 x86_64

Steps to Reproduce:

  1. Create JSDoc type definition file, for example types.js.
  2. Import the type into form.js.
  3. Ensure the type hint for the specified JSDoc is working properly (no any) and the type is detected available inside autocomplete/intellisense.

Temporary Solution:

  • Remove type from @typedef, such us from @typedef {Object<string, any>} Person into @typedef Person.
  • Or, remove <string, any> from Object, such us @typedef {Object<string, any>} Person into @typedef {Object} Person.

Reproduce Repo: https://github.com/jeffryang24/sandbox/tree/master/javascript/vscode-jsdoc-type-hint-issue

Does this issue occur when all extensions are disabled?: Yes/No

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs InvestigationThis issue needs a team member to investigate its status.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions