Is a restart needed after a change to config.json?

If sourcekit-lsp is already running and config.json is changed by the editor, must an editor restart sourcekit-lsp to apply the new changes or does sourcekit-lsp detect and apply such changes on its own?

I couldn’t find this in the documentation or here in the forum.

Thank you!

Yes, changes to config.json require a restart of SourceKit-LSP. I agree that this should probably be documented. If you would like to open a PR, that would be very welcome.

Edit: Just opened a PR myself :wink: Add comment that SourceKit-LSP needs to be restarted when configuration file is modified by ahoppen · Pull Request #2349 · swiftlang/sourcekit-lsp · GitHub

1 Like

Thank you for your reply and for the PR!

And I suppose that I also need to restart when the default options passed via initialization options were changed by the user? As far as I can see, there’s no (default) way to update the init options.