microsoft / microsoft/TypeScript
Unexpected (unhelpful) autocomplete suggestions inside function call when spreading an array
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 111k
- Forks
- 14.3k
- Avg merge
- 2d 4h
- Merged PRs (30d)
- 132
Description
TypeScript Version: 3.2.1
Search Terms: spread autocomplete
Code
I'm not 100% sure what causes this, but its reproducible in this project even after closing VSCode.
I don't think it has to do with the error below, as that vanishes when I delete the line:
https://github.com/AlCalzone/create-adapter/blob/65e5f59ce824a9f405c441091d3d7fad13ee70b5/src/lib/questions.ts#L104
Expected behavior:
No autocomplete
Actual behavior:
This super unhelpful autocomplete
Playground Link: nope
Related Issues: nope
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
Start by reproducing the autocomplete behavior with TypeScript 3.2.1 or typescript@next, using the example project and src/lib/questions.ts line 104 mentioned in the report. Compare suggestions inside the function call with the expected absence of autocomplete; done means the unhelpful suggestions no longer appear.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100