From 58a0319698b215d0c6fd6a657ffab1f9a8b9ccab Mon Sep 17 00:00:00 2001 From: xieofxie Date: Fri, 20 Dec 2019 10:33:14 +0800 Subject: [PATCH] change to start <= line <= end (#3078) * change to start <= line <= end * trick build to execute Co-authored-by: Tom Laird-McConnell --- Changes.md | 2 -- .../DebuggerSourceMap.cs | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Changes.md b/Changes.md index 250a0b981..22c6ab0a7 100644 --- a/Changes.md +++ b/Changes.md @@ -6,5 +6,3 @@ consolidating using generics with POCO objects and shared base class ## 4.0.0-alpha201802027a * Milan release - - diff --git a/libraries/Microsoft.Bot.Builder.Dialogs.Debugging/DebuggerSourceMap.cs b/libraries/Microsoft.Bot.Builder.Dialogs.Debugging/DebuggerSourceMap.cs index 50c1a61a8..af7d2f2c2 100644 --- a/libraries/Microsoft.Bot.Builder.Dialogs.Debugging/DebuggerSourceMap.cs +++ b/libraries/Microsoft.Bot.Builder.Dialogs.Debugging/DebuggerSourceMap.cs @@ -228,8 +228,8 @@ namespace Microsoft.Bot.Builder.Dialogs.Debugging options = from sourceItem in sourceByItem let source = sourceItem.Value where PathEquals(source.Path, row.Source.Path) - where source.StartPoint.LineIndex >= row.SourceBreakpoint.Line - let distance = Math.Abs(source.StartPoint.LineIndex - row.SourceBreakpoint.Line) + where source.StartPoint.LineIndex <= row.SourceBreakpoint.Line && source.EndPoint.LineIndex >= row.SourceBreakpoint.Line + let distance = row.SourceBreakpoint.Line - source.StartPoint.LineIndex orderby distance select sourceItem; }