I am using the checker plugin for vite. It prints errors to the VS Code terminal, like this (example):
ERROR(TypeScript) Property 'foobarasdasdasdas' does not exist on type 'HelloWorld'.
FILE /home/birger/SomeFile.tsx:194:23
192 |
193 | // TODO: fix
> 194 | return helloWorld.foobarasdasdasdas({
| ^^^^^^^^^^^^^^^^^
195 | someprop:args,
196 | asd: "",
197 | dsa: "",
However, the "problems" tab in VS Code is silent.
How can I make VS Code detect the errors that is printed to the terminal?
EDIT: I guess I need to configure the task to pick up the output?
{
"version": "2.0.0",
"tasks": [
{
"label": "client dev",
"type": "npm",
"script": "dev",
"problemMatcher": // WHAT DO I WRITE HERE?
}
]
}
Add below code to your config file of checker plugin