-
-
Notifications
You must be signed in to change notification settings - Fork 68
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
Possible bug when accepting class method suggestion(s) during autocompletion #472
Comments
OK, seems like this behavior has to do with how suggestion mechanism works with First you start typing |
Can you reproduce the issue in VSCode? Sounds like the tsserver returns error suggestion. |
Well, I have tested it with VSCodium, not vscode, and it works as expected; these are the vscodium specs:
|
Can't reproduce the |
I forgot to mention, the |
Still can't reproduce the duplicate async issue, can you init a test repo that broken with this issue? |
Let me try to reproduce it in a limited demo. |
I cannot reproduce it in a demo...the classes I'm working on come from |
output-2024-09-12_12.34.27.mp4 |
Try minimal vimrc, only coc.nvim and coc-tsserver. From your screenshot, after you input |
I just shared the problematic behavior with you that takes place in insert mode. The line became |
I have exported an interface that each method return a Promise with needed types accordingly.
When I implement them in a class, and I decide to start them manually with the keyword
async
, whichever method it suggests me, it prepends it withasync
too, thus leading to two keywords namedasync
; if I don't use the aforementioned keyword, it just auto-completes whichever method I decide to choose without theasync
being added automatically for me.Is this an expected behavior?
The text was updated successfully, but these errors were encountered: