Repository: vscode
Issue: Customized problem matcher will match same problem several times 
Labels: bug,tasks

Type: <b>Bug</b>

I write a customized problem matcher for TI ARMCL compiler, and I found when I secondly run the build task, the problem page will not clear, the problem matcher will add the same problem to the problem page again. The more you run, the more problem will in the problem page. So, the problem page will have a lot of same problems, every time I run the build task, the number of problems will increase, most of them are the same problem.

It looks like this:
![image](https://user-images.githubusercontent.com/33342565/196912595-1863eff0-754b-4567-bf33-8bfe3a8bcd17.png)

You could see all these problems at the same line in the same file. Actually, they are the same problem.

There is my build task and problem matcher.
![image](https://user-images.githubusercontent.com/33342565/196916137-0ed40114-06f6-49f0-aacc-8f049fc3f442.png)

VS Code version: Code 1.72.2 (d045a5eda657f4d7b676dedbfa7aab8207f8a075, 2022-10-12T22:15:18.074Z)
OS version: Windows_NT x64 10.0.22623
Modes:
Sandboxed: No
Connection to 'wsl+ubuntu-22.04' could not be established

<details>
<summary>System Info</summary>

|Item|Value|
|---|---|
|CPUs|12th Gen Intel(R) Core(TM) i7-1255U (12 x 2611)|
|GPU Status|2d_canvas: enabled<br>canvas_oop_rasterization: disabled_off<br>direct_rendering_display_compositor: disabled_off_ok<br>gpu_compositing: enabled<br>multiple_raster_threads: enabled_on<br>opengl: enabled_on<br>rasterization: enabled<br>raw_draw: disabled_off_ok<br>skia_renderer: enabled_on<br>video_decode: enabled<br>video_encode: enabled<br>vulkan: disabled_off<br>webgl: enabled<br>webgl2: enabled<br>webgpu: disabled_off|
|Load (avg)|undefined|
|Memory (System)|39.68GB (28.06GB free)|
|Process Argv|D:\\work\\proj\\ad9363_src\\demo.code-workspace|
|Screen Reader|no|
|VM|0%|

Connection to 'wsl+ubuntu-22.04' could not be established
</details><details><summary>Extensions (42)</summary>

Extension|Author (truncated)|Version
---|---|---
better-comments|aar|3.0.2
qml-formatter|And|1.3.2
path-intellisense|chr|2.8.1
doxdocgen|csc|1.4.0
arm|dan|1.7.4
yash|dao|0.2.9
vscode-markdownlint|Dav|0.48.1
vscode-eslint|dba|2.2.6
githistory|don|0.6.19
graphviz-preview|EFa|1.5.0
CppSnippets|har|0.0.15
llvm-tablegen|jak|0.0.2
vscode-gnu-global|jay|0.3.5
plantuml|jeb|2.17.4
restructuredtext|lex|189.2.0
vscode-regexp-preivew|Lul|1.0.0
workspace-cacheclean|Mam|0.0.2
markdown-formatter|mer|0.9.7
git-graph|mhu|1.30.0
vscode-language-pack-zh-hans|MS-|1.72.10121008
python|ms-|2022.16.1
vscode-pylance|ms-|2022.10.30
remote-ssh|ms-|0.90.1
remote-ssh-edit|ms-|0.84.0
remote-wsl|ms-|0.72.0
cmake-tools|ms-|1.12.27
cpptools|ms-|1.13.2
hexeditor|ms-|1.9.9
linux-desktop-file|nic|0.0.21
devicetree|plo|0.1.1
git-merger|sha|0.4.1
markdown-preview-enhanced|shd|0.6.3
ninja|sur|0.0.1
pdf|tom|1.2.0
gnu-mapfiles|tro|1.1.0
simple-rst|tro|1.5.2
cmake|twx|0.0.17
markdown-pdf|yza|1.4.4
markdown-all-in-one|yzh|3.4.3
material-theme|zhu|3.15.6
riscv|zhw|0.0.8
linkerscript|Zix|1.0.2


</details>
<!-- generated by issue reporter -->