Skip to content

Incorrect Error Message reported in JS file #15663

Closed
@mjbvz

Description

@mjbvz

From @iMasoud on May 8, 2017 9:32

  • VSCode Version: 1.12.1
  • OS Version: Debian Stretch

Steps to Reproduce:

  1. Make an Empty Folder and Open it in VSCode
  2. Run npm install safejson in the same directory
  3. Add jsdoc.js File to project, open it in VSCode
  4. Paste contents of attached text file in it
    jsdoc.txt

I honestly don't know if this is a problem with VSCode or JSDoc or Mentioned Module, but I do care about VSCode, so I'm reporting this.

Here is the Result:
jsdoc

As you can see VSCode shows this error as a problem in my code:
Supplied parameters do not match any signature of call target.
I was following module guide (and the code was running well) so I took a look at the module code. Following is the method that I was calling from that module:
safejson
(Whole file is available in here: https://github.com/evanshortiss/safejson/blob/848fcc7d8273f99fa783d2f27e2f57d2cc581a7c/src/index.js)

As you can see JSDoc documents/comments in module look fine. So, as I said before, I'm not really sure if this is a problem with VSCode. I'll be glad to read your opinions about this.

Regards

Copied from original issue: microsoft/vscode#26196

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptFixedA PR has been merged for this issueVS Code TrackedThere is a VS Code equivalent to this issue

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions