Skip to content

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

Merged
alan-agius4 merged 1 commit intoangular:mainfrom
clydin:fix/mcp-projects-validation-and-opt
Mar 30, 2026
Merged

refactor(@angular/cli): deduplicate search roots for MCP projects tool#32886
alan-agius4 merged 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
@alan-agius4 alan-agius4 added action: merge The PR is ready for merge by the caretaker and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Mar 30, 2026
@alan-agius4 alan-agius4 merged commit 6ce4170 into angular:main Mar 30, 2026
38 checks passed
@alan-agius4
Copy link
Copy Markdown
Collaborator

This PR was merged into the repository. The changes were merged into the following branches:

@clydin clydin deleted the fix/mcp-projects-validation-and-opt branch March 30, 2026 10:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

action: merge The PR is ready for merge by the caretaker 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.

2 participants