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

Replace DirectoriesScope with IncrementalGlobalSearchScope #1925

Merged
merged 3 commits into from
May 24, 2024

Conversation

ting-yuan
Copy link
Collaborator

No description provided.

@ting-yuan ting-yuan requested a review from neetopia May 24, 2024 18:35

fun addAll(files: Collection<VirtualFile>) = this.files.addAll(files)

override fun contains(file: VirtualFile): Boolean = file in files
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does this work? the virtualFiles we have in this class during the initialization phase are directories, do you need to manually walk the directories and add all files into the files property of this class?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

collectVirtualFilesByRoots in the above walks the directories and returns only files.

@ting-yuan ting-yuan merged commit 2e6bacc into google:main May 24, 2024
3 checks passed
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

Successfully merging this pull request may close these issues.

2 participants