From 052f0542eed373f42c1c4552df74ec2fda71aaec Mon Sep 17 00:00:00 2001 From: Jiaaming <2455951489@qq.com> Date: Mon, 29 Jul 2024 14:42:50 +0800 Subject: [PATCH] override language server setTrace --- .../java/com/microsoft/gradle/GradleLanguageServer.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gradle-language-server/src/main/java/com/microsoft/gradle/GradleLanguageServer.java b/gradle-language-server/src/main/java/com/microsoft/gradle/GradleLanguageServer.java index 1a7e8a460..0edaaf8b3 100644 --- a/gradle-language-server/src/main/java/com/microsoft/gradle/GradleLanguageServer.java +++ b/gradle-language-server/src/main/java/com/microsoft/gradle/GradleLanguageServer.java @@ -27,6 +27,7 @@ import org.eclipse.lsp4j.SemanticTokensServerFull; import org.eclipse.lsp4j.SemanticTokensWithRegistrationOptions; import org.eclipse.lsp4j.ServerCapabilities; +import org.eclipse.lsp4j.SetTraceParams; import org.eclipse.lsp4j.TextDocumentSyncKind; import org.eclipse.lsp4j.TextDocumentSyncOptions; import org.eclipse.lsp4j.WorkspaceFolder; @@ -123,4 +124,9 @@ public WorkspaceService getWorkspaceService() { public void connect(LanguageClient client) { this.gradleServices.connect(client); } + + @Override + public void setTrace(SetTraceParams params) { + // Override to avoid exception throw by the default implementation + } }