Skip to content

Start migration of the communication between SourceKit-LSP and build systems to happen via the Build Server Protocol (BSP) #1649

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 5 commits into from
Sep 10, 2024

Conversation

ahoppen
Copy link
Member

@ahoppen ahoppen commented Sep 7, 2024

As outlined in https://forums.swift.org/t/extending-functionality-of-build-server-protocol-with-sourcekit-lsp/74400, we want to switch the communication between SourceKit-LSP and build systems to happen via the Build Server Protocol (BSP).

This PR gets the transition started, making a few architectural adjustments and starts to migrate two messages to happen via BSP: workspace/didChangeWatchedFiles (previously filesDidChange) and buildTarget/inverseSources (previously configuredTargets(for:)).

Not all changes make terrible sense at this transitional stage. I should have marked all places that still need cleanup with FIXME: (BSP migration). The expectation is that all of these FIXME comments will be resolved by the end of the migration.

Each commit in the PR is self-contained and can be reviewed individually.

@ahoppen
Copy link
Member Author

ahoppen commented Sep 7, 2024

@swift-ci Please test

@ahoppen ahoppen force-pushed the bsp-preparation branch 2 times, most recently from 389e34d to 0d6ab64 Compare September 9, 2024 16:02
@ahoppen
Copy link
Member Author

ahoppen commented Sep 9, 2024

@swift-ci Please test

@ahoppen
Copy link
Member Author

ahoppen commented Sep 9, 2024

@swift-ci Please test Windows

@ahoppen
Copy link
Member Author

ahoppen commented Sep 9, 2024

@swift-ci Please test

@ahoppen
Copy link
Member Author

ahoppen commented Sep 9, 2024

@swift-ci Please test Windows

@ahoppen
Copy link
Member Author

ahoppen commented Sep 9, 2024

@swift-ci Please test

@ahoppen
Copy link
Member Author

ahoppen commented Sep 9, 2024

@swift-ci Please test Windows

@ahoppen
Copy link
Member Author

ahoppen commented Sep 10, 2024

Merging this because I have a few BSP PRs stacked and want to make progress. I’ll address review comments in follow-up PRs.

@ahoppen ahoppen merged commit 851feba into swiftlang:main Sep 10, 2024
3 checks passed
@ahoppen ahoppen deleted the bsp-preparation branch September 10, 2024 04:03
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