Repository navigation
8.0.1
Fix FSAC failing to load projects when the workspace pins a preview SDK, such as .NET 11 RC 2 through a global.json, while the .NET 10 runtime is also installed. FSAC loads MSBuild from that SDK, so it has to run on the matching preview runtime. Ionide sets DOTNET_ROLL_FORWARD_TO_PRERELEASE again when the workspace SDK is a preview. The error was Could not load file or assembly 'System.Runtime, Version=11.0.0.0'. #2182
When FSAC fails to load the workspace as a whole, Ionide now shows an error with the cause and a button to open the F# output, and marks the projects as failed in the Solution Explorer. Before, the projects stayed in "Loading" and only editor requests failed. A restart or VS Code closing during a load is not reported. #2182
Restart FSAC when it stops unexpectedly, and load the workspace again. The error handler answered in the format of an older vscode-languageclient, so after a crash FSAC was neither restarted nor reported, and Ionide stopped working without a message. When FSAC stops during a load, an error says so. After 5 unexpected stops, an error says FSAC will not be restarted and points to "F#: Restart Language Service". #2182
Restarting the language server now clears the project states of the previous session, so the Solution Explorer no longer shows projects as loaded that the new FSAC never loaded. #2182