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

[CLOSED] Use Tern jump-to-definition search for quickeditt #3596

Open
core-ai-bot opened this issue Aug 29, 2021 · 9 comments
Open

[CLOSED] Use Tern jump-to-definition search for quickeditt #3596

core-ai-bot opened this issue Aug 29, 2021 · 9 comments

Comments

@core-ai-bot
Copy link
Member

Issue by jeffkenton
Wednesday May 15, 2013 at 21:56 GMT
Originally opened as adobe/brackets#3847


Current changes:

  • Use tern's jump-to-definition search for QuickEdit.
  • Change jump-to-definition to just select function name and place cursor at the end of the name to match what other editors do.

Future plans:

  • support finding var definitions in QuickEdit.
  • don't fall back to old QuickEdit search when tern knows a symbol is a builtin.
  • get tern to provide whole function extent, including function body and JSDoc style comments, if possible.

Note that the futures depend on improvements in tern.


jeffkenton included the following code: https://github.com/adobe/brackets/pull/3847/commits

@core-ai-bot
Copy link
Member Author

Comment by njx
Thursday May 16, 2013 at 21:24 GMT


Reviewing.

@core-ai-bot
Copy link
Member Author

Comment by njx
Thursday May 16, 2013 at 21:56 GMT


Review complete. It might be worth sending an email out to the team to discuss the "jump-to-definition-provider" issue...what I'm suggesting might be overkill, but I do feel like the approach in this pull request is a little too hacky. Maybe there's some better middle ground that I haven't thought of.

@core-ai-bot
Copy link
Member Author

Comment by njx
Friday May 17, 2013 at 17:59 GMT


Updates look fine. We can merge once the cross-dependency is addressed (either way)--also, looks like this needs a merge with master.

@core-ai-bot
Copy link
Member Author

Comment by njx
Friday May 17, 2013 at 18:00 GMT


Oops, I meant that it looks like there's a Travis failure, but it's not related to your code (@dangoor, it looks like a failure in the node package installation tests). Let's see if it fails again next time you push.

@core-ai-bot
Copy link
Member Author

Comment by jeffkenton
Friday May 17, 2013 at 19:25 GMT


I've pushed everything that I have seen requested. Let me know if I missed anything. Thanks.

@core-ai-bot
Copy link
Member Author

Comment by njx
Friday May 17, 2013 at 20:49 GMT


Looks good--just one last case I caught.

@core-ai-bot
Copy link
Member Author

Comment by jeffkenton
Monday May 20, 2013 at 12:00 GMT


We could check if "functions" is empty. Do you want to fall back to the other search in that case? I'm not sure if that would be worthwhile or not.

@core-ai-bot
Copy link
Member Author

Comment by jeffkenton
Monday May 20, 2013 at 12:24 GMT


Pushed the requested change -- now checking for empty "functions".

@core-ai-bot
Copy link
Member Author

Comment by njx
Monday May 20, 2013 at 16:15 GMT


Looks good, thanks. Merging

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