Skip to content

TS Refactoring to Infer type inserts ellipses, creating syntax error #40756

@tehpsalmist

Description

@tehpsalmist

TS Template added by @mjbvz

TypeScript Version: 4.1.0-dev.20200924

Search Terms

  • code action
  • quick fix

Version: 1.48.2
Commit: a0479759d6e9ea56afa657e454193f72aef85bd0
Date: 2020-08-25T10:09:08.021Z
Electron: 7.3.2
Chrome: 78.0.3904.130
Node.js: 12.8.1
V8: 7.8.279.23-electron.0
OS: Darwin x64 19.6.0

Steps to Reproduce:

  1. have a sufficiently complex function argument (based on usage) in your TS file
  2. Click on the TS Refactoring lightbulb and select "infer parameter types from usage"
  3. Observe that nested objects of sufficient complexity may be replaced with ellipses, which is a syntax error.

Screen Shot 2020-09-23 at 20 38 18

Does this issue occur when all extensions are disabled?: Yes

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptDomain: LS: Refactoringse.g. extract to constant or function, rename symbol

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions