293
294
private _matches(files: ResourceSet, applyToPattern: string): { pattern: string; file?: URI } | undefined {
296
>
const patterMatches = (pattern: string): { pattern: string; file?: URI } | undefined => {
297
>
pattern = pattern.trim();
298
>
if (pattern.length === 0) {
299
// if glob pattern is empty, skip it
300
return undefined;
301
}
303
// if glob pattern is one of the special wildcard values,
304
// add the instructions file event if no files are attached
305
return { pattern };
306
}
308
// support relative glob patterns, e.g. `src/**/*.js`
309
pattern = '**/' + pattern;