Skip to content

JSDoc @type for list of declarations #28724

Open
@roncli

Description

@roncli

Issue Type: Bug

When using the @type JSDoc for an empty array when declaring multiple variables, only the first declaration is recognized by intellisense. It is overridden by what is actually in the array.

It's possible I'm not documenting this correctly, so if that's the case please correct me.

Example of it working for the first declaration:

image

Example of it failing for other declarations:

image

image

VS Code version: Code 1.29.1 (bc24f98b5f70467bc689abf41cc5550ca637088e, 2018-11-15T19:13:36.375Z)
OS version: Windows_NT x64 10.0.18272

System Info
Item Value
CPUs Intel(R) Core(TM) i7-3930K CPU @ 3.20GHz (12 x 4044)
GPU Status 2d_canvas: enabled
checker_imaging: disabled_off
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: disabled_software
rasterization: enabled
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
Memory (System) 15.94GB (4.89GB free)
Process Argv
Screen Reader yes
VM 0%
Extensions (9)
Extension Author (truncated) Version
vscode-css-formatter aes 1.0.1
vscode-eslint dba 1.7.0
vscode-npm-script eg2 0.3.5
asciidecorator hel 0.2.0
vscode-auto-open-markdown-preview hnw 0.0.4
classic-asp ili 0.0.4
mssql ms- 1.4.0
python ms- 2018.10.1
cpptools ms- 0.20.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptDomain: JavaScriptThe issue relates to JavaScript specifically

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions