Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ Fixed issues: <https://github.com/eclipse-lsp4j/lsp4j/milestone/37?closed=1>

Breaking API changes:

* Type of `TextDocumentEdit.edits` changed from `List<TextEdit>` to `List<Either<TextEdit, SnippetTextEdit>>`
* Type of `Diagnostic.message` changed from `String` to `Either<String, MarkupContent>`
* Type of `DocumentFilter.pattern` changed from `String` to `Either<String, RelativePattern>`
* Type of `NotebookDocumentFilter.pattern` changed from `String` to `Either<String, RelativePattern>`

japicmp report: <https://download.eclipse.org/lsp4j/builds/main/japicmp-report/>

### [v0.24.0 (Jan 2025)](https://github.com/eclipse-lsp4j/lsp4j/releases/tag/v0.24.0)
Expand Down
54 changes: 54 additions & 0 deletions org.eclipse.lsp4j/src/main/java/org/eclipse/lsp4j/ApplyKind.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
/******************************************************************************
* Copyright (c) 2025 1C-Soft LLC 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
* http://www.eclipse.org/legal/epl-2.0,
* or the Eclipse Distribution License v. 1.0 which is available at
* http://www.eclipse.org/org/documents/edl-v10.php.
*
* SPDX-License-Identifier: EPL-2.0 OR BSD-3-Clause
******************************************************************************/
package org.eclipse.lsp4j;

import org.eclipse.lsp4j.jsonrpc.Draft;

/**
* Defines how values from a set of defaults and an individual item will be merged.
* <p>
* Since 3.18.0
*/
@Draft
public enum ApplyKind {
/**
* The value from the individual item (if provided and not {@code null}) will be
* used instead of the default.
*/
Replace(1),

/**
* The value from the item will be merged with the default.
* <p>
* The specific rules for merging values are defined against each field
* that supports merging.
*/
Merge(2);

private final int value;

ApplyKind(final int value) {
this.value = value;
}

public int getValue() {
return value;
}

public static ApplyKind forValue(final int value) {
ApplyKind[] allValues = ApplyKind.values();
if (value < 1 || value > allValues.length) {
throw new IllegalArgumentException("Illegal enum value: " + value);
}
return allValues[value - 1];
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
/******************************************************************************
* Copyright (c) 2025 1C-Soft LLC 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
* http://www.eclipse.org/legal/epl-2.0,
* or the Eclipse Distribution License v. 1.0 which is available at
* http://www.eclipse.org/org/documents/edl-v10.php.
*
* SPDX-License-Identifier: EPL-2.0 OR BSD-3-Clause
******************************************************************************/
package org.eclipse.lsp4j;

import org.eclipse.lsp4j.jsonrpc.Draft;

/**
* Code action tags are extra annotations that tweak the behavior of a code action.
* <p>
* Since 3.18.0
*/
@Draft
public enum CodeActionTag {
/**
* Marks the code action as LLM-generated.
*/
LLMGenerated(1);

private final int value;

CodeActionTag(int value) {
this.value = value;
}

public int getValue() {
return value;
}

public static CodeActionTag forValue(int value) {
CodeActionTag[] allValues = CodeActionTag.values();
if (value < 1 || value > allValues.length) {
throw new IllegalArgumentException("Illegal enum value: " + value);
}
return allValues[value - 1];
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
/**
* Describes how an inline completion request was triggered.
* <p>
* @since 3.18.0
* Since 3.18.0
*/
@Draft
public enum InlineCompletionTriggerKind {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
******************************************************************************/
package org.eclipse.lsp4j;

import org.eclipse.lsp4j.jsonrpc.Draft;

public enum MessageType {

/**
Expand All @@ -31,7 +33,15 @@ public enum MessageType {
/**
* A log message.
*/
Log(4);
Log(4),

/**
* A debug message.
* <p>
* Since 3.18.0
*/
@Draft
Debug(5);

private final int value;

Expand Down
Loading
Loading