Skip to content

Commit 70f110d

Browse files
committed
Fix test
This should have been fixed with dotnet#10807 but without the Roslyn bump I guess I didn't realise. Oops!
1 parent f7681c2 commit 70f110d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/Razor/test/Microsoft.AspNetCore.Razor.LanguageServer.Test/SingleServerDelegatingEndpointTestBase.TestLanguageServer.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -216,17 +216,18 @@ private Task<RazorVSInternalCodeAction[]> HandleProvideCodeActionsAsync<TParams>
216216
private Task<VSInternalReferenceItem[]> HandleReferencesAsync<TParams>(TParams @params)
217217
{
218218
var delegatedParams = Assert.IsType<DelegatedPositionParams>(@params);
219-
var delegatedRequest = new TextDocumentPositionParams()
219+
var delegatedRequest = new ReferenceParams()
220220
{
221221
TextDocument = new VSTextDocumentIdentifier()
222222
{
223223
Uri = _csharpDocumentUri,
224224
ProjectContext = delegatedParams.Identifier.TextDocumentIdentifier.GetProjectContext(),
225225
},
226-
Position = delegatedParams.ProjectedPosition
226+
Position = delegatedParams.ProjectedPosition,
227+
Context = new ReferenceContext()
227228
};
228229

229-
return _csharpServer.ExecuteRequestAsync<TextDocumentPositionParams, VSInternalReferenceItem[]>(
230+
return _csharpServer.ExecuteRequestAsync<ReferenceParams, VSInternalReferenceItem[]>(
230231
Methods.TextDocumentReferencesName,
231232
delegatedRequest,
232233
_cancellationToken);

0 commit comments

Comments
 (0)