From 4681ba9771eea6bda455e122a0010de6687c4626 Mon Sep 17 00:00:00 2001 From: Fredric Silberberg Date: Fri, 21 Aug 2020 16:17:10 -0700 Subject: [PATCH] Correctly mark hover markup content as markdown We were missing a flag. Fixes https://github.com/OmniSharp/omnisharp-roslyn/issues/1906. --- .../Handlers/OmniSharpHoverHandler.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/OmniSharp.LanguageServerProtocol/Handlers/OmniSharpHoverHandler.cs b/src/OmniSharp.LanguageServerProtocol/Handlers/OmniSharpHoverHandler.cs index e12c5c9dfc..e78e7176c6 100644 --- a/src/OmniSharp.LanguageServerProtocol/Handlers/OmniSharpHoverHandler.cs +++ b/src/OmniSharp.LanguageServerProtocol/Handlers/OmniSharpHoverHandler.cs @@ -45,7 +45,7 @@ public async override Task Handle(HoverParams request, CancellationToken { // TODO: Range? We don't currently have that! // Range = - Contents = new MarkedStringsOrMarkupContent(new MarkupContent() { Value = omnisharpResponse.Markdown }) + Contents = new MarkedStringsOrMarkupContent(new MarkupContent() { Value = omnisharpResponse.Markdown, Kind = MarkupKind.Markdown }) }; } }