lsp: Freeze when many editing a buffer in a short time
### Version

_No response_

### Environment

_No response_

### Category

Major — The software does not fulfill the task it is designed for.

### Steps to Reproduce

1. Start editor with the LSP server
2. Many edits in a short time

### Detailed Description

Maybe it was blocked when writing to the LSP server.