Skip to content

Inject a bean completion proposal #1196

Closed

Description

@BoykoAlex

Inject a bean via "member" completion proposal. See https://blog.jetbrains.com/idea/2024/02/intellij-idea-2024-1-eap-5/#enhanced-bean-completion-and-autowiring-for-spring

For example:

@RestController
class RestApi {
String hello() {
  return repo<^>
}

Should propose beans with id's/types starting with repo for example. Completion proposal application would add a field, a constructor injected parameter, create the constructor if necessary or perhaps make the field autowired if constructors are created and none look like an autowired constructor.

Activity

  1. self-assigned this
    on Feb 23, 2024
  2. added
    for: eclipse
    for: vscode
    and removed on Feb 26, 2024
  3. added this to the 4.22.1.RELEASE milestone on Feb 26, 2024
  4. BoykoAlex commented on Aug 1, 2024

    @BoykoAlex
    ContributorAuthor

    @vudayani is working on this feature

  5. martinlippert commented on Sep 30, 2024

    @martinlippert
    Member

    Since we are waiting for necessary changes to land in OpenRewrite, I am moving this back to the Backlog instead of shifting this from release to release. As soon as we can adopt those changes in OpenRewrite, we will continue to polish and release this feature.

  6. BoykoAlex commented on Mar 3, 2025

    @BoykoAlex
    ContributorAuthor

    Lets close this as the PR has been merged, multiple follow up issues created and some fixed already

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

for: eclipsefor: vscodetheme: code completiontype: enhancement

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions