summaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorGeorge Fraser <george@fivetran.com>2019-03-26 22:25:59 -0700
committerGeorge Fraser <george@fivetran.com>2019-03-26 22:25:59 -0700
commitbfd7016886beb986e588bddc818b35af2fd2c16b (patch)
tree87a4c83eb88fb44959daf426757848722b9feced /src/main
parent71533945fefd6e17e3080cdc8f7a09131f9d3e2a (diff)
downloadjava-language-server-bfd7016886beb986e588bddc818b35af2fd2c16b.zip
Put back .hover
Diffstat (limited to 'src/main')
-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));
}