public final class Hover extends Object
Constructor and Description |
---|
Hover() |
Modifier and Type | Method and Description |
---|---|
static CompletableFuture<String> |
getContent(Document doc,
int offset)
Resolves a hover information at the given document offset and returns its
content.
|
@NonNull public static CompletableFuture<String> getContent(@NonNull Document doc, int offset)
// Resolve a hover information at the given document offset...CompletableFuture
<String
> future =Hover
.getContent(doc, offset); // ...and get its contentString
content = future.getNow(null); assertEquals("Foo hover information", content);
doc
- document on which to operate.offset
- offset within document