microsoft / microsoft/TypeScript
No completions in `@param` tag missing parameter name
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 111k
- Forks
- 14.3k
- Avg merge
- 2d 4h
- Merged PRs (30d)
- 132
Description
You can probably whittle this down to a 2 file repro, but just install @azure/functions in a plain .js file and try to write the following code:
// @ts-check
/**
* @param {import("@azure/functions").$}
*/
module.exports = async function (context, req, connectionInfo) {
context.res.json(connectionInfo);
};
Remove the $, place your cursor there, and request completions.
Expected: Completions
Actual No completions, maybe because the parse isn't failing gracefully.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue in a plain .js file with @azure/functions installed, using the @ts-check and @param example from the report. Place the cursor where the parameter name is missing and request completions; done means completions appear instead of the parser failing without results.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure, javascript, typescript
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 35/100