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

Inject a bean completion proposal #1196

Open
BoykoAlex opened this issue Feb 23, 2024 · 0 comments
Open

Inject a bean completion proposal #1196

BoykoAlex opened this issue Feb 23, 2024 · 0 comments
Assignees
Labels
for: eclipse something that is specific for Eclipse for: vscode something that is specific for VSCode theme: code completion type: enhancement

Comments

@BoykoAlex
Copy link
Contributor

BoykoAlex commented Feb 23, 2024

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.

@BoykoAlex BoykoAlex self-assigned this Feb 23, 2024
@martinlippert martinlippert added for: eclipse something that is specific for Eclipse for: vscode something that is specific for VSCode theme: code completion and removed status: waiting-for-triage labels Feb 26, 2024
@martinlippert martinlippert added this to the 4.22.1.RELEASE milestone Feb 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
for: eclipse something that is specific for Eclipse for: vscode something that is specific for VSCode theme: code completion type: enhancement
Projects
None yet
Development

No branches or pull requests

2 participants