-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Code navigation should support self navigating to the class defintion #1637
Comments
👍 |
@hmleal we track feature requests by reaction upvotes, so please do that if you would like your vote to be counted. |
@brettcannon Thanks ;) |
@jarshwah - is this something you expect and go to def on any self goes to the respective class definition - not just when it is function argument. |
Yes, that’d be extremely useful!
…On Sat, 13 Oct 2018 at 04:49, Mikhail Arkhipov ***@***.***> wrote:
@jarshwah <https://github.com/jarshwah> - is this something you expect
[image: image]
<https://user-images.githubusercontent.com/12820357/46885249-4d808d80-ce0c-11e8-81a2-177d6794ec06.png>
and go to def on any self goes to the respective class definition - not
just when it is function argument.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1637 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAhBm6oGkK33ubbdWrYbkYqQkwwS5xTLks5ukNYmgaJpZM4T2DRW>
.
|
OK, that is the way I implemented it. :-) |
@MikhailArkhipov this is done in upstream, no? Can we then close off this issue? |
@jarshwah yep, I just verified this is available publicly. |
Environment data
Actual behavior
When command clicking on the
self
argument of a method, the code does not navigate anywhere. CMD+Hover overself
will show the current method in the preview window.Expected behavior
(Wanted behaviour rather than expected)
When CMD+Click on the
self
argument to a method, the cursor should navigate to the class definition. When CMD+Hover over theself
argument, the class definition should be shown in the preview window.This will help with very long class definitions where many classes exist in the same file, such as some django projects having large
models.py
files (an anti-pattern, but one in very wide use).Otherwise, a "simple" way to navigate to the current class definition would be nearly as good.
The text was updated successfully, but these errors were encountered: