diff --git a/src/LanguageServer/ProtocolUnitTests/TypeHierarchy/TypeHierarchyTests.cs b/src/LanguageServer/ProtocolUnitTests/TypeHierarchy/TypeHierarchyTests.cs index 29b5681602a83..800cf54861893 100644 --- a/src/LanguageServer/ProtocolUnitTests/TypeHierarchy/TypeHierarchyTests.cs +++ b/src/LanguageServer/ProtocolUnitTests/TypeHierarchy/TypeHierarchyTests.cs @@ -418,8 +418,6 @@ private static void AssertEqualsItem(LSP.TypeHierarchyItem item, string expected LSP.Methods.TypeHierarchySupertypesName, new LSP.TypeHierarchySupertypesParams { - TextDocument = CreateTextDocumentIdentifier(item.Uri), - Position = item.SelectionRange.Start, Item = item, }, CancellationToken.None) ?? []; @@ -429,8 +427,6 @@ private static void AssertEqualsItem(LSP.TypeHierarchyItem item, string expected LSP.Methods.TypeHierarchySubtypesName, new LSP.TypeHierarchySubtypesParams { - TextDocument = CreateTextDocumentIdentifier(item.Uri), - Position = item.SelectionRange.Start, Item = item, }, CancellationToken.None) ?? []; diff --git a/src/Razor/src/Razor/test/Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests/Endpoints/CohostTypeHierarchyEndpointTest.cs b/src/Razor/src/Razor/test/Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests/Endpoints/CohostTypeHierarchyEndpointTest.cs index 54ded0a89c607..df6ba8b305dac 100644 --- a/src/Razor/src/Razor/test/Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests/Endpoints/CohostTypeHierarchyEndpointTest.cs +++ b/src/Razor/src/Razor/test/Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests/Endpoints/CohostTypeHierarchyEndpointTest.cs @@ -262,8 +262,6 @@ private async Task GetSupertypesAsync(TextDocument document var request = new TypeHierarchySupertypesParams { Item = roundTrippedItem, - Position = roundTrippedItem.SelectionRange.Start, - TextDocument = new TextDocumentIdentifier { DocumentUri = roundTrippedItem.Uri }, }; return await endpoint.GetTestAccessor().HandleRequestAsync(request, document, DisposalToken) ?? []; @@ -277,8 +275,6 @@ private async Task GetSubtypesAsync(TextDocument document, var request = new TypeHierarchySubtypesParams { Item = roundTrippedItem, - Position = roundTrippedItem.SelectionRange.Start, - TextDocument = new TextDocumentIdentifier { DocumentUri = roundTrippedItem.Uri }, }; return await endpoint.GetTestAccessor().HandleRequestAsync(request, document, DisposalToken) ?? [];