Hello dears,
i have error everytime in open even project in PHP, tested on WordPress, PrestaShop, forum CODO and etc. In XML log is this error:
<entry>
<record>852</record>
<time>2020/07/10 08:32:30.051</time>
<type>Error</type>
<source>Editor or Editor Extension</source>
<description>System.InvalidCastException: Objekt typu Devsense.PHP.Syntax.Ast.ThrowEx nelze přetypovat na typ Devsense.PHP.Syntax.Ast.Statement.
 v Devsense.Twig.Parser.TwigParser.Throw(Span position, Expression text)
 v Devsense.Twig.Parser.TwigParser.AddTrait(Span position, String file, String target, String alias, Int32 line)
 v Devsense.Twig.Parser.TwigParser.DoAction(Int32 action)
 v Devsense.PHP.Syntax.ShiftReduceParser2.Reduce(Int32 rule_nr)
 v Devsense.PHP.Syntax.ShiftReduceParser2.Parse()
 v Devsense.Twig.Parser.TwigParser.Parse(ITokenProvider2 lexer, IErrorSink1 errors, TwigTemplate template, ILineBreaks lines, IFilterInterface filterInfo)
 v Devsense.Twig.Parser.TwigTemplate.Parse(INodesFactory2 factory, IErrorSink1 errors, IErrorRecovery recovery)
 v Devsense.VisualStudio.Twig.Analysis.TwigFilesObserver.ParseTemplate(TemplateDictionary templates, String filename)
--- Konec trasování zásobníku z předchozího místa, ze kterého byla vyvolána výjimka ---
 v Microsoft.VisualStudio.Telemetry.WindowsErrorReporting.WatsonReport.GetClrWatsonExceptionInfo(Exception exceptionObject)</description>
</entry>
Version of VS: 16.6.3
.NET Framework: 4.8.03752
PHP Tools for VS: 1.40.11890.2019
I hope that will help you for some solution and bugfix.
Thank you.