toLsp4j

fun CursorPosition.toLsp4j(): Position

Return

this position as an LSP4J Position


fun Completion.toLsp4j(): CompletionItem

Return

this completion as an LSP4J CompletionItem


fun HoverInfo.toLsp4j(): Hover

Return

this hover information as an LSP4J Hover


fun TextPatch.toLsp4j(): TextEdit

Return

this patch as an LSP4J TextEdit


fun SimpleDiagnostic.toLsp4j(text: String): Diagnostic

Return

this diagnostic as an LSP4J Diagnostic

Parameters

text

the text of the document, used to convert offsets to positions