I've created an LSP server using Xtext, see https://eclipse.dev/Xtext/documentation/340_lsp_support.html
When hovering text, this results in and endless communication loop as:
- Hovering sends a document change to the server
- The server publishes new diagnostics based on the document change
- The client updates its diagnostics and 'detects a new hover request', etc.
I think that the hover should not send the document change. It should assume that the server is up-to-date.