Skip to content

Commit

Permalink
Fix Unsupported Operation Exception in Language Server (#854)
Browse files Browse the repository at this point in the history
Updated the method setTrace() as empty in the interface LanguageServer.

Fixes #853
  • Loading branch information
gilbysunil14 authored Oct 30, 2024
1 parent 7ce4f59 commit 84c12a6
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,9 @@ default void cancelProgress(WorkDoneProgressCancelParams params) {
*/
@JsonNotification("$/setTrace")
default void setTrace(SetTraceParams params) {
throw new UnsupportedOperationException();
/**
* The method default behaviour was to throw UnsupportedOperationException
* Keeping as empty to avoid it.
*/
}
}

0 comments on commit 84c12a6

Please sign in to comment.