problem matcher that clears only for changed files
See original GitHub issueI have a watch task that runs various per-file checks (lint, appropriate tests, etc). When it starts up, it runs those checks for all files in the project. Thereafter, it only runs checks on files that change.
For the most part, it works great; but the one limitation I’m running into is that all problems for a particular matcher are cleared on a run.
For example:
-
I boot up the watch task, and there are problems on
foo.js
andbar.js
. The problem matcher picks up on all of these. -
I make a change to
foo.js
:a. The watch task re-runs checks for just
foo.js
. b. The problem matcher notices that a re-run has occurred, and blows away all problems of that type c. Only problems forfoo.js
are listed, even thoughbar.js
still has issues.
I’d like to avoid building a language server or plugin for this if I can (the watch task is very useful to non VS code users on the team; and problem matchers are wonderfully simple).
Or maybe we could have an option for only clearing problems for files that have changed (or that match a particular expression?)
Issue Analytics
- State:
- Created 8 years ago
- Reactions:1
- Comments:5 (2 by maintainers)
Top GitHub Comments
Keeping as a feature request to allow watching patterns on a per file bases.
Yeah, I had it configured as a watch task. The difference here, I think, is that the task itself only ran against files that changed (rather than the entire project, as most watch tasks tend to, and VS Code seems to rightly assume)