Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
This should have been fixed with dotnet#10807 but without the Roslyn bump I guess I didn't realise. Oops!
  • Loading branch information
davidwengier committed Sep 6, 2024
1 parent f7681c2 commit 70f110d
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -216,17 +216,18 @@ private Task<RazorVSInternalCodeAction[]> HandleProvideCodeActionsAsync<TParams>
private Task<VSInternalReferenceItem[]> HandleReferencesAsync<TParams>(TParams @params)
{
var delegatedParams = Assert.IsType<DelegatedPositionParams>(@params);
var delegatedRequest = new TextDocumentPositionParams()
var delegatedRequest = new ReferenceParams()
{
TextDocument = new VSTextDocumentIdentifier()
{
Uri = _csharpDocumentUri,
ProjectContext = delegatedParams.Identifier.TextDocumentIdentifier.GetProjectContext(),
},
Position = delegatedParams.ProjectedPosition
Position = delegatedParams.ProjectedPosition,
Context = new ReferenceContext()
};

return _csharpServer.ExecuteRequestAsync<TextDocumentPositionParams, VSInternalReferenceItem[]>(
return _csharpServer.ExecuteRequestAsync<ReferenceParams, VSInternalReferenceItem[]>(
Methods.TextDocumentReferencesName,
delegatedRequest,
_cancellationToken);
Expand Down

0 comments on commit 70f110d

Please sign in to comment.