Skip to content
This repository has been archived by the owner on Apr 30, 2021. It is now read-only.

[JS Param Annotations] Invalid parameter #81

Open
JustFly1984 opened this issue Dec 24, 2019 · 1 comment
Open

[JS Param Annotations] Invalid parameter #81

JustFly1984 opened this issue Dec 24, 2019 · 1 comment

Comments

@JustFly1984
Copy link

JustFly1984 commented Dec 24, 2019

VS Code Version: Version: 1.41.0
Extension Version: 0.11.0

What's the issue:

I see an error [JS Param Annotations] Invalid parameter for second parameter, which is optional, and has default value.

function findRoutes (html, auth = false) { ... }

findRoutes(html, true)

error is highlighted for true

Screenshot 2019-12-24 16 55 53

if I omit passing argument or remove default value - highlight error disappear.

I still need to use default value. Please fix.

Thank you for your plugin!

@jeremy-w
Copy link

jeremy-w commented Jan 1, 2020

duplicates #66

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants