Skip to content

swift-package-migrate: Report a fix-it application summary #8684

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

Merged
merged 4 commits into from
May 25, 2025

Conversation

AnthonyLatsis
Copy link
Contributor

@AnthonyLatsis AnthonyLatsis commented May 16, 2025

  • E.g. > Applied 3 fix-its in 1 file (0.001s).

  • Don’t output messages with a period for consistency with other commands.

  • Minor optimization for fix-it application.

    SwiftIDEUtils.FixItApplier.applyFixes performs some O(n^2) filtering based on SwiftDiagnostics.FixItMessage messages, which we don't need. Use the overload that directly takes an array of source edits instead.

Sits on top of #8683.

Other commands don't do this. Be consistent.
`SwiftIDEUtils.FixItApplier.applyFixes` performs some O(n^2) filtering
based on `SwiftDiagnostics.FixItMessage` messages, which we don't need.
Use the overload that directly takes an array of source edits instead.
@AnthonyLatsis
Copy link
Contributor Author

@swift-ci please test

@AnthonyLatsis AnthonyLatsis enabled auto-merge (squash) May 24, 2025 18:38
@xedin
Copy link
Contributor

xedin commented May 25, 2025

@swift-ci please test self hosted Windows platform

@AnthonyLatsis AnthonyLatsis merged commit dcab689 into swiftlang:main May 25, 2025
6 checks passed
@AnthonyLatsis AnthonyLatsis deleted the dia-especial-2 branch May 25, 2025 08:46
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.

3 participants