Skip to content

JSDoc @property, first {object}, rest of properties become sub properties #52242

@austin-rausch

Description

@austin-rausch
  • VSCode Version: 1.24.1 AND 1.25.0 (nightly build)
  • OS Version: Ubuntu 16.04

Steps to Reproduce:

  1. Create a .js file
  2. Post the following code into the file and save
/**
  * @typedef {object} typeTest
  * 
  * @property {string} second - second property
  * @property {object} first - first property
  * @property {string} first.one - first's one property
  * @property {object} third - third property
  */

/**
 * @type typeTest
 */
const test;

  1. third property becomes a property of first instead of a property of typeTest
    Screen shot:
    image

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

Metadata

Metadata

Assignees

Labels

typescriptTypescript support issuesupstreamIssue identified as 'upstream' component related (exists outside of VS Code)

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions