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

Constructor invocation completion proposal improvements #1069

Conversation

datho7561
Copy link

  • Use expected types to infer constructor type (instead of existing logic which duplicates the logic of expected types)
  • Use IType and IMethod when creating constructor invocation proposals, to avoid needing to create bindings
  • Handle suggesting the default constructor when an IType has no explicit constructors
  • Modify the content of the completion proposals to match what's expected by the tests

- Use expected types to infer constructor type
  (instead of existing logic which duplicates the logic of expected types)
- Use `IType` and `IMethod` when creating constructor invocation proposals,
  to avoid needing to create bindings
- Handle suggesting the default constructor when an `IType` has no
  explicit constructors
- Modify the content of the completion proposals to match what's
  expected by the tests

Signed-off-by: David Thompson <davthomp@redhat.com>
@datho7561
Copy link
Author

8 new passing tests

@datho7561 datho7561 merged commit 2470931 into eclipse-jdtls:dom-with-javac Dec 18, 2024
5 of 6 checks passed
@datho7561 datho7561 deleted the dom-with-javac-cic-completion-use-expected-type branch December 18, 2024 18:16
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.

1 participant