Skip to content

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
  • Loading branch information
CyrusNajmabadi committed Aug 28, 2024
1 parent b86b464 commit f0fed71
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -153,12 +153,12 @@ class Y
await using var testLspServer = await CreateTestLspServerAsync([markup1, markup2], mutatingLspWorkspace);

var project = testLspServer.TestWorkspace.CurrentSolution.Projects.Single();
var results = await RunGetRelatedDocumentsAsync(
var results1 = await RunGetRelatedDocumentsAsync(
testLspServer,
project.Documents.First().GetURI(),
useProgress: useProgress);

AssertJsonEquals(results, new VSInternalRelatedDocumentReport[]
AssertJsonEquals(results1, new VSInternalRelatedDocumentReport[]
{
new()
{
Expand All @@ -168,13 +168,13 @@ class Y
});

// Calling again, without a change, should return the old result id and no filepaths.
var results1 = await RunGetRelatedDocumentsAsync(
var results2 = await RunGetRelatedDocumentsAsync(
testLspServer,
project.Documents.First().GetURI(),
previousResultId: results.Single().ResultId,
useProgress: useProgress);

AssertJsonEquals(results, new VSInternalRelatedDocumentReport[]
AssertJsonEquals(results2, new VSInternalRelatedDocumentReport[]
{
new()
{
Expand Down

0 comments on commit f0fed71

Please sign in to comment.