Skip to content

Commit

Permalink
Explicitly ignore $/setTraceNotification to avoid warning log in Theia
Browse files Browse the repository at this point in the history
camel-tooling#226

Signed-off-by: Aurélien Pupier <apupier@redhat.com>
  • Loading branch information
apupier committed Apr 11, 2019
1 parent c15bb4c commit 18f8272
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
import org.eclipse.lsp4j.MessageType;
import org.eclipse.lsp4j.ServerCapabilities;
import org.eclipse.lsp4j.TextDocumentSyncKind;
import org.eclipse.lsp4j.jsonrpc.services.JsonNotification;
import org.eclipse.lsp4j.services.LanguageClient;
import org.eclipse.lsp4j.services.LanguageClientAware;
import org.eclipse.lsp4j.services.LanguageServer;
Expand Down Expand Up @@ -115,4 +116,9 @@ public LanguageClient getClient() {
return client;
}

@JsonNotification("$/setTraceNotification")
public void setTraceNotification(Object object) {
// Ignore to avoid warning message logged when using VSCode/Theia clients
}

}

0 comments on commit 18f8272

Please sign in to comment.