SolaWing / xcode-build-server

a build server protocol implementation for integrate xcode with sourcekit-lsp
MIT License
283 stars 16 forks source link

Question: is LSP restart required after updating `buildServer.json`? #46

Closed wojciech-kulik closed 2 months ago

wojciech-kulik commented 2 months ago

I wonder if it's required to restart LSP after xcode-build-server config is called? In my case, user may want to change the scheme, it will require updating the config, but is it necessary to also restart LSP after that?

SolaWing commented 2 months ago

Under normal circumstances, you do not need to restart the LSP. xcode-build-server will monitor changes in the buildServer.json and flags files and notify the LSP of the updated flags. However, if you switch to a scheme that has not been compiled before, you need to trigger a compilation and update flags.