Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged

Conversation

martinlippert
Copy link
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
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:master Dec 11, 2023
2 checks passed
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.

None yet

2 participants