Skip to content

refactor(@angular/cli): deduplicate search roots for MCP projects tool#32886

Open
clydin wants to merge 1 commit intoangular:mainfrom
clydin:fix/mcp-projects-validation-and-opt
Open

refactor(@angular/cli): deduplicate search roots for MCP projects tool#32886
clydin wants to merge 1 commit intoangular:mainfrom
clydin:fix/mcp-projects-validation-and-opt

Conversation

@clydin
Copy link
Copy Markdown
Member

@clydin clydin commented Mar 27, 2026

Sorting by length ensures parent directories are processed before children, filtering out overlapping search trees.

Sorting by length ensures parent directories are processed before children, filtering out overlapping search trees.
@clydin clydin added the target: minor This PR is targeted for the next minor release label Mar 27, 2026
Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a deduplicateSearchRoots utility function to remove overlapping search paths by filtering out subdirectories when a parent directory is already present. The createListProjectsHandler has been updated to apply this deduplication to its search roots. I have no feedback to provide.

@clydin clydin added the action: review The PR is still awaiting reviews from at least one requested reviewer label Mar 27, 2026
@clydin clydin requested a review from alan-agius4 March 27, 2026 19:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

action: review The PR is still awaiting reviews from at least one requested reviewer area: @angular/cli target: minor This PR is targeted for the next minor release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant