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
[🐛 Bug]: VSCode adds parentheses around methods during auto-completion #12591
Comments
@k03mad thanks for raising the issue. This is a know problem. I had some ideas how we might be able to resolve this for v9. |
@k03mad if it helps I disabled these settings in VSCode and it's better than having to remove the brackets every time |
Wait... But the first option disables the suggestions entirely :) |
Have you read the Contributing Guidelines on issues?
WebdriverIO Version
8.35.0
Node.js Version
20
Mode
WDIO Testrunner
Which capabilities are you using?
What happened?
I have encountered strange behavior with auto-inserting unwanted parentheses around WDIO methods in VSCode.
Perhaps this is due to the way VSCode interprets types and doesn't recognize that this methods can be chained.
Or could it be a bug in the WDIO types?
Maybe someone has encountered such behavior and can give advice or a solution.
What is your expected behavior?
No response
How to reproduce the bug.
Repo to reproduce: https://github.com/k03mad/wdio-reproduce-autocomplete
Created with the default
npm init wdio@latest .
Reproduced in both GitHub Codespaces and local VSCode installations.
Please refer to the GIF below.
Relevant log output
File:
wdio-reproduce-autocomplete/test/pageobjects/login.page.js
Code of Conduct
Is there an existing issue for this?
The text was updated successfully, but these errors were encountered: