Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Terminate TOC recursion on full filepath match #10353

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ganicke
Copy link
Collaborator

@ganicke ganicke commented Jan 25, 2025

The TOC/breadcrumb match is relying on an indexOf() == 0 check instead of a full string match. Therefore a path string of code-eval-tool will match both of the TOC entries for code-eval-tool and code with a recursive TOC lookup. This will render an aggregated breadcrumb of both the TOC entries.

Note: The fix included here is a suggestion for a full path match. You can offer better or more efficient check.

Closes microsoft/pxt-microbit#6069

@ganicke ganicke requested a review from abchatra January 25, 2025 04:03
@ganicke ganicke changed the title Terminate on TOC recursion on full filepath match Terminate TOC recursion on full filepath match Jan 25, 2025
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.

Breadcrumb for Code Eval docs
1 participant