implements PLN-0034 lsp inline hint transport contract
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
package p.studio.lsp.dtos;
|
||||
|
||||
import java.util.Objects;
|
||||
|
||||
public record LspInlineHintDTO(
|
||||
LspRangeDTO anchor,
|
||||
String label,
|
||||
String category) {
|
||||
|
||||
public LspInlineHintDTO {
|
||||
anchor = Objects.requireNonNull(anchor, "anchor");
|
||||
label = Objects.requireNonNull(label, "label").trim();
|
||||
category = Objects.requireNonNull(category, "category").trim();
|
||||
if (label.isBlank()) {
|
||||
throw new IllegalArgumentException("label cannot be blank");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user