Microsoft/TypeScript

JS/TS Better inlay hint positioning in multiline rest parameters

Open

#48,377 opened on Mar 22, 2022

View on GitHub
 (5 comments) (0 reactions) (0 assignees)TypeScript (6,726 forks)batch import
Domain: LS: Inlay HintsEffort: CasualExperimentation NeededHelp Wanted

Repository metrics

Stars
 (48,455 stars)
PR merge metrics
 (Avg merge 6d 17h) (9 merged PRs in 30d)

Description

The inlay hint positioning in multiline rest parameters is odd.

Considering this function

const setTags = (...tags) => { /* ... */ }

How the hint is positioned: image

What I expected it to be: image

Contributor guide