Asked By: Anonymous
I have a Svelte project with TypeScript support created with:
npx degit sveltejs/template ts-test
cd ts-test
node script/setupTypeScript.js
npm install
and I’m using the Svelte for VS Code extension
vscode reports the following warning on mouse hover:
(parameter) filter: any
Parameter 'filter' implicitly has an 'any' type, but a better type may be inferred from usage.ts(7044)
As you can see, the error is displayed on mouse-hover but not on the problems tab.
Solution
Answered By: Anonymous
This actually the right behavior. This is a hint, only warnings/errors are shown in the Problems tab. You get the same behavior in a normal TypeScript file.
VSCode only shows errors/warnings/infos in the Problems tab, there is no option to display hints. The "warning" you talk about is actually a hint, so it’s not shown in the Problems tab.