When I'm typing the import statement I get suggestions:

However, when I move the mouse over the undefined function, I only get the following:
"'setMouseHijack' is not defined. (W117)jshint(W117)"
Without any suggested import.
Am I missing something? Isn't VSCode supposed to suggest me the improvement when I move the mouse over those undefined variables/functions if available to import?

The "Quick fix" won't suggest the import either:

I ended up solving it by enabling the checkJS flag in VSCode's settings.

Also on the jsconfig.json file:
{
"compilerOptions": {
"checkJs": true,
},
"updateImportsOnFileMove": "prompt",
"include": ["js/**/*"],
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With