opencode
opencode copied to clipboard
feat: update config api
- added
update()to config class for updating & hot reloading the config on the fly - exposed through the hono api
This would be very helpful.
To be honest I did not check if I need ro reinitialize existing objects (like LSP etc) for the changes to be applied correctly.
Let's rip out the hot reload stuff and just expose the API for now @neriousy, @thdxr will have to figure out how to do the reload
You'd like me to remove the update function? @adamdotdevin or leave it as it is?
Cause the config is overwritten but existing services may not be hot reloaded. We could use a event based reload