JSDoc comment template incorrectly returned for element that already has JSDoc comment #47733
Labels
Bug
A bug in TypeScript
Domain: Completion Lists
The issue relates to showing completion lists in an editor
Domain: JSDoc
Relates to JSDoc parsing and type generation
Help Wanted
You can do this
Milestone
TS Template added by @mjbvz
TypeScript Version: 4.6.0-dev.20220203
Search Terms
Does this issue occur when all extensions are disabled?: Yes
1.63.2
as well as1.64.0-insider
Steps to Reproduce:
For a demo of the issue, visit https://vscode.dev/github/jespertheend/vscode-jsdoc-autocomplete-bug and open
jsdoc.js
Expected: No
@param
autocompleteActual: It completes with
@param
and@return
inside the comment.I'd expect comments to only autocomplete like this if a function is directly below it. Though I suppose autocomplete could be useful for overloading functions, this is not supported in TypeScript right now (see #25590).
The text was updated successfully, but these errors were encountered: