Skip to content

Commit ee7dc5a

Browse files
committed
Clarify dictionary name (projectLookup -> projectsByBinaryPath)
1 parent 85a4e0f commit ee7dc5a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/FsAutoComplete/LspServers/AdaptiveServerState.fs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2664,7 +2664,8 @@ type AdaptiveState
26642664

26652665
let testProjectBinaries = filteredTestProjects |> List.map _.TargetPath
26662666

2667-
let projectLookup = testProjects |> Seq.map (fun p -> p.TargetPath, p) |> Map.ofSeq
2667+
let projectsByBinaryPath =
2668+
testProjects |> Seq.map (fun p -> p.TargetPath, p) |> Map.ofSeq
26682669

26692670
let tryTestResultsToDTOs testCases =
26702671
let tryTestResultToDTO
@@ -2677,7 +2678,7 @@ type AdaptiveState
26772678
TestServer.TestResult.ofVsTestResult project.ProjectFileName project.TargetFramework testResult
26782679
|> Some
26792680

2680-
testCases |> List.choose (tryTestResultToDTO projectLookup)
2681+
testCases |> List.choose (tryTestResultToDTO projectsByBinaryPath)
26812682

26822683
use tokenSource = new CancellationTokenSource()
26832684

@@ -2691,7 +2692,7 @@ type AdaptiveState
26912692
TestResults = progress.NewTestResults |> List.ofSeq |> tryTestResultsToDTOs |> Array.ofSeq
26922693
ActiveTests =
26932694
progress.ActiveTests
2694-
|> Seq.choose (TestServer.TestItem.tryTestCaseToDTO projectLookup.TryFind)
2695+
|> Seq.choose (TestServer.TestItem.tryTestCaseToDTO projectsByBinaryPath.TryFind)
26952696
|> Array.ofSeq }
26962697
| TestServer.VSTestWrapper.TestRunUpdate.LogMessage(level, message) ->
26972698
{ TestLogs =

0 commit comments

Comments
 (0)