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

supertypes returns empty list #3205

Open
nalbion opened this issue Jun 27, 2024 · 1 comment
Open

supertypes returns empty list #3205

nalbion opened this issue Jun 27, 2024 · 1 comment

Comments

@nalbion
Copy link

nalbion commented Jun 27, 2024

I'm able to get typeHierarchy/subtypes returning a subclass, but typeHierarchy/supertypes returns an empty list for package_a.Foo:

 package package_a;

public interface FooInterface {
    void foo(String bar);
}

public class BaseFoo implements FooInterface {
    public void foo(String bar) {
        System.out.println("BaseFoo " + bar);
    }
}

public class Foo extends BaseFoo {
	public Foo() {
		System.out.println("Foo() in package_a");	
	}

	public Foo(String bar) {
		System.out.println("Foo " + bar);
	}

	public void foo(String bar) {
		System.out.println("Foo " + bar);
	}
}
@nalbion
Copy link
Author

nalbion commented Jul 5, 2024

typeHierarchy/subtypes is also returning empty, even though textDocument/prepareTypeHierarchy works

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

No branches or pull requests

1 participant