Skip to content

Commit

Permalink
Merge pull request #223 from psfinaki/update-fsharp
Browse files Browse the repository at this point in the history
Update F#
  • Loading branch information
ashmind authored Jun 1, 2024
2 parents a310714 + 5fcf1e1 commit 41233de
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
4 changes: 2 additions & 2 deletions FSharp/FSharp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<ItemGroup>
<PackageReference Include="Microsoft.Build.Utilities.Core" Version="17.0.0" />
<PackageReference Include="Microsoft.IO.RecyclableMemoryStream" Version="2.2.0" />
<PackageReference Include="FSharp.Compiler.Service" Version="41.0.1" />
<PackageReference Include="FSharp.Core" Version="6.0.1" />
<PackageReference Include="FSharp.Compiler.Service" Version="43.8.300" />
<PackageReference Include="FSharp.Core" Version="8.0.300" />
</ItemGroup>
</Project>
6 changes: 5 additions & 1 deletion FSharp/Internal/CustomFileSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ public void FileDeleteShim(string fileName) {
throw new NotSupportedException();
}

public DirectoryInfo DirectoryCreateShim(string path) {
public string DirectoryCreateShim(string path) {
throw new NotSupportedException();
}

Expand All @@ -139,6 +139,10 @@ public IEnumerable<string> EnumerateDirectoriesShim(string path) {
throw new NotSupportedException();
}

public string ChangeExtensionShim(string path, string extension) {
throw new NotImplementedException();
}

public string GetTempPathShim() {
return VirtualTempPath;
}
Expand Down
8 changes: 7 additions & 1 deletion FSharp/Internal/FSharpSession.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
using Microsoft.CodeAnalysis.Text;
using Microsoft.FSharp.Collections;
using Microsoft.FSharp.Control;
using Microsoft.FSharp.Core;
using Microsoft.IO;
using MirrorSharp.FSharp.Advanced;
using MirrorSharp.Internal;
Expand Down Expand Up @@ -54,7 +55,12 @@ RecyclableMemoryStreamManager memoryStreamManager
keepAllBackgroundSymbolUses: false,
enableBackgroundItemKeyStoreAndSemanticClassification: false,
// allows for using signature files to speed up compilation, but mutually exclusive with `keepAssemblyContents`
enablePartialTypeChecking: false
enablePartialTypeChecking: false,
parallelReferenceResolution: false,
captureIdentifiersWhenParsing: false,
documentSource: FSharpOption<DocumentSource>.Some(DocumentSource.FileSystem),
useSyntaxTreeCache: false,
useTransparentCompiler: false
);
// Checker.ImplicitlyStartBackgroundWork = false;
AssemblyReferencePaths = options.AssemblyReferencePaths;
Expand Down

0 comments on commit 41233de

Please sign in to comment.