Skip to content

feat: add support for omitting selectors in generateSelector options#39067

Closed
Shahalt1 wants to merge 1 commit intomicrosoft:mainfrom
Shahalt1:feat/add-omit-selectors-cli
Closed

feat: add support for omitting selectors in generateSelector options#39067
Shahalt1 wants to merge 1 commit intomicrosoft:mainfrom
Shahalt1:feat/add-omit-selectors-cli

Conversation

@Shahalt1
Copy link

  • Enhanced the generateSelector function to accept an omitSelectors option, allowing users to specify which selector sources to exclude (e.g., id).
  • Updated related components to utilize the new omitSelectors option, ensuring consistent behavior across the codebase.
  • Modified CLI to support --omit-selectors argument for code generation.

issue : #39066

- Enhanced the generateSelector function to accept an omitSelectors option, allowing users to specify which selector sources to exclude (e.g., id).
- Updated related components to utilize the new omitSelectors option, ensuring consistent behavior across the codebase.
- Modified CLI to support --omit-selectors argument for code generation.
@dgozman
Copy link
Contributor

dgozman commented Feb 3, 2026

Thank you for the PR! I think this is a too narrow usecase to introduce this command line flag. Not to mention that any other tooling, e.g. VSCode extension, will not work in this case. We'd prefer the issue to be solved differently: by recommending better/multiple selectors to the user, or perhaps some extended options in the UI/api, but not with a targeted command line flag like this one.

If you'd like to contribute, please tackle #5178 instead. Again, thank you for the PR!

@dgozman dgozman closed this Feb 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants