Fix null reference in debugger (#3517)
This commit is contained in:
Родитель
25bd4cd8f3
Коммит
8998621f01
|
@ -228,7 +228,7 @@ 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 && source.EndPoint.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;
|
||||
|
|
|
@ -18,9 +18,8 @@
|
|||
"args": [
|
||||
"run",
|
||||
"--no-build",
|
||||
"--",
|
||||
"--debugport",
|
||||
"0"
|
||||
"--root",
|
||||
"${workspaceFolder}/Samples"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче