You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Incorrect parameter hint is highlighted when arguments contain spread syntax #48260
functionmyFn(a1: number,a2: number,a3: number){}constfirstTwoArgs=[1,2]asconst;// Put your caret here and press ctrl/cmd + shift + space// ||// \/myFn(...firstTwoArgs,);
🙁 Actual behavior
a2 is highlighted:
🙂 Expected behavior
a3 is highlighted
Related issues
This is not to be confused with #47327, which is about inlay hints rather than parameter hints. Though possibly the same fix might apply here as well.
Activity