eclipse / lsp4mp

Technology lsp4mp
Eclipse Public License 2.0
22 stars 27 forks source link

Cancel delegated java/* requests #442

Open angelozerr opened 5 months ago

angelozerr commented 5 months ago

When a Java file is opened, the MicroProfile LS delegate codeAction, codeLens, completion LSP request to an external Java component (JDT, IntelliJ).

When the LSP client cancel the codeAction, completion, codeLens request to the MicroProfile LS, it doesn't cancel the future which consume the external component.

In otherwise, LSP client send this request:

[Trace - 12:54:18] Sending request 'textDocument/codeAction - (233)'.

The MicroProfile LS delegate the request to the external java component:

[Trace - 12:54:18] Received request 'microprofile/java/codeAction - (208)'

When 'textDocument/codeAction ' future is cancelled, it doesn't cancel the 'microprofile/java/codeAction ' future processed by the external Java component.