implements PLN-0034 lsp inline hint transport contract

This commit is contained in:
2026-04-03 11:23:01 +01:00
parent 08f28b4a7d
commit 3e8f53dc16
10 changed files with 178 additions and 1 deletions
@@ -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");
}
}
}