-
Notifications
You must be signed in to change notification settings - Fork 12.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Code comlpetion not working for variables #54654
Comments
This has been changed in |
Thank you so much for the mention! I checked this and you're totally right. I was also annoyed with this recently, but didn't know that PR is culprit. It happens because you don't have semicolon and contextToken is numeric literal |
Huh, odd - you'd expect that ASI would kick in and have the parser act as if there's a semicolon after the |
@DanielRosenwasser @zardoy @RyanCavanaugh issue still exists: const obj = {
name: '',
} as const // <- missing semicolon If I add const obj = {
name: '',
} as const; // <- added semicolon TS Version: |
@RyanCavanaugh @DanielRosenwasser Let me know if I should open a new issue or we re-open this one |
@svipas I don't think it is related to this issue. This issue is about regression that started to happen from 5.1.x and was patched in 5.1.6. But your issue is happening in 5.0 and in older version as well. The root of the issue is the same as in #54729 completions are being blocked in that position |
Thanks @zardoy, you're right. I wrote a comment in your issue to include this case as well. |
Bug Report
π Search Terms
Completion, IntelliSense
π Version & Regression Information
Tested in 'Nightly' version - the problem is not fixed.
β― Playground Link
Playground link with relevant code
π» Code
π Actual behavior
Completion list ater
fo
does not containfoo
item.π Expected behavior
Completion list ater
fo
containsfoo
item.The text was updated successfully, but these errors were encountered: