microsoft / build-server-for-gradle

An implementation of the Build Server Protocol for Gradle
MIT License
51 stars 8 forks source link

Ignore compilation on empty build targets #133

Closed Arthurm1 closed 5 months ago

Arthurm1 commented 6 months ago

There's no alive check in BSP so the client can repeatedly check that the server is still up and running.

Metals uses buildTarget/compile for this with an empty list of targets but this causes a complete refresh of all the source sets.

So this adds a guard so no refresh is done if the list of targets is empty.

jdneo commented 5 months ago

Thank you @Arthurm1 for your contribution!