Handler for $ messages. These messages are ignored.
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
}
|
||||
@@ -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());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user