summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main/java/org/javacs/JavaLanguageServer.java10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/main/java/org/javacs/JavaLanguageServer.java b/src/main/java/org/javacs/JavaLanguageServer.java
index cbe92d0..780d8e5 100644
--- a/src/main/java/org/javacs/JavaLanguageServer.java
+++ b/src/main/java/org/javacs/JavaLanguageServer.java
@@ -646,13 +646,15 @@ class JavaLanguageServer extends LanguageServer {
// Add docs hover message
var docs = hoverDocs(el.get());
- docs.filter(Predicate.not(String::isBlank)).ifPresent(doc -> {
- result.add(new MarkedString(doc));
- });
+ docs.filter(Predicate.not(String::isBlank))
+ .ifPresent(
+ doc -> {
+ result.add(new MarkedString(doc));
+ });
// Add code hover message
var code = hoverCode(el.get());
- result.add(new MarkedString("java", code));
+ result.add(new MarkedString("java.hover", code));
return Optional.of(new Hover(result));
}