static filterSelectors()

in src/js/webview/CSSSelectorResolver.js [397:414]


  static filterSelectors(
    selectors: string[],
    field: string,
    contextSelector: string
  ): string[] {
    if (field != null) {
      // Try get the filter by key
      let filter = selectorsFilters.get(field);
      if (filter == null) {
        // Try wildcard match the filters like all.propertyName
        filter = selectorsFilters.get(field.replace(/^[a-z]*\./i, 'all.'));
      }
      if (filter != null) {
        return filter(selectors, contextSelector);
      }
    }
    return selectors;
  }