Skip to content

Commit a11ef2f

Browse files
committed
Improve problem matcher json error message
Fixes microsoft#101475
1 parent 4276492 commit a11ef2f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/vs/workbench/contrib/tasks/common/jsonSchemaCommon.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ const schema: IJSONSchema = {
3838
oneOf: [
3939
{
4040
type: 'string',
41+
errorMessage: nls.localize('JsonSchema.tasks.matcherError', 'Unrecognized problem matcher. Is the extension that contributes this problem matcher installed?')
4142
},
4243
Schemas.LegacyProblemMatcher,
4344
{
@@ -46,6 +47,7 @@ const schema: IJSONSchema = {
4647
anyOf: [
4748
{
4849
type: 'string',
50+
errorMessage: nls.localize('JsonSchema.tasks.matcherError', 'Unrecognized problem matcher. Is the extension that contributes this problem matcher installed?')
4951
},
5052
Schemas.LegacyProblemMatcher
5153
]

0 commit comments

Comments
 (0)