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
Send notification to the clients after importing projects #1456
Conversation
@@ -58,6 +58,14 @@ | |||
@JsonNotification("language/actionableNotification") | |||
void sendActionableNotification(ActionableNotification notification); | |||
|
|||
/** | |||
* The event notification is sent from a server to a client to tell the | |||
* client that some certain events happen at server side, like: classpath updated. |
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.
The event notification is sent from a server to a client to notify the client certain events happened on the server side, eg. classpath was updated, projects were imported
@@ -118,6 +123,9 @@ public IStatus runInWorkspace(IProgressMonitor monitor) throws CoreException { | |||
} catch (CoreException e) { | |||
return new Status(Status.ERROR, IConstants.PLUGIN_ID, "Importing projects failed.", e); | |||
} | |||
List<URI> projectUris = ProjectCommand.getAllJavaProjects(); |
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.
this doesn't include pom projects for instance
|
||
public class ClasspathUpdateHandler implements IElementChangedListener { | ||
|
||
public static final String CLASSPATH_UPDATED_NOTIFICATION = "__CLASSPATH_UPDATED__"; |
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.
I wonder if someone else will be broken by that
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.
Hmm, Not sure about that.
At least for the VS Code side, the client itself handles the logic of receiving the notification, the exposed event is still the same.
@@ -165,6 +173,14 @@ public void sendActionableNotification(ActionableNotification notification) { | |||
client.sendActionableNotification(notification); | |||
} | |||
|
|||
/** | |||
* Send a notification to the client when some certain events happen. | |||
* @See {@link org.eclipse.jdt.ls.core.internal.EventType} for all the event types. |
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.
all possible event types
a42228b
to
4916e5e
Compare
Signed-off-by: Sheng Chen <sheche@microsoft.com>
4916e5e
to
ea561bd
Compare
require: redhat-developer/vscode-java#1476
Signed-off-by: Sheng Chen sheche@microsoft.com