Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions src/fsharp/fsi/fsi.fs
Original file line number Diff line number Diff line change
Expand Up @@ -1513,14 +1513,11 @@ module internal MagicAssemblyResolution =

let Install(tcConfigB, tcImports: TcImports, fsiDynamicCompiler: FsiDynamicCompiler, fsiConsoleOutput: FsiConsoleOutput) =

let rangeStdin = rangeN Lexhelp.stdinMockFilename 0

#if TODO_REWORK_ASSEMBLY_LOAD
ignore tcConfigB
ignore tcImports
ignore fsiDynamicCompiler
ignore fsiConsoleOutput
ignore rangeStdin
{ new System.IDisposable with
member x.Dispose() = () }
#else
Expand Down Expand Up @@ -2459,7 +2456,7 @@ type FsiEvaluationSession (fsi: FsiEvaluationSessionHostConfig, argv:string[], i

/// The single, global interactive checker that can be safely used in conjunction with other operations
/// on the FsiEvaluationSession.
let checker = FSharpChecker.Create()
let checker = FSharpChecker.Create(msbuildEnabled=msbuildEnabled)

let (tcGlobals,frameworkTcImports,nonFrameworkResolutions,unresolvedReferences) =
try
Expand Down
4 changes: 2 additions & 2 deletions src/fsharp/vs/service.fs
Original file line number Diff line number Diff line change
Expand Up @@ -2718,7 +2718,7 @@ type FSharpChecker(referenceResolver, projectCacheSize, keepAssemblyContents, ke

let backgroundCompiler = BackgroundCompiler(referenceResolver, projectCacheSize, keepAssemblyContents, keepAllBackgroundResolutions)

static let globalInstance = FSharpChecker.Create()
static let globalInstance = lazy FSharpChecker.Create()

// Parse using backgroundCompiler
let ComputeBraceMatching(filename:string,source,options:FSharpProjectOptions) =
Expand Down Expand Up @@ -2989,7 +2989,7 @@ type FSharpChecker(referenceResolver, projectCacheSize, keepAssemblyContents, ke
bc.ParseFileInProject(filename, source, options)
|> Async.RunSynchronously

static member Instance = globalInstance
static member Instance = globalInstance.Value
member internal __.FrameworkImportsCache = backgroundCompiler.FrameworkImportsCache


Expand Down