The following JavaScript is saved into a file called test.js
iDontExist();
(this is the entire file)
VSCode doesn't show the highlights for the iDontExist
function, which isn't imported or required anywhere.
How can I make VScode highlight the undefined function?
Note other Intellisense features (eg, inspecting imports) in JS files (not TS files) seem to work fine:
iDontExist
, you don't need to first explicitly declare everywhere that "yeah that exists, stop complaining". For anything else, i'd always recommend typescript+linter.