Skip to content

Commit

Permalink
Unsupported Operation Exception in Language Servers - Fixes #530 (#531)
Browse files Browse the repository at this point in the history
* Update JakartaLanguageServer.java
Fixes UnsupportedOperationException
Change in contribution year
  • Loading branch information
gilbysunil14 authored Oct 30, 2024
1 parent 2ca7a71 commit 884ea0b
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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;
Expand Down Expand Up @@ -231,4 +232,10 @@ public CompletableFuture<JakartaJavaFileInfo> 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.
}
}

0 comments on commit 884ea0b

Please sign in to comment.