-
Notifications
You must be signed in to change notification settings - Fork 449
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
Support add/remove imported projects #3398
Support add/remove imported projects #3398
Conversation
Some follow-ups per the online meeting:
I'll share the result after finishing those tests. |
I cloned this repo:
Ok, it turns out the answer is simple. Picking Eclipse project is not supported now, because currently we only registered Maven and Gradle. (See: Lines 75 to 84 in 86bf3ae
It should be fine to add Eclipse( |
- Reuse the 'BuildFilesSelector' and enable change the imported projects after the activation finishes. Signed-off-by: Sheng Chen <[email protected]>
00b12cf
to
5d4d6b5
Compare
@testforstephen Updated. Now there is one case that cannot be handled. If a parent pom has been imported, and some submodules are not. Selecting the submodule will not import them. Looks like its due to the implementation of maven importer: https://github.com/eclipse-jdtls/eclipse.jdt.ls/blob/9de85d52b9a8b3d51ec60112646e043ff222533d/org.eclipse.jdt.ls.core/src/org/eclipse/jdt/ls/core/internal/managers/MavenProjectImporter.java#L177 Here it will find the project for the parent pom, thus, the submodule's pom will not be added to the Meanwhile, a new event is added for project deletion. microsoft/vscode-java-dependency#802 consumes that to make sure the explorer gets refreshed on project deletion. |
The workflow works better now. Just some issues with the state management.
|
Signed-off-by: Sheng Chen <[email protected]>
Should be fixed in the latest commit
I expect to thoroughly improve it in project manager extension later. Current state management looks a little bit fragmented which is not easy to tune.
Should be fixed in the appended commit in microsoft/vscode-java-dependency#802 |
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.
Works for me now.
requires eclipse-jdtls/eclipse.jdt.ls#2972