@@ -3007,7 +3007,7 @@ type FsiInteractiveChecker(referenceResolver, reactorOps: IReactorOperations, tc
3007
3007
3008
3008
member __.ParseAndCheckInteraction ( source ) =
3009
3009
3010
- let mainInputFileName = " stdin.fsx"
3010
+ let mainInputFileName = Path.Combine ( tcConfig.implicitIncludeDir , " stdin.fsx" )
3011
3011
// Note: projectSourceFiles is only used to compute isLastCompiland, and is ignored if Build.IsScript(mainInputFileName) is true (which it is in this case).
3012
3012
let projectSourceFiles = [ ]
3013
3013
let parseErrors , _matchPairs , inputOpt , anyErrors = Parser.ParseOneFile ( source, false , true , mainInputFileName, projectSourceFiles, tcConfig)
@@ -3018,7 +3018,7 @@ type FsiInteractiveChecker(referenceResolver, reactorOps: IReactorOperations, tc
3018
3018
let fsiCompilerOptions = CompileOptions.GetCoreFsiCompilerOptions tcConfigB
3019
3019
CompileOptions.ParseCompilerOptions ( ignore, fsiCompilerOptions, [ ])
3020
3020
3021
- let loadClosure = LoadClosure.ComputeClosureOfSourceText( referenceResolver, mainInputFileName, source, CodeContext.Editing, tcConfig.useSimpleResolution, tcConfig.useFsiAuxLib, new Lexhelp.LexResourceManager(), applyCompilerOptions)
3021
+ let loadClosure = LoadClosure.ComputeClosureOfSourceText( referenceResolver, mainInputFileName, source, CodeContext.Editing, tcConfig.useSimpleResolution, tcConfig.useFsiAuxLib, new Lexhelp.LexResourceManager(), applyCompilerOptions)
3022
3022
let backgroundErrors = []
3023
3023
let tcErrors , tcFileResult =
3024
3024
Parser.TypeCheckOneFile( parseResults, source, mainInputFileName, " project" , tcConfig, tcGlobals, tcImports, tcState,
0 commit comments