-
Notifications
You must be signed in to change notification settings - Fork 5
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
Inline "Navigating to parent method" #101
Comments
Thanks for reporting! I agree it would be better if it didn't create an additional line, but is not something that Metals control for lenses.
This currently shows references to the symbol, so we can't unfortunately reuse that. The alternative is to turn off the new code lenses and use the command via shortcut, which should work the same. I am also thinking that maybe we could use the decoration protocol, which has more flexibility, but it will be more complicated. |
I think it would be nice to have this available in the command palette. I have also tried several times this week to execute a "Go to super method" or "Go to parent" command. I would lean slightly towards naming it "Go to super method" |
Describe the solution you'd like
We now have "Navigating to parent method" in Metals. This is great.
But unfortunately it works by adding an additional line above the current definition, which takes up space and is somewhat distracting.
Describe alternatives you've considered
When referencing a value or method, it's possible to navigate to the definition through Ctrl+hover+click. However when doing the same on the actual implementation of a method, this has no effect (as it's already there).
It would make sense to instead use this for navigating to parent method (if existing). This retains the mechanics (and semantics) of Ctrl+hover+click, and would be stylistically less intrusive.
The text was updated successfully, but these errors were encountered: