microsoft / TypeScript

TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
https://www.typescriptlang.org
Apache License 2.0
100.91k stars 12.47k forks source link

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

Open AlCalzone opened 5 years ago

AlCalzone commented 5 years ago

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

weswigham commented 5 years ago

Like I've offhandedly mentioned before - we should consider autocompleteting ..., rather than interpreting . as a leading dot from a malformed decimal number and giving completions for that.