From 884ea0b81c140a81275cacf4f08fb80fb33fea22 Mon Sep 17 00:00:00 2001 From: gilbysunil14 Date: Wed, 30 Oct 2024 21:41:20 +0530 Subject: [PATCH] Unsupported Operation Exception in Language Servers - Fixes #530 (#531) * Update JakartaLanguageServer.java Fixes UnsupportedOperationException Change in contribution year --- .../eclipse/lsp4jakarta/ls/JakartaLanguageServer.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/jakarta.ls/src/main/java/org/eclipse/lsp4jakarta/ls/JakartaLanguageServer.java b/jakarta.ls/src/main/java/org/eclipse/lsp4jakarta/ls/JakartaLanguageServer.java index d27c80de..fb4b6075 100644 --- a/jakarta.ls/src/main/java/org/eclipse/lsp4jakarta/ls/JakartaLanguageServer.java +++ b/jakarta.ls/src/main/java/org/eclipse/lsp4jakarta/ls/JakartaLanguageServer.java @@ -1,5 +1,5 @@ /******************************************************************************* -* Copyright (c) 2020, 2023 IBM Corporation and others. +* Copyright (c) 2020, 2024 IBM Corporation and others. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v. 2.0 which is available at @@ -24,6 +24,7 @@ import org.eclipse.lsp4j.InitializeResult; import org.eclipse.lsp4j.InitializedParams; import org.eclipse.lsp4j.ServerCapabilities; +import org.eclipse.lsp4j.SetTraceParams; import org.eclipse.lsp4j.jsonrpc.CompletableFutures; import org.eclipse.lsp4j.services.LanguageClient; import org.eclipse.lsp4j.services.LanguageServer; @@ -231,4 +232,10 @@ public CompletableFuture getJavaFileInfo(JakartaJavaFileInf public JakartaCapabilityManager getCapabilityManager() { return capabilityManager; } + + @Override + public void setTrace(SetTraceParams params) { + // to avoid having UnsupportedOperationException, the method is implemented + // FIXME : implement the behavior of this method. + } }