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
Visual Studio Code intellisense on React component using typescript with union types #27211
Expected behavior:
When rendering MyComponent if i set then i should get an autocomplete option for 'myProp'.
Actual behavior:
no intellisense shown for 'myProp'. If i don't give a value for 'myProp' the compiler does error, but no intellisense autocomplete option is ever shown.
Related Issues:
i posted the issue generally on stackoverflow and a response was that it may be worth logging here and it may be related to bug: TypeScript issue #26004
Activity
RyanCavanaugh commentedon Oct 1, 2018
Need to copy over/generalize the logic for completions of discriminated unions to the JSX props logic
weswigham commentedon Oct 1, 2018
#27408 maybe? Unless we also do something in services?
RyanCavanaugh commentedon Dec 3, 2025
Closing language service bugs related to the 6.0 implementation. For more information, see #62827