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

Fix for ls not suggesting items from supers and interaces #180

Merged
merged 3 commits into from
Jun 16, 2024
Merged

Conversation

zznty
Copy link
Collaborator

@zznty zznty commented Jun 10, 2024

Fixes #174

For some reason ClassNode.getMethods() returns only declared methods but ClassNode.getMethods(String name) does search across all supers and interfaces. With this pr, ls would collect props, fields and methods recusively from all supers and implemented interfaces.

@zznty zznty requested a review from brachy84 June 12, 2024 06:38
@brachy84
Copy link
Member

Fields and methods of all super classes should be added. And i dont like the use of streams here. It could just be a list you pass as a param in the collect methods

brachy84 added 2 commits June 16, 2024 20:02
# Conflicts:
#	src/main/java/net/prominic/groovyls/compiler/util/GroovyASTUtils.java
@brachy84 brachy84 merged commit 8efb64d into master Jun 16, 2024
1 check passed
@brachy84 brachy84 deleted the 174 branch June 16, 2024 18:19
@WaitingIdly WaitingIdly added the lang-server Issues and PRs relating to the Language Server label Aug 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lang-server Issues and PRs relating to the Language Server
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Language Server doesn't suggest parent class completions
3 participants