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

Skip build directory in indexing #456

Closed
scohen opened this issue Oct 31, 2023 · 5 comments · Fixed by #610
Closed

Skip build directory in indexing #456

scohen opened this issue Oct 31, 2023 · 5 comments · Fixed by #610
Assignees
Labels
good first issue Good for newcomers
Milestone

Comments

@scohen
Copy link
Collaborator

scohen commented Oct 31, 2023

Presently, we index both the deps and _build directory, so source files in both directories will show up with when you call find references. This raises two questions:

  1. Should we index the _build directory?
  2. Should we index the deps directory

I think the answer to the first question is definitely no.
I'm not so sure about if we should skip the deps directory. I've found it sometimes useful to see usages of a particular module in dependencies, but I can also understand that results from dependencies clutter the results.

This is a relatively easy fix; we just need to remove the build (and maybe the deps) directories from the list of indexable files generated.

@scohen scohen added the good first issue Good for newcomers label Oct 31, 2023
@milinddethe15
Copy link

Hi, I want to work on this issue. Assign it to me.

@zachallaun
Copy link
Collaborator

@milinddethe15 We don't generally use the assignment feature except for cases where the assignee has specific domain knowledge that makes it appropriate for them to handle it, e.g. a bug report for a feature I introduced may be assigned to me.

Commenting here expressing interest is sufficient! If you have any further questions, don't hesitate to reach out or to ask questions on Discord!

@scohen
Copy link
Collaborator Author

scohen commented Oct 31, 2023

( I assigned it to them anyways )

@Terbium-135
Copy link

What about making deps folder indexing a (user) option in the editor settings?

@scohen
Copy link
Collaborator Author

scohen commented Nov 2, 2023

What about making deps folder indexing a (user) option in the editor settings?

That's a larger change. Presently, Lexical doesn't have options, so we'd need to add the ability to have them.

My thoughts about deps are this. Usually, you're finding references to something you wrote, and in that instance, you're not going to get results from _deps.

On the other hand, it might be useful if you want to search for one of your dependency's modules to see where it appears in another dependency or to get an idea of how pervasive it is. In that case, searching deps is useful (I've done this a bunch with Jason).

@scohen scohen added this to the 0.5 Release milestone Nov 6, 2023
scohen added a commit that referenced this issue Feb 21, 2024
scohen added a commit that referenced this issue Feb 21, 2024
scohen added a commit that referenced this issue Feb 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
4 participants