@@ -1389,15 +1389,17 @@ let DiagnosticsLoggerForInput (tcConfig: TcConfig, input: ParsedInput, oldLogger
1389
1389
1390
1390
/// Typecheck a single file (or interactive entry into F# Interactive)
1391
1391
let CheckOneInputEntry ( ctok , checkForErrors , tcConfig : TcConfig , tcImports , tcGlobals , prefixPathOpt ) tcState input =
1392
- // Equip loggers to locally filter w.r.t. scope pragmas in each input
1393
- use _ =
1394
- UseTransformedDiagnosticsLogger( fun oldLogger -> DiagnosticsLoggerForInput( tcConfig, input, oldLogger))
1392
+ cancellable {
1393
+ // Equip loggers to locally filter w.r.t. scope pragmas in each input
1394
+ use _ =
1395
+ UseTransformedDiagnosticsLogger( fun oldLogger -> DiagnosticsLoggerForInput( tcConfig, input, oldLogger))
1395
1396
1396
- use _ = UseBuildPhase BuildPhase.TypeCheck
1397
+ use _ = UseBuildPhase BuildPhase.TypeCheck
1397
1398
1398
- RequireCompilationThread ctok
1399
+ RequireCompilationThread ctok
1399
1400
1400
- CheckOneInput( checkForErrors, tcConfig, tcImports, tcGlobals, prefixPathOpt, TcResultsSink.NoSink, tcState, input)
1401
+ return ! CheckOneInput( checkForErrors, tcConfig, tcImports, tcGlobals, prefixPathOpt, TcResultsSink.NoSink, tcState, input)
1402
+ }
1401
1403
|> Cancellable.runWithoutCancellation
1402
1404
1403
1405
/// Finish checking multiple files (or one interactive entry into F# Interactive)
@@ -1859,14 +1861,18 @@ let CheckMultipleInputsUsingGraphMode
1859
1861
(( input , logger ): ParsedInput * DiagnosticsLogger )
1860
1862
(( currentTcState , _currentPriorErrors ): State )
1861
1863
: Finisher < NodeToTypeCheck , State , PartialResult > =
1862
- use _ = UseDiagnosticsLogger logger
1863
- let checkForErrors2 () = priorErrors || ( logger.ErrorCount > 0 )
1864
- let tcSink = TcResultsSink.NoSink
1865
1864
1866
1865
let ( Finisher ( finisher = finisher)) =
1867
- CheckOneInputWithCallback
1868
- node
1869
- ( checkForErrors2, tcConfig, tcImports, tcGlobals, prefixPathOpt, tcSink, currentTcState, input, false )
1866
+ cancellable {
1867
+ use _ = UseDiagnosticsLogger logger
1868
+ let checkForErrors2 () = priorErrors || ( logger.ErrorCount > 0 )
1869
+ let tcSink = TcResultsSink.NoSink
1870
+
1871
+ return !
1872
+ CheckOneInputWithCallback
1873
+ node
1874
+ ( checkForErrors2, tcConfig, tcImports, tcGlobals, prefixPathOpt, tcSink, currentTcState, input, false )
1875
+ }
1870
1876
|> Cancellable.runWithoutCancellation
1871
1877
1872
1878
Finisher(
0 commit comments