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

Search more folders to infer source roots for invisible projects #2176

Merged
merged 5 commits into from
Aug 8, 2022

Conversation

jdneo
Copy link
Contributor

@jdneo jdneo commented Jul 26, 2022

Another enhancement for inferring the source roots of the invisible projects.

  • based on the source root inferred from the trigger file, do more search for other potential source roots.
  • if the source root is linked folder, search all direct child folders.
  • otherwise, search all the sibling folders.

This pre-inference behavior plus the lazy inference, should improve the getting start experience for the unmanaged folders.

Signed-off-by: sheche [email protected]

Copy link
Contributor

@rgrunber rgrunber left a comment

Choose a reason for hiding this comment

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

Overall the change works quite well, and discovers some additional folders immediately without needing to open the files.

- based on the source root inferred from the trigger file do more search.
- if the source root is linked folder, search all direct child folders.
- otherwise, search all the sibling folders.

Signed-off-by: sheche <[email protected]>
Signed-off-by: sheche <[email protected]>
Signed-off-by: Sheng Chen <[email protected]>
Copy link
Contributor

@rgrunber rgrunber left a comment

Choose a reason for hiding this comment

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

Feel free to squash and merge when ready.

@rgrunber rgrunber added this to the End August 2022 milestone Aug 5, 2022
@jdneo jdneo merged commit d4aa55a into eclipse-jdtls:master Aug 8, 2022
@jdneo jdneo deleted the cs/classpath-infer-1 branch August 8, 2022 01:27
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.

3 participants