mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-22 21:51:43 -05:00
Remove settings search @groupId filters - since group ids can now be extension guids, and nobody uses this anyway
This commit is contained in:
@@ -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);
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user