eclipse-jdt / eclipse-jdt/eclipse.jdt.core

Insert trailing space after keyword and annotation completions

Open
#5,333 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
237
Forks
195
Avg merge
1d 12h
Merged PRs (30d)
47

Description

jdt.ls recently added a fix (eclipse-jdtls/eclipse.jdt.ls#3868) that inserts a trailing space after certain keyword completions (public, static, void, etc.) and annotation completions (like @Deprecated), so typing can continue smoothly without manually adding a space. This matches IntelliJ's behavior and was requested in redhat-developer/vscode-java#4401.

Right now, the completion text jdt.core returns for these doesn't include the trailing space — jdt.ls has to add it itself on the client side. It might make more sense for jdt.core's completion engine to include it natively, so any client benefits, not just jdt.ls.

Contributor guide

Open the contributing guide

Research direction

Start by tracing the jdt.core completion engine paths that produce keyword and annotation completion text, using the jdt.ls fix eclipse-jdtls/eclipse.jdt.ls#3868 as behavioral context. Verify that completions such as public, static, void, and @Deprecated include a trailing space, and add or update completion tests to confirm the returned text.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
developer-experience
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.