Skip to content

problem matcher that clears only for changed files #1397

@nevir

Description

@nevir

I 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:

  1. I boot up the watch task, and there are problems on foo.js and bar.js. The problem matcher picks up on all of these.

  2. 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 for foo.js are listed, even though bar.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?)

Metadata

Metadata

Assignees

Labels

feature-requestRequest for new features or functionalitytasksTask system issues

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions