microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
158.92k stars 27.79k forks source link

IntelliSense beyond bad autocomplete #212021

Closed 4e576rt8uh9ij9okp closed 1 week ago

4e576rt8uh9ij9okp commented 2 weeks ago

The IntelliSense autocomplete or suggestion is beyond bad, I don't understand how it chooses what to recommend. I'm using puppeteer for NodeJS and there is a method named .use() same as in the express module.

I do what everyone else does.

const puppeteer = require('puppeteer')

puppeteer.use

But instead it seeing the use() method it autocompletes to this: .unregisterCustomQueryHandler and before pressing enter or closing the brackets, because pressing ( actually is equal to pressing [ENTER], you need to press ESC to NOT apply the autocomplete, so when the autocomplete/intellisense popup shows, this here is striked/crossed like this: .unregisterCustomQueryHandler But it still recommends this as a suggestion.

VSCodeTriageBot commented 2 weeks ago

Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.89.0. Please try upgrading to the latest version and checking whether this issue remains.

Happy Coding!

mjbvz commented 1 week ago

If use is a valid function, their typings don't show it:

Image

Please file an issue against puppeteer for that.

The rest is just commit characters kicking in. You can disable this using editor.acceptSuggestionOnCommitCharacter

4e576rt8uh9ij9okp commented 6 days ago

If use is a valid function, their typings don't show it:

Image

Please file an issue against puppeteer for that.

The rest is just commit characters kicking in. You can disable this using editor.acceptSuggestionOnCommitCharacter

I have no clue how it works, between a module and vscode IntelliSense. If you say so then I will let them know.