From 335baed8e5a0ebcf242c052ff663be6cfaff5eee Mon Sep 17 00:00:00 2001 From: Florian Lorenzen Date: Sat, 15 Jun 2024 22:43:53 +0200 Subject: [PATCH] "Send references for FSI" also loads the project files like "Generate references for FSI" --- src/Components/Fsi.fs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Components/Fsi.fs b/src/Components/Fsi.fs index 6857aab5..3825fed3 100644 --- a/src/Components/Fsi.fs +++ b/src/Components/Fsi.fs @@ -611,12 +611,17 @@ module Fsi = |> Seq.filter (fun n -> n.EndsWith "FSharp.Core.dll" |> not && n.EndsWith "mscorlib.dll" |> not) |> Seq.toList + let files = project.Files |> Seq.toList + let sendReference terminal (path: ResolvedReferencePath) = send terminal $"#r @\"%s{path}\"" + let sendLoad terminal path = send terminal $"#load @\"%s{path}\"" + promise { let! terminal = getTerminal () do! Promise.executeForAll (sendReference terminal) references + do! Promise.executeForAll (sendLoad terminal) files } |> Promise.suppress |> ignore