ValdemarGr / mezel

Scala BSP implementation for Bazel.
Apache License 2.0
16 stars 2 forks source link

Share cache between metals didChange (restarts the application) #11

Closed ValdemarGr closed 8 months ago

ValdemarGr commented 9 months ago

If you have a build error and change the BUILD.bazel file or something similar, the BSP server will be restarted by metals (didChange restarts in metals). This causes the cache (semanticdb) to be wiped, such symbol information is gone when mezel is ready again.

ValdemarGr commented 9 months ago

I have not verified if metals can emit workspace/reload, that would be nice, then the BSP server could retains its JVM caches.

ValdemarGr commented 8 months ago

Newer versions of metals will not restart the app on change