Skip to content

Conversation

natecook1000
Copy link
Member

Because of a difference in algorithms, the linear-space CollectionDifference algorithm includes some non-whitespace changes for this test example.

The current algorithm only identifies whitespace as differences, but the updated algorithm includes both a removal and insertion of the "A" character here: https://github.com/natecook1000/sourcekit-lsp/blob/46c99dabc4acf116a572fd58ae162a83b61e6cec/Tests/SourceKitLSPTests/FormattingTests.swift#L266

@natecook1000
Copy link
Member Author

@swift-ci Please test

Copy link
Member

@ahoppen ahoppen left a comment

Choose a reason for hiding this comment

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

Hmm, unfortunate that we no longer report whitespace-only changes but fair enough. Maybe if we changed the test to have a little more real text than A would we get back to the whitespace-only changes. I’ll investigate once your collection diffing algorithm changes are in.

@ahoppen ahoppen merged commit 766f2c8 into swiftlang:main Sep 13, 2025
3 checks passed
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.

2 participants