提交 5b7485c4 编写于 作者: R Rob Lourens

Remove settings search @groupId filters - since group ids can now be extension...

Remove settings search @groupId filters - since group ids can now be extension guids, and nobody uses this anyway
上级 9e34212e
......@@ -106,17 +106,10 @@ export class LocalSearchProvider implements ISearchProvider {
}
private getGroupFilter(filter: string): IGroupFilter {
if (strings.startsWith(filter, '@')) {
const groupId = filter.replace(/^@/, '');
return (group: ISettingsGroup) => {
return group.id.toLowerCase() === groupId.toLowerCase();
};
} else {
const regex = strings.createRegExp(this._filter, false, { global: true });
return (group: ISettingsGroup) => {
return regex.test(group.title);
};
}
const regex = strings.createRegExp(this._filter, false, { global: true });
return (group: ISettingsGroup) => {
return regex.test(group.title);
};
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册