Skip to content

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