Skip to content

JSDoc parser fails mixing @typedef and Object.<keyType, valueType> #38642

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
motla opened this issue May 18, 2020 · 1 comment
Closed

JSDoc parser fails mixing @typedef and Object.<keyType, valueType> #38642

motla opened this issue May 18, 2020 · 1 comment
Assignees
Labels
Needs Investigation This issue needs a team member to investigate its status.

Comments

@motla
Copy link

motla commented May 18, 2020

Issue Type: Bug

In the example below, hovering arg1 or arg2 works but hovering arg3 fails although it should be the same result as arg2:

image

Here is the code:

/**
 * @typedef {string} uuid
 */

/**
 * @param {uuid} arg1 My argument 1
 * @param {Object.<string, Uint8Array>} arg2 My argument 2
 * @param {Object.<uuid, Uint8Array>} arg3 My argument 3
 */
function foo(arg1, arg2, arg3) {}

VS Code version: Code 1.45.1 (5763d909d5f12fe19f215cbfdd29a91c0fa9208a, 2020-05-14T08:33:47.663Z)
OS version: Darwin x64 18.7.0

System Info
Item Value
CPUs Intel(R) Core(TM) i7-3520M CPU @ 2.90GHz (4 x 2900)
GPU Status 2d_canvas: enabled
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
protected_video_decode: unavailable_off
rasterization: enabled
skia_renderer: disabled_off_ok
video_decode: enabled
viz_display_compositor: enabled_on
viz_hit_test_surface_layer: disabled_off_ok
webgl: enabled
webgl2: enabled
Load (avg) 4, 3, 3
Memory (System) 16.00GB (3.68GB free)
Process Argv
Screen Reader no
VM 0%
Extensions (19)
Extension Author (truncated) Version
auto-close-tag for 0.5.7
todo-tree Gru 0.0.175
beautify Hoo 1.5.0
cpptools ms- 0.28.0
debugger-for-chrome msj 4.12.6
vetur oct 0.24.0
java red 0.61.0
shader sle 1.1.4
vscode-taskexplorer spm 1.26.3
code-spell-checker str 1.8.0
vscode-counter uct 1.3.5
vscodeintellicode Vis 1.2.7
vscode-java-debug vsc 0.26.0
vscode-java-dependency vsc 0.10.1
vscode-java-pack vsc 0.9.1
vscode-java-test vsc 0.22.4
vscode-maven vsc 0.21.4
debug web 0.24.0
clang-format xav 1.9.0

(1 theme extensions excluded)

@mjbvz mjbvz transferred this issue from microsoft/vscode May 18, 2020
@mjbvz mjbvz removed their assignment May 18, 2020
@RyanCavanaugh RyanCavanaugh added the Needs Investigation This issue needs a team member to investigate its status. label Jun 8, 2020
@RyanCavanaugh RyanCavanaugh added this to the TypeScript 4.0 milestone Jun 8, 2020
@sandersn
Copy link
Member

This is the JSDoc manifestation of #1778. I'm closing this one as a duplicate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Investigation This issue needs a team member to investigate its status.
Projects
None yet
Development

No branches or pull requests

4 participants