Skip to content

Cleanup diagnostics for deleted or renamed files #1653

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 1 commit into from
Jun 26, 2025

Conversation

award999
Copy link
Contributor

When the file is deleted or renamed, remove it from the diagnostic collection. Extract the swift file types to a constant.

Issue: #1652

When the file is deleted or renamed, remove it from the diagnostic
collection. Extract the swift file types to a constant.

Issue: swiftlang#1652
@plemarquand
Copy link
Contributor

Would be nice to add a test for this

@award999 award999 merged commit 269d6f2 into swiftlang:main Jun 26, 2025
18 checks passed
@award999 award999 deleted the cleanup-diagnostics branch June 26, 2025 12:29
@award999
Copy link
Contributor Author

Would be nice to add a test for this

I figured this added a bit of a flake factor as we would have to delete or rename the source file and hope we can undo the action later in the suite. I guess I could add a removeFile method that calls the update directly to get around the file watcher, just not sure if there is much value then in that

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