Skip to content

Clean-up of the build system integration #1674

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 29 commits into from
Sep 16, 2024
Merged

Conversation

ahoppen
Copy link
Member

@ahoppen ahoppen commented Sep 16, 2024

I self-reviewed the BuildServerProtocol and BuildSystemIntegration protocol, cleaning things up for consistency, fixing FIXMEs and adding/updating documentation.

…SourceFileInfo` instead of a `SourceFileInfo` array
`buildTarget/inverseSources` is not required to be implemented by BSP servers and we have almost all information needed for it in `BuildSystemManager`.

This also makes sure that `buildTarget/sources` and `buildTarget/inverseSources` actually match each other. Before this change, we had source files like `Package.swift` for which we returned a target from `buildTarget/inverseSources` but that weren’t part of that target’s sources retrieved using `buildTarget/sources`.
This was equivalent to `buildTargetsDidChange`
@ahoppen
Copy link
Member Author

ahoppen commented Sep 16, 2024

@swift-ci Please test

@ahoppen
Copy link
Member Author

ahoppen commented Sep 16, 2024

@swift-ci Please test Windows

@ahoppen ahoppen merged commit 6e99e34 into swiftlang:main Sep 16, 2024
3 checks passed
@ahoppen ahoppen deleted the bsp-cleanup branch September 16, 2024 23:18
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.

1 participant