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

Open implementation instead of declaration in interface when using open-declaration #15

Open
addiks opened this issue Jan 20, 2018 · 0 comments

Comments

@addiks
Copy link
Owner

addiks commented Jan 20, 2018

When the user currently uses the open-declaration function on the method of an interface the method-declaration in that interface will be opened. Most of the time that is not what the user actually intends. What the user actually intends is to open the implementation of that method.

The plugin should detect the case when the user uses open-declaration with the method of an interface and instead looks for implementations of that interface-method. If it finds only one implementation it should open that implementation. If it finds multiple implementations, it should ask the user in a new window what implementation (including the declaration in the interface) it should open.

If the user actually intends to open the method-declaration in the interface and the implementation opens instead, he can still uses open-declaration on the interface-name in the implementing class.

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

No branches or pull requests

1 participant