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

Add ability to jump to source for functions and classes #2443

Merged
merged 5 commits into from
Mar 11, 2024

Conversation

patricklx
Copy link
Collaborator

@patricklx patricklx commented Aug 2, 2023

Description

this adds the action "goto source".
the behaviour is that it will call inspect on functions and classes which will show the source code of it.

It makes use of the existing function for dom node inspection. I only changed to name to be more generic (inspectJsValue)

this is ideal for going to a source of function or classes and set breakpoints for debugging

Screenshots

image

@patricklx patricklx marked this pull request as draft August 2, 2023 16:11
@patricklx patricklx force-pushed the add-inspect-value branch 2 times, most recently from f9f0159 to 16e1d4f Compare August 3, 2023 13:51
@patricklx

This comment was marked as outdated.

@patricklx patricklx marked this pull request as ready for review August 3, 2023 13:55
@patricklx patricklx changed the title jump to source for functions and classes instead of printing to console jump to source for functions and classes Aug 3, 2023
@patricklx patricklx force-pushed the add-inspect-value branch 2 times, most recently from b8048e3 to cfc3f57 Compare August 3, 2023 14:03
@patricklx patricklx force-pushed the add-inspect-value branch 2 times, most recently from 478e182 to cdb95b5 Compare February 26, 2024 13:22
@patricklx
Copy link
Collaborator Author

changed icon to a crosshair
image

@patricklx
Copy link
Collaborator Author

@RobbieTheWagner can you have a look?

@RobbieTheWagner
Copy link
Member

@patricklx sorry for the delay! This looks great, but could we please add some test coverage? I want to make sure everything merged in has robust tests, so we do not have regressions.

@RobbieTheWagner
Copy link
Member

Thank you for the PR @patricklx! This is a great feature.

@RobbieTheWagner RobbieTheWagner changed the title jump to source for functions and classes Add ability to jump to source for functions and classes Mar 11, 2024
@RobbieTheWagner RobbieTheWagner merged commit 2f984a9 into emberjs:main Mar 11, 2024
15 checks passed
@patricklx patricklx deleted the add-inspect-value branch March 12, 2024 08:14
@github-actions github-actions bot mentioned this pull request Apr 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants