提交 886d14ce 编写于 作者: J Joao Moreno

fix uri matches

related to #62216
上级 af5f77bb
......@@ -347,16 +347,16 @@ export class Filter implements ITreeFilter<TreeElement, FilterData> {
return false;
}
if (this.options.includePattern && this.options.includePattern(resourceMarkers.resource.fsPath)) {
return true;
}
const uriMatches = FilterOptions._filter(this.options.textFilter, paths.basename(resourceMarkers.resource.fsPath));
if (this.options.textFilter && uriMatches) {
return { visibility: true, data: { type: FilterDataType.ResourceMarkers, uriMatches } };
}
if (this.options.includePattern && this.options.includePattern(resourceMarkers.resource.fsPath)) {
return true;
}
return TreeVisibility.Recurse;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册