Skip to content

[bean completion proposals] need to polish result when invoking autowire bean completion inside of constructor #1484

Closed

Description

@martinlippert

I have a standard constructor and I am trying to use the autowire bean completion proposals:

public MyController() {
    this.<*>
}

The proposals show up nicely. However, the result of applying the proposal could be slightly improved:

public MyController(TestBean1 testBean1) {
    this.testBean1

    this.testBean1 = testBean1;}

Here is what could be improved:

public MyController(TestBean1 testBean1) {
    this.testBean1                   <== this line is not necessary in this case

    this.testBean1 = testBean1;}      <==   the closing bracket should be on the next line and the cursor should be at the end of this line I think

Activity

  1. added this to the 4.29.0.RELEASE milestone on Feb 27, 2025
  2. BoykoAlex commented on Feb 28, 2025

    @BoykoAlex
    Contributor

    Should work better now with 1238fec
    (I suspect there are might be cases when bean completions are shown but shouldn't be shown TBD)

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

Metadata

Metadata

Assignees

Labels

for: vscodetheme: code completiontype: enhancement

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions