Closed rsxdalv closed 7 years ago
Note: I'm using $tslint5 pattern from vscode-tslint (with tslint.enabled = false which is an option only for the old one)
So I tried instead sharing the owner with "typescript" seeing how it is a plugin. And that works! However, that breaks my parallel setup for semantic linting and emit to unit tests, as my gulp is parallel and thus one "typescript" overrides the other.
So, basically, I got them still working in parallel (as it's way harder to figure out how to share the language context, and there are hardly any docs on that and I don't have infinite budget) and still report problems in vscode. My setup is this:
And it just works. For now.
However, I believe the amount of work that was needed to research this and get it working is a pointer towards TSService allowing other problem owners than "typescript" in their plugin ecosystem. I'd imagine we'd have performance, lint, assistance, statistics, which could share the problem/warning structure. However, I'm unsure if this is a problem with tasks.json, vscode tsserver, or tsserver itself.
I used tslint as my problemMatcher.owner, however, I am getting duplicate errors - one from [tslint] and one without a prefix.
This approach works with TSServer + gulp and with original tslint.
I suspect that I might've misconfigured something. Here's the relevant task of tasks.json (v2):