Handler for $ messages. These messages are ignored.

This commit is contained in:
BoykoAlex
2016-12-12 20:03:58 -05:00
parent 353d3a0ec2
commit 310dd208d0
2 changed files with 27 additions and 1 deletions

View File

@@ -0,0 +1,26 @@
package org.springframework.ide.vscode.commons.languageserver.util;
import org.eclipse.lsp4j.jsonrpc.services.JsonNotification;
import org.eclipse.lsp4j.jsonrpc.services.JsonSegment;
/**
* Handler for $ messages. They should/could be ignored since they depend on the
* implementation capabilities on the server.
*
* @author Alex Boyko
*
*/
@JsonSegment("$")
public interface ServiceNotificationsClient {
@JsonNotification
default void setTraceNotification(Object param) {
// Ignore Message
}
@JsonNotification
default void logTraceNotification(Object param) {
// Ignore Message
}
}

View File

@@ -35,7 +35,7 @@ import org.springframework.ide.vscode.commons.util.text.TextDocument;
* here so we can try to keep the subclass itself more 'clutter free' and focus on
* what its really doing and not the 'wiring and plumbing'.
*/
public abstract class SimpleLanguageServer implements LanguageServer, LanguageClientAware {
public abstract class SimpleLanguageServer implements LanguageServer, LanguageClientAware, ServiceNotificationsClient {
private static final Logger LOG = Logger.getLogger(SimpleLanguageServer.class.getName());