@@ -45,7 +45,7 @@ open Internal.Utilities.Collections
4545type internal TcResult = TcEnv * TopAttribs * TypedImplFile option * ModuleOrNamespaceType
4646type internal TcErrors = FSharpErrorInfo[]
4747
48- type InteractiveChecker internal ( tcConfig , tcGlobals , tcImports , tcInitialState , ctok , reactorOps , parseCache , checkCache ) =
48+ type InteractiveChecker internal ( tcConfig , tcGlobals , tcImports , tcInitialState , ctok , parseCache , checkCache ) =
4949 let userOpName = " Unknown"
5050 let suggestNamesForErrors = true
5151
@@ -72,18 +72,12 @@ type InteractiveChecker internal (tcConfig, tcGlobals, tcImports, tcInitialState
7272 let tcInitialEnv = GetInitialTcEnv ( assemblyName, rangeStartup, tcConfig, tcImports, tcGlobals)
7373 let tcInitialState = GetInitialTcState ( rangeStartup, assemblyName, tcConfig, tcGlobals, tcImports, niceNameGen, tcInitialEnv)
7474
75- let reactorOps =
76- { new IReactorOperations with
77- member __.EnqueueAndAwaitOpAsync ( userOpName , opName , opArg , op ) =
78- async.Return ( Cancellable.runWithoutCancellation ( op ctok))
79- member __.EnqueueOp ( userOpName , opName , opArg , op ) = ( op ctok) }
80-
8175 // parse cache, keyed on file name and source hash
8276 let parseCache = ConcurrentDictionary< string * int, FSharpParseFileResults>( HashIdentity.Structural)
8377 // type check cache, keyed on file name
8478 let checkCache = ConcurrentDictionary< string, ( TcResult * TcErrors) * ( TcState * ModuleNamesDict)>( HashIdentity.Structural)
8579
86- InteractiveChecker ( tcConfig, tcGlobals, tcImports, tcInitialState, ctok, reactorOps , parseCache, checkCache)
80+ InteractiveChecker ( tcConfig, tcGlobals, tcImports, tcInitialState, ctok, parseCache, checkCache)
8781
8882 member private x.MakeProjectResults ( projectFileName : string , parseResults : FSharpParseFileResults [], tcState : TcState , errors : FSharpErrorInfo [],
8983 symbolUses : TcSymbolUses list , topAttrsOpt : TopAttribs option , tcImplFilesOpt : TypedImplFile list option ) =
@@ -148,16 +142,15 @@ type InteractiveChecker internal (tcConfig, tcGlobals, tcImports, tcInitialState
148142 checkCache.[ fileName] <- (( tcResult, tcErrors), ( tcState, moduleNamesDict))
149143
150144 let loadClosure = None
151- let textSnapshotInfo = None
152145 let keepAssemblyContents = true
153146
154147 let tcEnvAtEnd , _topAttrs , implFile , ccuSigForFile = tcResult
155148 let errors = Array.append parseResults.Errors tcErrors
156149
157150 let scope = TypeCheckInfo ( tcConfig, tcGlobals, ccuSigForFile, tcState.Ccu, tcImports, tcEnvAtEnd.AccessRights,
158151 projectFileName, fileName, sink.GetResolutions(), sink.GetSymbolUses(), tcEnvAtEnd.NameEnv,
159- loadClosure, reactorOps , textSnapshotInfo , implFile, sink.GetOpenDeclarations())
160- FSharpCheckFileResults ( fileName, errors, Some scope, parseResults.DependencyFiles, None, reactorOps , keepAssemblyContents)
152+ loadClosure, implFile, sink.GetOpenDeclarations())
153+ FSharpCheckFileResults ( fileName, errors, Some scope, parseResults.DependencyFiles, None, keepAssemblyContents)
161154 |> Some
162155 | None ->
163156 None
0 commit comments