Skip to content

let LSJavaCompletionProposal implement extension interface to enable linked editing mode - #881

Merged
martinlippert merged 2 commits into
eclipse-lsp4e:masterfrom
martinlippert:fix-for-java-linked-editing-mode
Dec 11, 2023
Merged

martinlippert merged 2 commits into
eclipse-lsp4e:masterfrom
martinlippert:fix-for-java-linked-editing-mode

Conversation

@martinlippert

Copy link
Copy Markdown
Contributor

Accepting a language server completion proposal that is defined as a snippet in the Java source editor does not trigger the linked editing mode.

The problem is that the implementation of the LSJavaCompletionProposal is somewhat limited and doesn't implement the ICompletionProposalExtension2 yet, so that the completion proposal doesn't get all the necessary information for entering the linked editing mode.

This PR adds the necessary implementation of ICompletionProposalExtension2 to the LSJavaCompletionProposal and the linked editing mode is triggered nicely when inside the Java source file editor.

…linked editing mode to work

Change-Id: I11755f126f9d851b316680a4ca4342fcd6bce36f
Change-Id: I7b3a7524bdaffe1bb46482d03b1be534eccfbae1
@mickaelistria

Copy link
Copy Markdown
Contributor

@martinlippert I don't use the LSP4E/JDT bindings, and AFAIK, it's not part of some stack I'm supposed to support for my employer. So I don't think I'll even try to review here; I trust you're doing the best thing as you're more expert than me on this particular area.

@martinlippert
martinlippert merged commit 680b765 into eclipse-lsp4e:master Dec 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants