-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Vscode don't show hints / autocomplette in JavaScript addEventListener witch querySelector #52108
Comments
See, for example, https://stackoverflow.com/a/64732930/836330. Probably same thing. |
I saw this thread (and others) unfortunately not, thanks |
Moving to TS since this looks like an inconsistency with the DOM typings
Meanwhile @bzag44 You can fix your example by adding the same |
This issue has been marked as a 'Duplicate' and has seen no recent activity. It has been automatically closed for house-keeping purposes. |
Try changing your constant or variable name. For me it works. |
thanks, it's a wrong way, (I think) |
Type: VSCode autocomplette
When I use (Windows and Linux)
addEventListener with document.querySelector('#id')
addEventListener doesn't show event hints, but with
document.getElementById('id') it works fine. Can it be fixed?
I would like to use document.querySelector('#id')
instead getElementById('id')
VS Code version: Code 1.74.2 (e8a3071ea4344d9d48ef8a4df2c097372b0c5161, 2022-12-20T10:27:19.253Z)
OS version: Linux x64 5.4.0-135-generic
Modes:
Sandboxed: No
Extensions (9)
The text was updated successfully, but these errors were encountered: