-
Notifications
You must be signed in to change notification settings - Fork 401
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
Conversation
...ipse.jdt.ls.core/src/org/eclipse/jdt/ls/core/internal/managers/InvisibleProjectImporter.java
Show resolved
Hide resolved
...ipse.jdt.ls.core/src/org/eclipse/jdt/ls/core/internal/managers/InvisibleProjectImporter.java
Show resolved
Hide resolved
There was a problem hiding this 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.
...ipse.jdt.ls.core/src/org/eclipse/jdt/ls/core/internal/managers/InvisibleProjectImporter.java
Show resolved
Hide resolved
...ipse.jdt.ls.core/src/org/eclipse/jdt/ls/core/internal/managers/InvisibleProjectImporter.java
Show resolved
Hide resolved
...ipse.jdt.ls.core/src/org/eclipse/jdt/ls/core/internal/managers/InvisibleProjectImporter.java
Outdated
Show resolved
Hide resolved
...ipse.jdt.ls.core/src/org/eclipse/jdt/ls/core/internal/managers/InvisibleProjectImporter.java
Show resolved
Hide resolved
- 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: sheche <[email protected]>
Signed-off-by: sheche <[email protected]>
Signed-off-by: Sheng Chen <[email protected]>
3720f3d
to
2fed268
Compare
There was a problem hiding this 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.
Another enhancement for inferring the source roots of the invisible projects.
This pre-inference behavior plus the lazy inference, should improve the getting start experience for the unmanaged folders.
Signed-off-by: sheche [email protected]