eclipse / lsp4e

Language Server Protocol support in Eclipse IDE
Eclipse Public License 2.0
65 stars 54 forks source link

Cancel support for operations #236

Open angelozerr opened 2 years ago

angelozerr commented 2 years ago

When an operation is processed several times (ex : user type several characters, some operations are done like codeLens). It should be nice to cancel:

For hover when user hove something and language server takes some times and user move the mouse, in this case the hover request must be canceled in order to language server stops the process.

IMHO I think it will improve the performance when some process could take time on language server and language server will be more responsive.

rubenporras commented 2 years ago

Also if a context assist request is send, it should be cancelled when the cursor is moved.