Skip to content
Merged
Prev Previous commit
Next Next commit
🔨 Update search file location mode's JSON schema
Signed-off-by: Babak K. Shandiz <babak.k.shandiz@gmail.com>
  • Loading branch information
babakks committed Nov 6, 2022
commit ad0ee4a5fada99d2d84c6297798b0ff3c77d88d4
20 changes: 17 additions & 3 deletions src/vs/workbench/contrib/tasks/common/problemMatcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1687,16 +1687,30 @@ export namespace Schemas {
{
type: 'object',
properties: {
'include': { type: 'array', items: { type: 'string' } },
'exclude': { type: 'array', items: { type: 'string' } },
'include': {
oneOf: [
{ type: 'string' },
{ type: 'array', items: { type: 'string' } }
]
},
'exclude': {
oneOf: [
{ type: 'string' },
{ type: 'array', items: { type: 'string' } }
]
},
},
required: ['include']
}
],
additionalItems: false,
examples: [
['search', { 'include': ['${workspaceFolder}'] }],
['search', { 'include': ['${workspaceFolder}'], 'exclude': [] }]
],
}
],
description: localize('ProblemMatcherSchema.fileLocation', 'Defines how file names reported in a problem pattern should be interpreted. A relative fileLocation may be an array, where the second element of the array is the path of the relative file location.')
description: localize('ProblemMatcherSchema.fileLocation', 'Defines how file names reported in a problem pattern should be interpreted. A relative fileLocation may be an array, where the second element of the array is the path of the relative file location. The search fileLocation mode, performs a deep (and, possibly, heavy) file system search within the directories specified by the include/exclude properties of the second element.')
},
background: {
type: 'object',
Expand Down