提交 12d64105 编写于 作者: H HeeJae Chang

added comment.

上级 a67eef55
......@@ -274,6 +274,7 @@ protected async Task<(Guid, string projectName, SourceText)> GetGuidAndProjectNa
var mappedDocumentSpan = await AbstractDocumentSpanEntry.TryMapAndGetFirstAsync(documentSpan, sourceText, CancellationToken).ConfigureAwait(false);
if (mappedDocumentSpan == null)
{
// this will be removed from the result
return null;
}
......
......@@ -87,6 +87,7 @@ protected override async Task OnDefinitionFoundWorkerAsync(DefinitionItem defini
var mappedDocumentSpan = await AbstractDocumentSpanEntry.TryMapAndGetFirstAsync(documentSpan, sourceText, CancellationToken).ConfigureAwait(false);
if (mappedDocumentSpan == null)
{
// this will be removed from the result
return null;
}
......
......@@ -107,6 +107,8 @@ public override bool TryCreateColumnContent(string columnName, out FrameworkElem
return new MappedSpanResult(documentSpan.Document.FilePath, sourceText.Lines.GetLinePositionSpan(documentSpan.SourceSpan), documentSpan.SourceSpan);
}
// if span mapping service filtered out the span, make sure
// to return null so that we remove the span from the result
return results.FirstOrNullable(r => !r.IsDefault);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册