The related TypeScript issue (https://github.com/microsoft/TypeScript/issues/58908) indicates that this TypeScript behavior might not be fixed in a short time on TypeScriript's side. So this PR means to solve this on Volar's side.
However, because I am new to Volar, I can't figure out how to make this work correctly. The generated virtual code is OK now, but the hint for #a-b still doesn't show (If a-b is not a defined slot). This is quite strange.
WIP. Want to fix #3819.
The related TypeScript issue (https://github.com/microsoft/TypeScript/issues/58908) indicates that this TypeScript behavior might not be fixed in a short time on TypeScriript's side. So this PR means to solve this on Volar's side.
Previously, the virtual code for
was
Now, is should be
The information should be provided by
T1
.However, because I am new to Volar, I can't figure out how to make this work correctly. The generated virtual code is OK now, but the hint for
#a-b
still doesn't show (Ifa-b
is not a defined slot). This is quite strange.