MarcHenderkes After restarting VS a few times the errors went away, but they should never be listed in the first place.
JakubMisek Hi, You can exclude or change severity of errors within specific folder using .editorconfig file. https://docs.devsense.com/en/vs/code%20validation/configuration#editorconfig I hope it helps. Also vendor folder is by default excluded. The default behavior is set in Tool / Options / PhpTools -> set Code analysis to "user scope"
MarcHenderkes Hi, how would I exclude the node_modules folder then? Can't find an example in the documentation, as I don't want to disable error parsing for TS/JS entirely. [node_modules/*] php_diagnostic = false Like this?
JakubMisek Yes, something like this: [node_modules] php_diagnostic = false or [node_modules/**] php_diagnostic = false
JakubMisek we have added node_modules to be ignored by default if the Problem Scope is set to "user" (default) Visual Studio: Tools / Options / PHP Tools / Advanced / Code Analysis VS Code: setting "php.problems.scope": "user"