The ability to trigger a build server refresh is currently missing from the protocol.
This issue is a follow up of sbt/sbt#5783. Adding a build/reload request will ease the integration between IntelliJ and sbt, as well as IntelliJ and Bloop.
Basically,
workspace/buildTargets is safe and returns the latest known state of the build
build/reload asks the server to refresh the state of the build but it can fail, in which case the server might stop responding
A typical scenario would be:
- the user changes the build configuration file then clicks the
reload button
- a
build/reload request is sent by the client to the server
- the server reload the configuration
- after reloading successfully it replies with a success response
- the client sends a
workspace/buildTargets request to ask the new list of build targets
The ability to trigger a build server refresh is currently missing from the protocol.
This issue is a follow up of sbt/sbt#5783. Adding a
build/reload requestwill ease the integration between IntelliJ and sbt, as well as IntelliJ and Bloop.Basically,
workspace/buildTargetsis safe and returns the latest known state of the buildbuild/reloadasks the server to refresh the state of the build but it can fail, in which case the server might stop respondingA typical scenario would be:
reloadbuttonbuild/reloadrequest is sent by the client to the serverworkspace/buildTargetsrequest to ask the new list of build targets