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

Feature: automatically pull token definitions in the codebase into the context when the token is selected. #51

Closed
nmnduy opened this issue Mar 12, 2024 · 1 comment

Comments

@nmnduy
Copy link
Contributor

nmnduy commented Mar 12, 2024

It would be nice to have the class/function, etc. definitions pulled into the context when we select some code.

Features:

  • When we select some code, find the definition of the class, functions, etc. in the codebase and put it into the context. Might require an external tool to achieve this.
  • Make this feature optional.

Additional thoughts:

  • If the function body is too large, maybe we should reduce the content of the function.
  • Add a parameter to limit how many class/function definitions to include in the context.
@dpayne
Copy link
Owner

dpayne commented Apr 25, 2024

This would require a lot of work and I am not sure it makes sense in this plug. The goal here was something fairly simple.

It would make sense to integrate as part of something larger that is already parsing the code (e.g. coc.nvim).

@dpayne dpayne closed this as not planned Won't fix, can't repro, duplicate, stale Apr 25, 2024
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

2 participants