CRASH WHEN EDITING REGIONS

To reproduce: use the "SnippetParsers" sample, switch to "Visual Basic".
Add those two lines:
Region "Start"
End Region
Then, remove the region start line (in order to cut/paste it to a different line). Now, this exception will occur:

System.Reflection.TargetInvocationException
HResult=0x80131604
Message=Ein Aufrufziel hat einen Ausnahmefehler verursacht.
Source=mscorlib
StackTrace:
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
at System.Delegate.DynamicInvokeImpl(Object[] args)
at System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry tme)
at System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry tme)
at System.Windows.Forms.Control.InvokeMarshaledCallbacks()
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.Run(Form mainForm)
at SnippetsParsers.Program.Main() in C:\Temp\Extensibility Studio v.5_modified\Demo\Editor\QuickStarts\Parsers\SnippetsParsers\Program.cs:line 32
Inner Exception 1:
ArgumentOutOfRangeException: Der Index lag außerhalb des Bereichs. Er darf nicht negativ und kleiner als die Sammlung sein.
Parametername: index
StackTrace:
bei System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
bei System.Collections.Generic.List`1.get_Item(Int32 index)
bei Alternet.Syntax.Parsers.Roslyn.VbParser.OutlineRegions(IList`1 ranges, SpanResolver resolver, SyntaxNode node, Int32 level)
bei Alternet.Syntax.Parsers.Roslyn.RoslynParser.OutlineInternal(SyntaxTree tree, SourceText text, IList`1 ranges)
bei Alternet.Syntax.Parsers.Roslyn.RoslynParser.d__38.MoveNext()
--- Ende der Stapelüberwachung vom vorhergehenden Ort, an dem die Ausnahme ausgelöst wurde ---
bei System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
bei System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
bei Alternet.Syntax.Parsers.Roslyn.RoslynParser.d__78.MoveNext()
--- Ende der Stapelüberwachung vom vorhergehenden Ort, an dem die Ausnahme ausgelöst wurde ---
bei System.Runtime.CompilerServices.AsyncMethodBuilderCore.<>c.b__6_0(Object state)
I have Version 5.0 here.

Best regards
Wolfgang
Hi Wolfgang,
Thank you for reporting this problem, it has been fixed and the fix will appear in the next update.
I've sent you fixed version via e-mail.

regards,
Andrew
Thanks. But I cannot verify the fix because of four compilation errors:
'VBMethodRepository.CreatedFormattedDocument(...)': no suitable method found to override.

Best regards
Wolfgang
Hi Wolfgang,
I've answered you via e-mail.
regards,
Andrew
Thanks, it works now!
Awaiting the new release ;-)
Wolfgang