We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parentf9893b6 commit1fbaf0cCopy full SHA for 1fbaf0c
src/fsharp/service/service.fs
@@ -1521,6 +1521,12 @@ module internal Parser =
1521
1522
letmatchBraces(source,fileName,options:FSharpParsingOptions,userOpName:string)=
1523
Trace.TraceInformation("FCS: {0}.{1} ({2})", userOpName,"matchBraces", fileName)
1524
+
1525
+// Make sure there is an ErrorLogger installed whenever we do stuff that might record errors, even if we ultimately ignore the errors
1526
+letdelayedLogger= CapturingErrorLogger("matchBraces")
1527
+use _unwindEL= PushErrorLoggerPhaseUntilUnwind(fun _-> delayedLogger)
1528
+use _unwindBP= PushThreadBuildPhaseUntilUnwind BuildPhase.Parse
1529
1530
letmatchingBraces=new ResizeArray<_>()
1531
Lexhelp.usingLexbufForParsing(UnicodeLexing.StringAsLexbuf(addNewLine source), fileName)(fun lexbuf->
1532
leterrHandler= ErrorHandler(false, fileName, options.ErrorSeverityOptions, source)