From 31eacc3e0d2a443f65e9fb9eb82cfaee8cf3916c Mon Sep 17 00:00:00 2001 From: Dustin Campbell Date: Wed, 30 Oct 2024 13:41:51 -0700 Subject: [PATCH] Add back SingleServerSupport check that was accidentally removed awhile ago --- .../Hover/HoverEndpoint.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Razor/src/Microsoft.AspNetCore.Razor.LanguageServer/Hover/HoverEndpoint.cs b/src/Razor/src/Microsoft.AspNetCore.Razor.LanguageServer/Hover/HoverEndpoint.cs index 7ebdb1b995..d58d32e8b4 100644 --- a/src/Razor/src/Microsoft.AspNetCore.Razor.LanguageServer/Hover/HoverEndpoint.cs +++ b/src/Razor/src/Microsoft.AspNetCore.Razor.LanguageServer/Hover/HoverEndpoint.cs @@ -80,7 +80,7 @@ internal sealed class HoverEndpoint( // Sometimes what looks like a html attribute can actually map to C#, in which case its better to let Roslyn try to handle this. // We can only do this if we're in single server mode though, otherwise we won't be delegating to Roslyn at all - if (DocumentMappingService.TryMapToGeneratedDocumentPosition(codeDocument.GetCSharpDocument(), positionInfo.HostDocumentIndex, out _, out _)) + if (SingleServerSupport && DocumentMappingService.TryMapToGeneratedDocumentPosition(codeDocument.GetCSharpDocument(), positionInfo.HostDocumentIndex, out _, out _)) { return null; }