Skip to content

Conversation

@gabritto
Copy link
Member

@gabritto gabritto commented Jan 28, 2026

Compute find all references baseline diffs to make it easier to review PRs that touch it.

Copilot AI review requested due to automatic review settings January 28, 2026 23:16
Copy link
Contributor

Copilot AI left a 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 DiffFixupOld processing for findAllReferencesCmd baseline 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

Copy link
Member

@iisaduan iisaduan left a 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)

@gabritto gabritto added this pull request to the merge queue Jan 29, 2026
Merged via the queue into main with commit 10cc19f Jan 29, 2026
21 checks passed
@gabritto gabritto deleted the gabritto/diff-ref branch January 29, 2026 16:10
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.

6 participants