lannonbr / vscode-js-annotations

Javascript / Typescript Parameter Annotations for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=lannonbr.vscode-js-annotations
MIT License
106 stars 16 forks source link

Default Parameters #66

Open MartinGao opened 5 years ago

MartinGao commented 5 years ago

VS Code Version: 1.30.2 (1.30.2) Extension Version: 0.10.0

What's the issue:

In the function declaration, if there was no default parameter, this extension works perfectly!

screen shot 2019-02-28 at 1 58 25 pm

screen shot 2019-02-28 at 1 58 29 pm

However, if there was a default parameter (like "shouldThrowError"), this extension stops at that parameter and shows no annotation.

screen shot 2019-02-28 at 1 58 16 pm

screen shot 2019-02-28 at 1 58 07 pm

senpl commented 5 years ago

Until it is resolved using Hide Diagnostics option should be turn on to not signal valid parameters.

jalleyne commented 5 years ago

+1 for fixing this, running into the same problem.

JustFly1984 commented 4 years ago

+1

alikadir commented 4 years ago

+1