-
Notifications
You must be signed in to change notification settings - Fork 812
Diff findAllReferences
#2605
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
Diff findAllReferences
#2605
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR implements baseline diffing for the findAllReferences command in the fourslash test infrastructure. The changes enable proper comparison of findAllReferences test outputs by normalizing and sorting file sections before diffing.
Changes:
- Added
DiffFixupOldprocessing forfindAllReferencesCmdbaseline comparisons - Implemented file section sorting to ensure consistent diff output
- Added logic to filter out test artifacts like context spans and file path prefixes
Reviewed changes
Copilot reviewed 45 out of 400 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| internal/fourslash/baselineutil.go | Adds findAllReferencesCmd case with custom diff preprocessing logic including file section sorting and cleanup |
| testdata/baselines/reference/submodule/fourslash/findAllReferences/*.diff | Updates expected baseline diffs for various findAllReferences test cases showing improved output formatting |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yay!
(looks like a lot of js/jsdoc missing from FAR)
Compute find all references baseline diffs to make it easier to review PRs that touch it.