Skip to content

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

@mjbvz

Description

@mjbvz

From @austin-rausch on June 19, 2018 0:13

  • 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

Copied from original issue: microsoft/vscode#52242

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptDomain: JSDocRelates to JSDoc parsing and type generationFixedA PR has been merged for this issueVS Code TrackedThere is a VS Code equivalent to this issue

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions