Add back SingleServerSupport check that was accidentally removed awhile ago

This commit is contained in:
Dustin Campbell 2024-10-30 13:41:51 -07:00
Родитель e638ab6dcd
Коммит 31eacc3e0d
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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;
}