Open bobsilverberg opened 5 years ago
This is a known issue of the vscode-type-coverage plugin: https://github.com/plantain-00/vscode-type-coverage/issues/1
When I debug the plugin in vscode, the result is same as the CLI, but when publish the plugin, the plugin report more errors than the CLI.
I still have no idea how to fix the plugin.
v2.0.0 should fix this.
The plugin is reporting errors in VSCode, but when I run the CLI command the same errors do not appear. The errors seem invalid to me, but I cannot figure out why they're being reported in VSCode and not via the CLI. It seems to have to do with
this.props
not being recongnized as being typed byProps
. Here's a small example:And here's what it looks like in VSCode:
And the "problems" pane in VSCode:
Note that if I change line 9 to read
const { className } = this.props as Props;
then most of the problems reported go away, but it still complains that "The type of 'props' is 'any'" at 9,32. According to the CLI, I don't need to add thatas Props
at all, so I am mostly confused about why the plugin is reporting problems that the CLI is not.