Skip to content

Commit 58f74cf

Browse files
authored
Fix problem matcher error in array (microsoft#83766)
Fixes microsoft#83702
1 parent 459d138 commit 58f74cf

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,10 @@ const schema: IJSONSchema = {
4444
type: 'array',
4545
items: {
4646
anyOf: [
47-
Schemas.LegacyProblemMatcher,
4847
{
4948
type: 'string',
50-
}
49+
},
50+
Schemas.LegacyProblemMatcher
5151
]
5252
}
5353
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -569,7 +569,7 @@ export function updateProblemMatchers() {
569569
try {
570570
let matcherIds = ProblemMatcherRegistry.keys().map(key => '$' + key);
571571
definitions.problemMatcherType2.oneOf![0].enum = matcherIds;
572-
(definitions.problemMatcherType2.oneOf![2].items as IJSONSchema).anyOf![1].enum = matcherIds;
572+
(definitions.problemMatcherType2.oneOf![2].items as IJSONSchema).anyOf![0].enum = matcherIds;
573573
} catch (err) {
574574
console.log('Installing problem matcher ids failed');
575575
}

0 commit comments

Comments
 (0)