Skip to content

Commit ba78ba3

Browse files
committed
Fix 631
1 parent 81eb5b7 commit ba78ba3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/fsharp/vs/service.fs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2718,7 +2718,7 @@ type FSharpChecker(referenceResolver, projectCacheSize, keepAssemblyContents, ke
27182718

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

2721-
static let globalInstance = FSharpChecker.Create()
2721+
static let globalInstance = lazy FSharpChecker.Create()
27222722

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

2992-
static member Instance = globalInstance
2992+
static member Instance = globalInstance.Value
29932993
member internal __.FrameworkImportsCache = backgroundCompiler.FrameworkImportsCache
29942994

29952995

0 commit comments

Comments
 (0)