-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Autocompletion is working in TS 4.7 to 4.9 but broken/gone in TS 5 #53475
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
Could you specify what exact completions you expect at given positions? I'm guessing that string completions are broken here (although some work in |
This was broken by this PR of mine although I've hoped to fix its regressions with #52875 . Gonna have to investigate what is different about this one here. |
@Andarist As Edit: It seems like introducing an item that isn't part of the expected union switch the type of the array to the union itself so the autocompletion works: The empty string being "wrong", works in both 4.9 and 5: The only difference between 4.9 and 5 then it's that the suggestions are showing when the cursor is between the quotes |
Bug Report
🔎 Search Terms
autocompletion
🕗 Version & Regression Information
⏯ Playground Link
Playground link with relevant code
💻 Code
Please go to the end of the code and try the
defineConfig
function:🙁 Actual behavior
Between TS 4.7 and 4.9, we have autocompletion available for all array values under the
exclude
keyAt TS 5 and above (I tried nightly as well), the autocompletion is gone
🙂 Expected behavior
The autocompletion should work the same as with TS 4.7 and 4.9
The text was updated successfully, but these errors were encountered: