Skip to content

Conversation

@rockbruno
Copy link
Member

Another refactor PR, this time for the initialize / shutdown flows. Underlying code is the same, just structured more cleanly and with added tests. The original code is still there just to keep the PRs small; will remove everything once I finish these PRs.

@rockbruno rockbruno requested a review from a team as a code owner July 16, 2025 07:05
@rockbruno
Copy link
Member Author

cc @mjburghard

Comment on lines +26 to +28
/// According to the BSP spec, the server should first receive the `build/shutdown` request,
/// and then the `onBuildExit` notification. We then exit with different codes depending on
/// whether the LSP followed the spec correctly or not.

Choose a reason for hiding this comment

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

Should we also schedule a timer to perform onBuildExit if the notification is never sent to us?

Copy link
Member Author

Choose a reason for hiding this comment

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

Will put a note to check this out

@rockbruno rockbruno merged commit 747dae5 into spotify:main Jul 16, 2025
1 check passed
josh-arnold-1 pushed a commit to josh-arnold-1/sourcekit-bazel-bsp that referenced this pull request Jul 17, 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.

2 participants