Skip to content

Inlay Hint for TypeScript broken for spread operation #47327

Closed
@justinfernald

Description

@justinfernald

TS Template added by @mjbvz

TypeScript Version: 4.5.4

Search Terms

  • inlay hints
  • provideInlayHints

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

  • VS Code Version: 1.63.2
  • OS Version: Windows_NT x64 10.0.22000

Steps to Reproduce:

  1. build function that takes in multiple parameters (3 minimum to view issue)
  2. call function with spread tuple (2 elements minimum) first, then fill in remaining arguments.
  3. it will then be offset since the spread tuple will only count as a single argument

image
image

Notice that in the screenshot the x and y arguments should be in both be handled from the spread, however, the spread is just the x argument.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions