Skip to content

SwiftFixIt: Misc improvements #8671

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 10 commits into from
May 16, 2025
Merged

Conversation

AnthonyLatsis
Copy link
Contributor

Modifications:

  • Test reorg.
  • More tests.
  • When we skip primary diagnostics, skip their notes too.
  • Skip primary diagnostics with more than 1 note with fix-its.
  • Deduplicate primary diagnostics.

case 0:
// No notes have fix-its. Skip if neither does the primary
// diagnostic.
guard diagnostic.hasFixIt else {
Copy link
Contributor

Choose a reason for hiding this comment

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

Hm, I wonder if we have cases where both a diagnostic and its notes have fix-its? If seems like if the diagnostic has fix-its we should use them since that should be considered a "default" behavior.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Let’s find out. At first thought that sounds like something we’d want to discourage in favor of a note.

@AnthonyLatsis
Copy link
Contributor Author

@swift-ci please test

The minimum Swift tools version is appropriate for noncopyable types.
@AnthonyLatsis
Copy link
Contributor Author

@swift-ci please test

@xedin
Copy link
Contributor

xedin commented May 15, 2025

@swift-ci please test Windows platform

@xedin xedin merged commit 64b4746 into swiftlang:main May 16, 2025
6 checks passed
@AnthonyLatsis AnthonyLatsis deleted the dia-especial branch May 16, 2025 00:37
xedin pushed a commit to xedin/swift-package-manager that referenced this pull request May 22, 2025
### Modifications:

* Test reorg.
* More tests.
* When we skip primary diagnostics, skip their notes too.
* Skip primary diagnostics with more than 1 note with fix-its.
* Deduplicate primary diagnostics.

(cherry picked from commit 64b4746)
dschaefer2 pushed a commit that referenced this pull request May 22, 2025
…d fixes (#8710)

Includes:
  
  - #8671
  - #8677
  - #8700
  - #8699

---------

Co-authored-by: Anthony Latsis <[email protected]>
AnthonyLatsis added a commit that referenced this pull request May 24, 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.

4 participants