Skip to content

Commit 84c12a6

Browse files
authored
Fix Unsupported Operation Exception in Language Server (#854)
Updated the method setTrace() as empty in the interface LanguageServer. Fixes #853
1 parent 7ce4f59 commit 84c12a6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

org.eclipse.lsp4j/src/main/java/org/eclipse/lsp4j/services/LanguageServer.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,9 @@ default void cancelProgress(WorkDoneProgressCancelParams params) {
122122
*/
123123
@JsonNotification("$/setTrace")
124124
default void setTrace(SetTraceParams params) {
125-
throw new UnsupportedOperationException();
125+
/**
126+
* The method default behaviour was to throw UnsupportedOperationException
127+
* Keeping as empty to avoid it.
128+
*/
126129
}
127130
}

0 commit comments

Comments
 (0)