microsoft / microsoft/TypeScript

Unexpected (unhelpful) autocomplete suggestions inside function call when spreading an array

Open
#28,765 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Domain: LS: Completion Lists In Discussion Suggestion
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
unbenannt

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
unbenannt

Playground Link: nope

Related Issues: nope

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.